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/gui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui.cpp') diff --git a/src/gui.cpp b/src/gui.cpp index 9af8003..156e496 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -879,6 +879,8 @@ static void handle_capture(const unsigned char *keys) { config_save(); toastf(TOAST_INFO, "%s bound to %s", card.title, scancode_name(card.feat->bind)); + if (!card.feat->active) + toastf(TOAST_WARN, "%s is not Active yet", card.title); return; } for (int k = 0; k < 512; k++) { @@ -890,9 +892,12 @@ static void handle_capture(const unsigned char *keys) { card.feat->bind = k; g_capture_card = -1; config_save(); - if (card.feat) + if (card.feat) { toastf(TOAST_INFO, "%s bound to %s", card.title, scancode_name(card.feat->bind)); + if (!card.feat->active) + toastf(TOAST_WARN, "%s is not Active yet", card.title); + } return; } } -- cgit v1.2.3