summaryrefslogtreecommitdiffstats
path: root/src/gui.cpp
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/gui.cpp
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 '')
-rw-r--r--src/gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index eb9a964..29fa60b 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -350,7 +350,7 @@ static void build_cards() {
350 add_toggle(esp, esp_names[i], esp_descs[i], &g_esp_opt[i]); 350 add_toggle(esp, esp_names[i], esp_descs[i], &g_esp_opt[i]);
351 351
352 int items = add_card(2, &g_item_esp, "Valuable items", 352 int items = add_card(2, &g_item_esp, "Valuable items",
353 "Tag medkits, ammo, armor and supply crates.", true); 353 "Tag medkits, ammo, armor, weapons and supply crates.", true);
354 add_toggle(items, "Medkits / health", 354 add_toggle(items, "Medkits / health",
355 "Tag health kits, health vials and health chargers.", 355 "Tag health kits, health vials and health chargers.",
356 &g_item_health); 356 &g_item_health);
@@ -358,6 +358,7 @@ static void build_cards() {
358 &g_item_ammo); 358 &g_item_ammo);
359 add_toggle(items, "Armor / suit", "Tag batteries, HEV suits and chargers.", 359 add_toggle(items, "Armor / suit", "Tag batteries, HEV suits and chargers.",
360 &g_item_armor); 360 &g_item_armor);
361 add_toggle(items, "Weapons", "Tag world weapon pickups.", &g_item_weapons);
361 add_toggle(items, "Supply crates", "Tag item and beacon crates.", 362 add_toggle(items, "Supply crates", "Tag item and beacon crates.",
362 &g_item_crates); 363 &g_item_crates);
363 add_toggle(items, "Show distance", "Append the distance in units.", 364 add_toggle(items, "Show distance", "Append the distance in units.",