benilla-re systems structs docs

StepSoundDuck

function · sound · primitive

Address
0x457960 · 226 bytes, up to 0x457a41
Meaning
Steps the server-sound duck ramp of the Sound factor for the frame's time
Confidence
verified, proof one
Finding
sound/objects#the-duck
Test
sound::music_volume_fade

Finding: The duck in sound: object and combat sounds

The first server sound to fill an empty registry records the current SoundVolume and starts a ramp. Each frame the registry drops ended or cut-off sounds; while any remains the Sound factor ramps linearly from the recorded volume V to V · 0.5 over 500 ms, and when the last one goes it ramps back from V · 0.5 to the SoundVolume CVar over 3000 ms. Each ramp's end applies its target: V · 0.5 for the ramp down, the CVar for the return. Changes to SoundVolume are ignored while a slot is held or a ramp runs, so only the return ramp picks them up.

The derivation is in the doc.

Callers 1

Callees 3

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