summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 21:11:32 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 21:11:32 +0100
commitc91c7248fcb3911a8a2b6442d8657167364a911c (patch)
treeca0b0304463c17bc93a67091522fef711f49b526 /src/hl2h.h
parentBind labels: name unlisted scancodes instead of showing None (diff)
downloadhl2h-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 '')
-rw-r--r--src/hl2h.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 2607ece..d6729cb 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -141,7 +141,7 @@ struct CUserCmd {
141 141
142enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5, IN_ATTACK2 = 1 << 11, IN_SPEED = 1 << 17 }; 142enum { IN_ATTACK = 1 << 0, IN_JUMP = 1 << 1, IN_DUCK = 1 << 2, IN_USE = 1 << 5, IN_ATTACK2 = 1 << 11, IN_SPEED = 1 << 17 };
143enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; 143enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 };
144enum { MOVETYPE_WALK = 2, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; 144enum { MOVETYPE_WALK = 2, MOVETYPE_VPHYSICS = 6, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 };
145 145
146// --------------------------------------------------------------------------- 146// ---------------------------------------------------------------------------
147// vector math 147// vector math