summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 23:36:58 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 23:36:58 +0100
commit5ee8eb4a2b96b4a9916f85ddec5b43ae24ca93d1 (patch)
treef618c930aa6bcd51f396598872194943c442b172 /src/hl2h.h
parentWorld: add prop tint and fog override (diff)
downloadhl2h-5ee8eb4a2b96b4a9916f85ddec5b43ae24ca93d1.tar.gz
hl2h-5ee8eb4a2b96b4a9916f85ddec5b43ae24ca93d1.zip
AI: treat scripted NPCs as neutral; Lamarr neutral
Read the server m_NPCState and mark NPC_STATE_SCRIPT actors neutral so cutscene NPCs and scripted pets are not aimbot targets and draw in the neutral colour. Add Lamarr (Kleiner's pet headcrab) to the neutral model list as requested. Also log state changes in the NPC debug line and resolve/log m_NPCState in the server datamap summary.
Diffstat (limited to 'src/hl2h.h')
-rw-r--r--src/hl2h.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hl2h.h b/src/hl2h.h
index 6f23221..877afac 100644
--- a/src/hl2h.h
+++ b/src/hl2h.h
@@ -266,6 +266,7 @@ bool server_set_velocity_z(int idx, float vz);
266int server_active_weapon(int idx); 266int server_active_weapon(int idx);
267int server_npc_relation(int idx, int local_idx); 267int server_npc_relation(int idx, int local_idx);
268bool server_npc_has_follow_target(int idx); 268bool server_npc_has_follow_target(int idx);
269int server_npc_state(int idx);
269int server_npc_turret_flags(int idx); 270int server_npc_turret_flags(int idx);
270int server_model_index(void *base); 271int server_model_index(void *base);
271void find_modules(); 272void find_modules();