benilla-re systems structs docs

PlayMaterialSound

function · sound · primitive

Address
0x4584e0 · 79 bytes, up to 0x45852e
Meaning
Plays a Material row's sound 2.0 yards above a position on bus 0
Confidence
verified, proof one
Finding
sound/objects#material-and-sheathe-sounds
Test
sound::sound_emit_pos_z2

Finding: Material and sheathe sounds in sound: object and combat sounds

0x4584e0(material, pos) plays a Material row's sound (column 2) 2.0 yards above the position, on bus 0. 0x45c490 builds, per SheatheSoundLookups column 1, two arrays indexed by Material id from columns 5 and 6; a row whose column 4 is 0 fills every material, else the one in column 3. 0x458530(item, first, pos) plays, when MasterSoundEffects is on, the entry for the item's first and third bytes 2.0 yards above the position, on bus 0, from column 5's array when first is set. Column 2 is not read.

The derivation is in the doc.

Callers 2

Callees 1

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