diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 23:36:58 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 23:36:58 +0100 |
| commit | 5ee8eb4a2b96b4a9916f85ddec5b43ae24ca93d1 (patch) | |
| tree | f618c930aa6bcd51f396598872194943c442b172 /src/hl2h.h | |
| parent | World: add prop tint and fog override (diff) | |
| download | hl2h-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -266,6 +266,7 @@ bool server_set_velocity_z(int idx, float vz); | |||
| 266 | int server_active_weapon(int idx); | 266 | int server_active_weapon(int idx); |
| 267 | int server_npc_relation(int idx, int local_idx); | 267 | int server_npc_relation(int idx, int local_idx); |
| 268 | bool server_npc_has_follow_target(int idx); | 268 | bool server_npc_has_follow_target(int idx); |
| 269 | int server_npc_state(int idx); | ||
| 269 | int server_npc_turret_flags(int idx); | 270 | int server_npc_turret_flags(int idx); |
| 270 | int server_model_index(void *base); | 271 | int server_model_index(void *base); |
| 271 | void find_modules(); | 272 | void find_modules(); |
