benilla-re systems structs docs

GetFootstepSound

function · sound · primitive

Address
0x458450 · 142 bytes, up to 0x4584dd
Meaning
Returns the footstep table's dry or wet sound for a footstep id and terrain type, or 0
Confidence
verified, proof one
Finding
sound/objects#footstep-table

Finding: Footstep table in sound: object and combat sounds

0x457040 builds, per CreatureFootstepID of FootstepTerrainLookup, two arrays indexed by TerrainTypeSounds id: the dry sound (column 3) and the wet sound (column 4). The arrays hold TerrainTypeSounds' largest id + 1 entries and the row's index column is written without a bound check. 0x458450(footstep, terrain, wet) reads the TerrainType row's sound id (+0x10) and returns that entry, again unchecked, or 0 for an unknown terrain type or footstep id.

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.