diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 20:17:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 20:17:07 +0100 |
| commit | 59432708a4ae926e4be2959dfbb2b4eb80be3fd6 (patch) | |
| tree | 3233f49d2c9b3affbb97d832b4afdccbfb5f43b6 /src/gui.cpp | |
| parent | Fix tooltip truncation; add Stucklaunch assist (diff) | |
| download | hl2h-59432708a4ae926e4be2959dfbb2b4eb80be3fd6.tar.gz hl2h-59432708a4ae926e4be2959dfbb2b4eb80be3fd6.zip | |
Stucklaunch: alternate attack/use and expose spam rate
- Gravity-gun spam now alternates +attack (grab) and +use (drop) instead of
pressing both together, which would punt the prop.
- Add a Spam rate slider (1..16 ticks, default 2) so the pickup/drop cycle can
be tuned; it persists as spam_ticks in [stucklaunch].
- Log the prop index the first few times a stucklaunch engages to aid testing.
Diffstat (limited to 'src/gui.cpp')
| -rw-r--r-- | src/gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index dc0e4eb..fc95d1f 100644 --- a/src/gui.cpp +++ b/src/gui.cpp | |||
| @@ -301,10 +301,12 @@ static void build_cards() { | |||
| 301 | "Rapidly press +use to keep regrabbing the prop.", | 301 | "Rapidly press +use to keep regrabbing the prop.", |
| 302 | &g_stucklaunch_use_spam); | 302 | &g_stucklaunch_use_spam); |
| 303 | add_toggle(sl, "Gravity gun spam", | 303 | add_toggle(sl, "Gravity gun spam", |
| 304 | "Rapidly press +attack while holding the gravity gun.", | 304 | "Alternate +attack and +use while holding the gravity gun.", |
| 305 | &g_stucklaunch_gravspam); | 305 | &g_stucklaunch_gravspam); |
| 306 | add_toggle(sl, "Auto-strafe", "Air-strafe each hop.", | 306 | add_toggle(sl, "Auto-strafe", "Air-strafe each hop.", |
| 307 | &g_stucklaunch_autostrafe); | 307 | &g_stucklaunch_autostrafe); |
| 308 | add_slider(sl, "Spam rate", "Ticks between spam toggles; higher is slower.", | ||
| 309 | 1, 16, &g_stucklaunch_spam_ticks); | ||
| 308 | 310 | ||
| 309 | int jb = add_card(0, &g_jumpbug, "Jumpbug", | 311 | int jb = add_card(0, &g_jumpbug, "Jumpbug", |
| 310 | "Duck+jump when landing would hurt.", true); | 312 | "Duck+jump when landing would hurt.", true); |
