benilla-re systems structs docs

s_duckRampStart

global · sound

Address
0xb05fc0 · 4 bytes, up to 0xb05fc3
Type
uint32_t
Meaning
Holds the duck ramp's start time, 0 while no ramp runs
Confidence
verified, proof one
Finding
sound/objects#the-duck

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.