1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add sneak and sneak_glitch to set_physics_override()

This commit is contained in:
PilzAdam 2013-12-03 18:51:15 +01:00
parent d9de9f23d9
commit 15be2659ea
11 changed files with 53 additions and 13 deletions

View file

@ -85,9 +85,11 @@ Player::Player(IGameDef *gamedef):
movement_gravity = 9.81 * BS;
// Movement overrides are multipliers and must be 1 by default
physics_override_speed = 1;
physics_override_jump = 1;
physics_override_gravity = 1;
physics_override_speed = 1;
physics_override_jump = 1;
physics_override_gravity = 1;
physics_override_sneak = true;
physics_override_sneak_glitch = true;
hud_flags = HUD_FLAG_HOTBAR_VISIBLE | HUD_FLAG_HEALTHBAR_VISIBLE |
HUD_FLAG_CROSSHAIR_VISIBLE | HUD_FLAG_WIELDITEM_VISIBLE |