From c91c7248fcb3911a8a2b6442d8657167364a911c Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 21:11:32 +0100 Subject: 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. --- src/hl2h.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hl2h.h') 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 { 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 }; enum { FL_ONGROUND = 1 << 0, FL_DUCKING = 1 << 1, FL_INWATER = 1 << 9 }; -enum { MOVETYPE_WALK = 2, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; +enum { MOVETYPE_WALK = 2, MOVETYPE_VPHYSICS = 6, MOVETYPE_NOCLIP = 8, MOVETYPE_LADDER = 9 }; // --------------------------------------------------------------------------- // vector math -- cgit v1.2.3