benilla-re systems structs docs

s_weaponImpactSounds

global · sound

Address
0xb06224 · 16 bytes, up to 0xb06233
Type
uint32_t[4]
Meaning
Holds the weapon impact array: capacity, count, buffer and granularity
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.