GetWeaponImpactKey
function · sound · primitive
- Address
0x457e80· 58 bytes, up to0x457eb9- Meaning
- Returns a weapon's impact subclass and type, or the unarmed subclass and type 0
- 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 2
- PlayWeaponImpactOnItem sound
- PlayWeaponImpact sound
Callees 2
- GetUnarmedSkillSpell unassigned
- MaterialHasFlagBit0 objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.