diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 14:28:21 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 14:28:21 +0100 |
| commit | 714262bcf759a238daf906de16e7b204712a104f (patch) | |
| tree | d208ecfbbdb0f5f2f27aa888c806e38198ad1d52 /src/gui.cpp | |
| parent | Remove gamma slider; keep HDR brightness (diff) | |
| download | hl2h-714262bcf759a238daf906de16e7b204712a104f.tar.gz hl2h-714262bcf759a238daf906de16e7b204712a104f.zip | |
Add usable item filter, projectile ESP and gravity-gun melee
- Items: "Only if usable" hides health tags at full health and armor at full
suit. Health ceiling is the server player's m_iMaxHealth; armor uses the
server m_ArmorValue against HL2's 100 cap. Fails open when unreadable.
- Projectiles: new Visuals feature/card for thrown grenades, RPG rockets,
helicopter bombs and AR2 balls. Fuse from server m_flDetonateTime vs engine
time; radius from m_DmgRadius with per-type fallback; optional 24-segment
radius ring and FRAG timer label.
- Melee: the killbot now handles the gravity gun as well; only VULNERABLE
targets, 1200-unit range, primary attack to launch the held object, and no
aim-punch compensation because the launch uses EyeVectors.
- Server/netvars: m_ArmorValue, m_flDetonateTime, m_DmgRadius.
Diffstat (limited to 'src/gui.cpp')
| -rw-r--r-- | src/gui.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index 59c4364..2f832a2 100644 --- a/src/gui.cpp +++ b/src/gui.cpp | |||
| @@ -364,7 +364,9 @@ static void build_cards() { | |||
| 364 | add_card(1, &g_triggerbot, "Triggerbot", | 364 | add_card(1, &g_triggerbot, "Triggerbot", |
| 365 | "Fire when the crosshair is on a hostile.", true); | 365 | "Fire when the crosshair is on a hostile.", true); |
| 366 | 366 | ||
| 367 | add_card(1, &g_melee, "Melee killbot", "360-degree crowbar silent aim.", | 367 | add_card(1, &g_melee, "Melee killbot", |
| 368 | "360-degree crowbar swing, or a gravity-gun launch at VULN " | ||
| 369 | "targets while holding an object.", | ||
| 368 | true); | 370 | true); |
| 369 | 371 | ||
| 370 | int esp = add_card(2, &g_esp, "ESP", "Draw hostile NPC information.", true); | 372 | int esp = add_card(2, &g_esp, "ESP", "Draw hostile NPC information.", true); |
| @@ -405,11 +407,22 @@ static void build_cards() { | |||
| 405 | &g_item_crates); | 407 | &g_item_crates); |
| 406 | add_toggle(items, "Show distance", "Append the distance in units.", | 408 | add_toggle(items, "Show distance", "Append the distance in units.", |
| 407 | &g_item_distance); | 409 | &g_item_distance); |
| 410 | add_toggle(items, "Only if usable", | ||
| 411 | "Hide health kits at full health and armor at full suit.", | ||
| 412 | &g_item_usable); | ||
| 408 | add_slider(items, "Max distance", | 413 | add_slider(items, "Max distance", |
| 409 | "0 = unlimited; otherwise items farther away are hidden.", 0, | 414 | "0 = unlimited; otherwise items farther away are hidden.", 0, |
| 410 | 10000, &g_item_max_dist); | 415 | 10000, &g_item_max_dist); |
| 411 | g_ctrls[g_nctrl - 1].zero_unlimited = true; | 416 | g_ctrls[g_nctrl - 1].zero_unlimited = true; |
| 412 | 417 | ||
| 418 | int proj = add_card(2, &g_projectiles, "Projectiles", | ||
| 419 | "Tag grenades, rockets, bombs and AR2 balls.", true); | ||
| 420 | add_toggle(proj, "Fuse timer", | ||
| 421 | "Show the remaining time until a grenade or ball detonates.", | ||
| 422 | &g_proj_fuse); | ||
| 423 | add_toggle(proj, "Blast radius", | ||
| 424 | "Draw the projectile's damage radius on the ground.", &g_proj_radius); | ||
| 425 | |||
| 413 | int view = add_card(2, nullptr, "Camera / display", | 426 | int view = add_card(2, nullptr, "Camera / display", |
| 414 | "Camera FOV, viewmodel FOV and HDR brightness.", true); | 427 | "Camera FOV, viewmodel FOV and HDR brightness.", true); |
| 415 | add_slider(view, "Camera FOV", | 428 | add_slider(view, "Camera FOV", |
