summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
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/hl2h.h
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 '')
-rw-r--r--src/hl2h.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 3ccf7b5..287563c 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -192,7 +192,8 @@ enum EspOption {
192 ESP_OPT_SHOW_SKELETON = 4, 192 ESP_OPT_SHOW_SKELETON = 4,
193 ESP_OPT_SHOW_BOX = 5, 193 ESP_OPT_SHOW_BOX = 5,
194 ESP_OPT_SHOW_SPEEDGRAPH = 6, 194 ESP_OPT_SHOW_SPEEDGRAPH = 6,
195 ESP_OPT_COUNT = 7 195 ESP_OPT_DAMAGE_TAGS = 7,
196 ESP_OPT_COUNT = 8
196}; 197};
197enum AimBone { 198enum AimBone {
198 AIM_BONE_HEAD = 0, 199 AIM_BONE_HEAD = 0,
@@ -273,6 +274,7 @@ int server_active_weapon(int idx);
273int server_npc_relation(int idx, int local_idx); 274int server_npc_relation(int idx, int local_idx);
274bool server_npc_has_follow_target(int idx); 275bool server_npc_has_follow_target(int idx);
275int server_npc_state(int idx); 276int server_npc_state(int idx);
277int server_npc_takedamage(int idx);
276int server_npc_turret_flags(int idx); 278int server_npc_turret_flags(int idx);
277int server_model_index(void *base); 279int server_model_index(void *base);
278void find_modules(); 280void find_modules();