summaryrefslogtreecommitdiffstats
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 12:39:45 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 12:39:45 +0100
commit1fa3b61163b233f6c8c6b86dfa196fb798a6f094 (patch)
treee21fd421dcfc78ef6ec73883442a60cdb6fe6597 /src/gui.cpp
parentProps: remove studio diagnostics; document the prop tint path (diff)
downloadhl2h-1fa3b61163b233f6c8c6b86dfa196fb798a6f094.tar.gz
hl2h-1fa3b61163b233f6c8c6b86dfa196fb798a6f094.zip
ESP: classify NPC damage immunity/armour/vulnerability
- Resolve server m_takedamage (DAMAGE_NO/DAMAGE_EVENTS_ONLY = immune). - Classify gunship/strider/dropship as ARMORED (OnTakeDamage only accepts DMG_BLAST; only the RPG passes), and headcrab/antlion/manhack as VULN (gravity gun / physics impact). - ESP draws ARMORED/VULN/IMMUNE tags above the name (new "Damage tags" toggle, [esp] dmg). - Aimbot, silent aim, triggerbot and melee skip immune targets and armoured targets unless the active weapon is the RPG.
Diffstat (limited to 'src/gui.cpp')
-rw-r--r--src/gui.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index ebc1f62..b5fbc1d 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -359,12 +359,13 @@ static void build_cards() {
359 static const char *esp_names[ESP_OPT_COUNT] = { 359 static const char *esp_names[ESP_OPT_COUNT] = {
360 "Show neutral", "Show healthbar", "Show healthnum", 360 "Show neutral", "Show healthbar", "Show healthnum",
361 "Show name", "Show skeleton", "Show box", 361 "Show name", "Show skeleton", "Show box",
362 "Show speed graph"}; 362 "Show speed graph", "Damage tags"};
363 static const char *esp_descs[ESP_OPT_COUNT] = { 363 static const char *esp_descs[ESP_OPT_COUNT] = {
364 "Include neutral wildlife.", "Draw a health bar.", 364 "Include neutral wildlife.", "Draw a health bar.",
365 "Draw the numeric health value.", "Draw the model name.", 365 "Draw the numeric health value.", "Draw the model name.",
366 "Draw the animated bone links.", "Draw a bounding box.", 366 "Draw the animated bone links.", "Draw a bounding box.",
367 "Draw the lower-center speed graph."}; 367 "Draw the lower-center speed graph.",
368 "Label ARMORED (needs blast/RPG) and VULN (gravity gun) units."};
368 for (int i = 0; i < ESP_OPT_COUNT; i++) 369 for (int i = 0; i < ESP_OPT_COUNT; i++)
369 add_toggle(esp, esp_names[i], esp_descs[i], &g_esp_opt[i]); 370 add_toggle(esp, esp_names[i], esp_descs[i], &g_esp_opt[i]);
370 371