diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 21:22:47 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 21:22:47 +0100 |
| commit | 9904891162a6749d39110110c0812a64c241a7ea (patch) | |
| tree | 676eea2d0933ccb7675be6cac1481cc8208993ec /src/netvars.cpp | |
| parent | Stucklaunch: fix prop detection and add diagnostics (diff) | |
| download | hl2h-9904891162a6749d39110110c0812a64c241a7ea.tar.gz hl2h-9904891162a6749d39110110c0812a64c241a7ea.zip | |
Remove stucklaunch; add valuable-item ESP
- Drop the stucklaunch feature, its settings, diagnostics and
m_hGroundEntity resolution.
- Add a Visuals feature that scans the client entity list for valuable
pickups: health/medkits/chargers, ammo boxes/crates/grenades, batteries,
HEV suit modules/chargers, supply crates and generic items.
- Model-first classification with class fallbacks; category toggles, distance
labels and a max-distance slider.
- Draw colored marker/label tags through walls, independent of the hostile NPC
ESP.
- Persist [items] active/bind/health/ammo/armor/crates/distance/max_dist;
Reset restores defaults; GUI card and CONTEXT updated.
Diffstat (limited to '')
| -rw-r--r-- | src/netvars.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/netvars.cpp b/src/netvars.cpp index e304317..3b2d3b8 100644 --- a/src/netvars.cpp +++ b/src/netvars.cpp | |||
| @@ -92,9 +92,6 @@ static void collect_netvars(uintptr_t table, uintptr_t base_off, int depth) { | |||
| 92 | } else if (strcmp(pname2, "m_hActiveWeapon") == 0 && | 92 | } else if (strcmp(pname2, "m_hActiveWeapon") == 0 && |
| 93 | g_net.activeweapon < 0) { | 93 | g_net.activeweapon < 0) { |
| 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); | 94 | g_net.activeweapon = (int)(base_off + (uint32_t)poff); |
| 95 | } else if (strcmp(pname2, "m_hGroundEntity") == 0 && | ||
| 96 | g_net.groundentity < 0) { | ||
| 97 | g_net.groundentity = (int)(base_off + (uint32_t)poff); | ||
| 98 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { | 95 | } else if (strcmp(pname2, "m_iTeamNum") == 0 && g_net.teamnum < 0) { |
| 99 | g_net.teamnum = (int)(base_off + (uint32_t)poff); | 96 | g_net.teamnum = (int)(base_off + (uint32_t)poff); |
| 100 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { | 97 | } else if (strcmp(pname2, "m_vecOrigin") == 0 && g_net.origin < 0) { |
| @@ -275,7 +272,7 @@ void resolve_netvars() { | |||
| 275 | logf("m_vecAbsVelocity unresolved; jumpbug assist disabled"); | 272 | logf("m_vecAbsVelocity unresolved; jumpbug assist disabled"); |
| 276 | logf("netvars: flags=%d velocity=%d movetype=%d health=%d maxhealth=%d " | 273 | logf("netvars: flags=%d velocity=%d movetype=%d health=%d maxhealth=%d " |
| 277 | "teamnum=%d origin=%d viewoffset=%d mins=%d maxs=%d lifeste=%d " | 274 | "teamnum=%d origin=%d viewoffset=%d mins=%d maxs=%d lifeste=%d " |
| 278 | "modelindex=%d absvelocity=%d activeweapon=%d groundentity=%d", | 275 | "modelindex=%d absvelocity=%d activeweapon=%d", |
| 279 | g_net.flags, g_net.velocity, g_net.movetype, g_net.health, | 276 | g_net.flags, g_net.velocity, g_net.movetype, g_net.health, |
| 280 | g_net.maxhealth, g_net.teamnum, g_net.origin, g_net.viewoffset, | 277 | g_net.maxhealth, g_net.teamnum, g_net.origin, g_net.viewoffset, |
| 281 | g_net.mins, g_net.maxs, g_net.lifestate, g_net.modelindex, | 278 | g_net.mins, g_net.maxs, g_net.lifestate, g_net.modelindex, |
