benilla-re systems structs docs

AddServerSoundSlot

function · sound · primitive

Address
0x459120 · 198 bytes, up to 0x4591e5
Meaning
Fills the last empty server sound slot, or grows the slot array, with a sound and GUID
Confidence
verified, proof one
Finding
sound/objects#server-object-sounds

Finding: Server object sounds in sound: object and combat sounds

The server's object-sound message (opcode 0x278) for a unit calls 0x458fb0(unit, id). A sound with no definition, or with flag 0x2, plays once at the unit on bus 0. Otherwise a unit that already has a live server sound gets nothing; a new one plays as a 3D sound with no category, follows the unit, and fills a slot of the server sound registry with the unit's GUID. 0x4591f0(unit) reports whether a unit holds a slot; the unit sound code asks it (0x6234cb, 0x623a59).

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.