PlayServerObjectSound
function · sound · orchestration
- Address
0x458fb0· 260 bytes, up to0x4590b3- Meaning
- Plays the server's object sound at a unit, registering a 3D one that follows it
- 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
- CGUnit_C::StopReactionSound objectlayer
Callees 8
- OsGetAsyncTimeMs core
- SndInterfaceAssociateSoundWithObject sound
- UsesServerSoundRegistry sound
- FindServerSoundSlot sound
- AddServerSoundSlot sound
- InternalPlaySoundAt sound
- PlaySoundAtPosition2 sound
- CVar::Lookup cvar
Calls and jumps by a bare address, from tables/calls.tsv.