diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 21:11:32 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 21:11:32 +0100 |
| commit | c91c7248fcb3911a8a2b6442d8657167364a911c (patch) | |
| tree | ca0b0304463c17bc93a67091522fef711f49b526 /src/hl2h.h | |
| parent | Bind labels: name unlisted scancodes instead of showing None (diff) | |
| download | hl2h-c91c7248fcb3911a8a2b6442d8657167364a911c.tar.gz hl2h-c91c7248fcb3911a8a2b6442d8657167364a911c.zip | |
Stucklaunch: fix prop detection and add diagnostics
- Client physics props are CPhysicsProp/CPhysBox, not the server class
prop_physics; the old case-sensitive class check never matched. Detect
MOVETYPE_VPHYSICS first (the reliable signal), then case-insensitive
class/model patterns.
- Log the first few prop checks with index, movetype, class and model so a
failed ground lookup is diagnosable.
- Log once when Stucklaunch is active (with run state, bind and ground
offset), when it engages, and when the ground is not a prop.
- Toast a warning when binding a feature that is not Active yet.
Diffstat (limited to 'src/hl2h.h')
| -rw-r--r-- | src/hl2h.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -141,7 +141,7 @@ struct CUserCmd { | |||
| 141 | 141 | ||
| 142 | enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5, IN_ATTACK2 = 1 << 11, IN_SPEED = 1 << 17 }; | 142 | enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5, IN_ATTACK2 = 1 << 11, IN_SPEED = 1 << 17 }; |
| 143 | enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; | 143 | enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; |
| 144 | enum { MOVETYPE_WALK = 2, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; | 144 | enum { MOVETYPE_WALK = 2, MOVETYPE_VPHYSICS = 6, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; |
| 145 | 145 | ||
| 146 | // --------------------------------------------------------------------------- | 146 | // --------------------------------------------------------------------------- |
| 147 | // vector math | 147 | // vector math |
