diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 13:19:00 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 13:22:27 +0100 |
| commit | bb99c978c5f982e80a3007101fd61fe23635e242 (patch) | |
| tree | 749acafe3d2c4fcffeb2060c7a4a92c49aa69407 /src/cinput.cpp | |
| parent | Speed graph: show current speed at the top-right (diff) | |
| download | hl2h-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 'src/cinput.cpp')
0 files changed, 0 insertions, 0 deletions
