Skip to content

Commit 58c083f

Browse files
committedApr 22, 2017
Sneak glitch: Set default to false
The 'sneak glitch' physics override now controls whether a player can use the new move code replications of the old sneak side-effects: sneak ladders and 2 node sneak jump. This completes our intention to replicate the old sneak side-effects in new code and provide them as an option that is disabled by default.
1 parent cca58fe commit 58c083f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

Diff for: ‎doc/lua_api.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ This is basically a reference to a C++ `ServerActiveObject`
30383038
* `sneak`: whether player can sneak (default: `true`)
30393039
* `sneak_glitch`: whether player can use the new move code replications
30403040
of the old sneak side-effects: sneak ladders and 2 node sneak jump
3041-
when next to a ledge 2 nodes up (default: `true`)
3041+
(default: `false`)
30423042
* `new_move`: use new move/sneak code. When `false` the exact old code
30433043
is used for the specific old sneak behaviour (default: `true`)
30443044
* `get_physics_override()`: returns the table given to set_physics_override

Diff for: ‎src/content_sao.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, u16 peer_id_, bool is_singleplayer
788788
m_physics_override_jump(1),
789789
m_physics_override_gravity(1),
790790
m_physics_override_sneak(true),
791-
m_physics_override_sneak_glitch(true),
791+
m_physics_override_sneak_glitch(false),
792792
m_physics_override_new_move(true),
793793
m_physics_override_sent(false)
794794
{

Diff for: ‎src/localplayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ LocalPlayer::LocalPlayer(Client *client, const char *name):
4848
physics_override_jump(1.0f),
4949
physics_override_gravity(1.0f),
5050
physics_override_sneak(true),
51-
physics_override_sneak_glitch(true),
51+
physics_override_sneak_glitch(false),
5252
physics_override_new_move(true), // Temporary option for old move code
5353
overridePosition(v3f(0,0,0)),
5454
last_position(v3f(0,0,0)),

0 commit comments

Comments
 (0)
Please sign in to comment.