diff options
-rw-r--r-- | builtin/client/cheats.lua | 1 | ||||
-rw-r--r-- | src/client/camera.cpp | 2 | ||||
-rw-r--r-- | src/defaultsettings.cpp | 1 | ||||
-rw-r--r-- | textures/base/pack/menu_bg.png | bin | 266 -> 124 bytes |
4 files changed, 3 insertions, 1 deletions
diff --git a/builtin/client/cheats.lua b/builtin/client/cheats.lua index 06b4cb745..800784597 100644 --- a/builtin/client/cheats.lua +++ b/builtin/client/cheats.lua @@ -23,6 +23,7 @@ core.cheats = { ["Coords"] = "coords", ["Tracers"] = "enable_tracers", ["ESP"] = "enable_esp", + ["AttachmentFloat"] = "float_above_parent", }, ["World"] = { ["FastDig"] = "fastdig", diff --git a/src/client/camera.cpp b/src/client/camera.cpp index abc55e4b7..c9e8fab6a 100644 --- a/src/client/camera.cpp +++ b/src/client/camera.cpp @@ -340,7 +340,7 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r // mods expect the player head to be at the parent's position // plus eye height. if (player->getParent()) - player_position = player->getParent()->getPosition(); + player_position = player->getParent()->getPosition() + v3f(0, g_settings->getBool("float_above_parent") ? BS : 0, 0); // Smooth the camera movement when the player instantly moves upward due to stepheight. // To smooth the 'not touching_ground' stepheight, smoothing is necessary when jumping diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 91d9d6be6..5e23ffc39 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -94,6 +94,7 @@ void set_default_settings(Settings *settings) settings->setDefault("enable_tracers", "false"); settings->setDefault("enable_esp", "false"); settings->setDefault("no_slow", "false"); + settings->setDefault("float_above_parent", "false"); // Keymap settings->setDefault("remote_port", "30000"); diff --git a/textures/base/pack/menu_bg.png b/textures/base/pack/menu_bg.png Binary files differindex 617d353e0..6f6836e2c 100644 --- a/textures/base/pack/menu_bg.png +++ b/textures/base/pack/menu_bg.png |