benilla-re systems structs docs

s_soundSubmerged

global · sound

Address
0x835a44 · 4 bytes, up to 0x835a47
Type
int32_t
Meaning
Holds 1 while the camera is submerged, 0 otherwise, -1 at start and exit
Confidence
verified, proof one
Finding
sound/ambience#zone-ambience-choice

Finding: Zone ambience choice in sound: ambience and reverb

One ambience plays at a time. Its sound is, in order: the SoundEntries row named Ghost (DONOTRENAME) while the player is a ghost; Underwater (DONOTRENAME) while the camera is submerged; the weather message's sound when there is one and the area does not override it; else the area's SoundAmbience day or night sound. The area change passes the SoundAmbience id with the override flag: 1 from the zone text resolver, 0 from the zone change report.

The derivation is in the doc.