diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 23:07:40 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 23:07:40 +0100 |
| commit | 3249caf17de0dcab005398995ef3e611b3f81131 (patch) | |
| tree | 159ed49a5010d330e52322572026e0bcd046717a /src/gui.cpp | |
| parent | AI: debug-log NPC relation changes (diff) | |
| download | hl2h-3249caf17de0dcab005398995ef3e611b3f81131.tar.gz hl2h-3249caf17de0dcab005398995ef3e611b3f81131.zip | |
AI: fix relationship lookup; classify citizen/hacked turrets
m_Relationship is DEFINE_UTLVECTOR (FIELD_CUSTOM), not FIELD_EMBEDDED, so the
datamap scan always returned -1 and every NPC fell back to the model
heuristic. Resolve it as FIELD_CUSTOM with an embedded fallback.
Floor turrets never add relationship rows when friendly: CNPC_FloorTurret
overrides Classify() to CLASS_PLAYER_ALLY for citizen-built
(SF_FLOOR_TURRET_CITIZEN) and Alyx-hacked turrets. Read m_spawnflags and
m_bHackedByAlyx from the server instead.
Widen the datamap offset window (0x4..0x4000) for derived-class fields and
log the new offsets plus turret state in the NPC debug line.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
