From 59911761ef529f118e7ba697d4f5983d43dbb383 Mon Sep 17 00:00:00 2001 From: paramat Date: Thu, 6 Apr 2017 15:58:12 +0100 Subject: Sneak glitch: Detect ledge for 2-node climb-up Re-creates the old sneak-jump behaviour in new code. Enabled by the 'sneak glitch' physics override. When a ledge is detected the jump speed modifier is set to the larger of 'physics override jump' and 1.3 to allow a 2-node climb-up. An unexpected side-effect is the simple sneak ladder working smoothly. --- src/localplayer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index cac371cf1..ae987b893 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -146,6 +146,9 @@ private: // Whether a "sneak ladder" structure is detected at the players pos // see detectSneakLadder() in the .cpp for more info (always false if disabled) bool m_sneak_ladder_detected; + // Whether a 2-node-up ledge is detected at the players pos, + // see detectLedge() in the .cpp for more info (always false if disabled). + bool m_ledge_detected; // Node below player, used to determine whether it has been removed, // and its old type -- cgit v1.2.3