summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 21:37:41 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 21:37:41 +0100
commit77bd6ba7054b19332dc357e866f158321ec889fb (patch)
tree741c046d925bd1dbfc8af935954f3eab6c027660 /src/hl2h.h
parentItem ESP: tag breakable wood/plastic/metal crates (diff)
downloadhl2h-77bd6ba7054b19332dc357e866f158321ec889fb.tar.gz
hl2h-77bd6ba7054b19332dc357e866f158321ec889fb.zip
Item ESP: tag world weapons, name ammo types, restrict crates
- Add a Weapons category and classify world weapon models (crowbar, pistol, revolver, SMG, AR2, shotgun, crossbow, RPG, grenade, gravity gun, stunstick, bugbait, sniper). Skip the active weapon and anything with a valid m_hOwner/m_hOwnerEntity handle so held weapons do not tag. - Label ammo by model: pistol, SMG, AR2, .357, crossbow, shotgun, sniper, flares, AR2 grenade, RPG rocket and specific ammo-crate variants. - Only item_item_crate and item_beacon_crate are supply crates; generic breakable crates are no longer tagged. Crate chunks stay excluded. - Add item diagnostics: category state, prop-like entities with class/model/ kind/distance/origin, and every item crate seen.
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 8aeef7a..cc11e0d 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -92,6 +92,8 @@ struct NetVars {
92 int modelindex = -1; 92 int modelindex = -1;
93 int absvelocity = -1; // client C_BaseEntity::m_vecAbsVelocity (prediction) 93 int absvelocity = -1; // client C_BaseEntity::m_vecAbsVelocity (prediction)
94 int activeweapon = -1; // client m_hActiveWeapon handle 94 int activeweapon = -1; // client m_hActiveWeapon handle
95 int owner = -1; // client m_hOwnerEntity handle
96 int weapon_owner = -1; // client m_hOwner handle (C_BaseCombatWeapon)
95 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72 97 // ponytail: mins/maxs may be absent from some HL2 netvar tables; esp.cpp falls back to h=72
96 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; } 98 bool ok() const { return flags >= 0 && velocity >= 0 && movetype >= 0; }
97 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100. 99 // ponytail: m_iMaxHealth isn't a netvar in HL2 SP; esp.cpp falls back to 100.
@@ -212,6 +214,7 @@ extern bool g_spread_no_spread;
212extern bool g_item_health; 214extern bool g_item_health;
213extern bool g_item_ammo; 215extern bool g_item_ammo;
214extern bool g_item_armor; 216extern bool g_item_armor;
217extern bool g_item_weapons;
215extern bool g_item_crates; 218extern bool g_item_crates;
216extern bool g_item_distance; 219extern bool g_item_distance;
217extern int g_item_max_dist; 220extern int g_item_max_dist;