Sneak glitch: Detect ledge for 2-node climb-up
authorparamat <mat.gregory@virginmedia.com>
Thu, 6 Apr 2017 14:58:12 +0000 (15:58 +0100)
committerparamat <mat.gregory@virginmedia.com>
Tue, 11 Apr 2017 04:41:13 +0000 (05:41 +0100)
commit59911761ef529f118e7ba697d4f5983d43dbb383
tree405f23520008a8702d162db43f4b3fc58b31e171
parenteb587996e42544ec8624b256e6d5eea12f9bab88
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.cpp
src/localplayer.h