summaryrefslogtreecommitdiffstats
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 13:19:00 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 13:22:27 +0100
commitbb99c978c5f982e80a3007101fd61fe23635e242 (patch)
tree749acafe3d2c4fcffeb2060c7a4a92c49aa69407 /src/gui.cpp
parentSpeed graph: show current speed at the top-right (diff)
downloadhl2h-bb99c978c5f982e80a3007101fd61fe23635e242.tar.gz
hl2h-bb99c978c5f982e80a3007101fd61fe23635e242.zip
Jumpbug: automatic duck+jump on damaging falls
- Predict the landing speed from the current vertical velocity and a swept standing-hull ground trace; engage only when it exceeds PLAYER_MAX_SAFE_FALL_SPEED. - Press duck one command before the unduck window so FinishDuck's 36-unit origin raise places the feet ~37 units above the floor. - On the next command release duck and press jump: PlayerMove runs Duck() before CheckJumpButton, so FinishUnDuck sets ground, the jump executes, and CheckFalling never sees ground for the fall-damage check. - Measure the per-command fall from consecutive airborne origins instead of a fixed tick interval; clear IN_JUMP while waiting so the pogo latch is clear. - New Movement -> Jumpbug -> Active toggle (default on), config [jumpbug].
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions