From 77bd6ba7054b19332dc357e866f158321ec889fb Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 21:37:41 +0100 Subject: 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. --- src/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui.cpp') 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() { add_toggle(esp, esp_names[i], esp_descs[i], &g_esp_opt[i]); int items = add_card(2, &g_item_esp, "Valuable items", - "Tag medkits, ammo, armor and supply crates.", true); + "Tag medkits, ammo, armor, weapons and supply crates.", true); add_toggle(items, "Medkits / health", "Tag health kits, health vials and health chargers.", &g_item_health); @@ -358,6 +358,7 @@ static void build_cards() { &g_item_ammo); add_toggle(items, "Armor / suit", "Tag batteries, HEV suits and chargers.", &g_item_armor); + add_toggle(items, "Weapons", "Tag world weapon pickups.", &g_item_weapons); add_toggle(items, "Supply crates", "Tag item and beacon crates.", &g_item_crates); add_toggle(items, "Show distance", "Append the distance in units.", -- cgit v1.2.3