Fixed NPC spawn facing
Fresh fixed NPCs and their replacement lives use the centre heading retained in their original population record. Ordinary population points have no heading field and keep the identity rotation. Stationary living fixed NPCs also use their authored facing when loaded from a checkpoint. Mobile actors and corpses retain their saved live rotation.
The maintained catalog contains 4,246 fixed NPC placements, of which 2,862 have a nonzero heading. Static mesh resource placements are excluded from these counts. Omni Entertainment's female captains retain headings of 45 and 146 degrees; its male captains retain 125 degrees. These come from each placement's own source record, independently of any cross-version appearance assignment.
Original client evidence
The inspected 14.9.1 kkr.dll SHA-256 is
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
Its fixed-spawn reader FUN_1002f9b0 reads the two shorts following position and
radius, requires the first to be below 360 and the second at most 360, and
multiplies each by 0.017453292 before storing floats at object offsets 0x14
and 0x18. This establishes degree units and excludes treating the pair as
quaternion components. The corresponding lifted function is
client/game/kkr.dll/lifted-0018.c:sub_3602F9B0.
REA/Ghidra 12.1.2 evidence:
ev_75482fa3b73b13e99054b8e3d54358c9c2450817a4ef2c13612ad16e4e40fe3f.
The full local evidence bundle is local/npc-appearances/facing-evidence.json.
This is static analysis, not a recorded original server spawn.
The interpretation of the fields as facing centre and cone width is also used
by AORebirth's SpawnHeading in
AORebirth/Server/ZoneEngine_New/Core/Playfield/HashSpawnSystem.cs, inspected at
commit 6ec06bbd45e72496923275dcc8fd4e25fecace73. It forms a yaw quaternion as
[0, sin(degrees*pi/360), 0, cos(degrees*pi/360)].
The server selects the recorded centre deterministically. The original server's random selection within the cone has not been recovered; no new random heading or pitch is inferred from the second short. Population point/radius selection and patrol behavior remain separate questions.
Verification
TestFixedNPCFacingUsesOriginalDegrees exercises maintained 125-, 90-, 180-
and zero-degree records plus an ordinary point through readNPCSpawns, and
checks the quaternion serialized into the client spawn packet.
TestFixedNPCRespawnRestoresAuthoredFacingAndReloadPreservesIt kills a turned
fixture NPC through combat, advances its replacement deadline, and verifies
the authored heading both in the replacement life and after cold database load.
TestNPCReloadUsesAuthoredFacingOnlyForStationaryActors verifies that a saved
stationary actor receives its authored facing while roaming and combat actors
retain the rotation saved in their checkpoint.