diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 12:39:45 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 12:39:45 +0100 |
| commit | 1fa3b61163b233f6c8c6b86dfa196fb798a6f094 (patch) | |
| tree | e21fd421dcfc78ef6ec73883442a60cdb6fe6597 /src/hl2h.h | |
| parent | Props: remove studio diagnostics; document the prop tint path (diff) | |
| download | hl2h-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | }; |
| 197 | enum AimBone { | 198 | enum AimBone { |
| 198 | AIM_BONE_HEAD = 0, | 199 | AIM_BONE_HEAD = 0, |
| @@ -273,6 +274,7 @@ int server_active_weapon(int idx); | |||
| 273 | int server_npc_relation(int idx, int local_idx); | 274 | int server_npc_relation(int idx, int local_idx); |
| 274 | bool server_npc_has_follow_target(int idx); | 275 | bool server_npc_has_follow_target(int idx); |
| 275 | int server_npc_state(int idx); | 276 | int server_npc_state(int idx); |
| 277 | int server_npc_takedamage(int idx); | ||
| 276 | int server_npc_turret_flags(int idx); | 278 | int server_npc_turret_flags(int idx); |
| 277 | int server_model_index(void *base); | 279 | int server_model_index(void *base); |
| 278 | void find_modules(); | 280 | void find_modules(); |
