benilla-re systems structs docs

SetWeaponImpactRow

function · sound · primitive

Address
0x45cc40 · 62 bytes, up to 0x45cc7d
Meaning
Stores a WeaponImpactSounds row's ten normal and critical sounds for its subclass and type
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 0

None by a direct call or jump.

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