benilla-re systems structs docs

PlayWeaponImpact

function · sound · orchestration

Address
0x457ec0 · 95 bytes, up to 0x457f1e
Meaning
Plays the impact table's sound for a weapon, kind and critical flag on bus 10
Confidence
verified, proof one
Finding
sound/objects#weapon-impact-sounds

Finding: Weapon impact sounds in sound: object and combat sounds

0x45cb60 sizes a table of 10 impact kinds per weapon subclass and fills it from WeaponImpactSounds: for the subclass in column 1 and the type in column 2, kind i gets the normal and critical sounds of columns 3 + i and 13 + i. 0x457ec0(weapon, kind, critical, pos) plays the entry of the weapon's subclass and type on bus 10 (cap 4). 0x457dc0(weapon, item, critical, pos) takes the kind from the struck item: 5 or 6 for a weapon (class 2) and 3 or 4 for armor (class 4) by a test of its third byte, else 0, and plays 2.0 yards higher.

The derivation is in the doc.

Callers 1

Callees 2

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