s_waterSubmergeState
global · sound
- Address
0xb2326c· 4 bytes, up to0xb2326f- Type
uint32_t- Meaning
- Holds bit 0x2 while submerged and bit 0x1 for the restart without fade on surfacing
- Confidence
- verified, proof one
- Finding
- sound/ambience#water-sound-placement
Finding: Water sound placement in sound: ambience and reverb
A water loop is placed at the player plus an offset that moves toward the liquid's reported offset by at most 1/6 yard per frame, snapping when within 1/6. A liquid closer than 5.8926 yards puts the target straight above the player at that height instead. Going under water destroys the loops at once; coming back up starts them at full volume without the fade, once.
The derivation is in the doc.