diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-27 21:37:41 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-27 21:37:41 +0100 |
| commit | 77bd6ba7054b19332dc357e866f158321ec889fb (patch) | |
| tree | 741c046d925bd1dbfc8af935954f3eab6c027660 /src/hl2h.h | |
| parent | Item ESP: tag breakable wood/plastic/metal crates (diff) | |
| download | hl2h-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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; | |||
| 212 | extern bool g_item_health; | 214 | extern bool g_item_health; |
| 213 | extern bool g_item_ammo; | 215 | extern bool g_item_ammo; |
| 214 | extern bool g_item_armor; | 216 | extern bool g_item_armor; |
| 217 | extern bool g_item_weapons; | ||
| 215 | extern bool g_item_crates; | 218 | extern bool g_item_crates; |
| 216 | extern bool g_item_distance; | 219 | extern bool g_item_distance; |
| 217 | extern int g_item_max_dist; | 220 | extern int g_item_max_dist; |
