Open JackFarrand opened 8 years ago
Jarring is good, exposure to space should be treated as a proper threat in the game! only their own quiet breath sounds and perhaps bass notes from whatever they are connected to. Bear in mind that the speed of sound and therefore pitch changes with pressure, should be easy enough to model [per player pitch multiplier] but would be a cool effect.
This can now be done using the Sound Classes added. We can mute certain classes of sound during transition between air volumes.
Should we null all sound (Background/Ambient/UI) when outside? It might be a jarring experience having complete silence. Maybe the helmet would make some white noise (air movement)?
The functionality itself is easy enough. If ((player.localAirVolume == NULL) || (player.localAirVolume->press < 1)) then they are in space. I'll add a event 'EnteredAirVolume' 'LeftAirVolume' and perform the check there if sound should be enabled.