techcompliant / TC

8 stars 0 forks source link

Sounds can be heard in vacuum environment #16

Open JackFarrand opened 8 years ago

techcompliant commented 8 years ago

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.

JackFarrand commented 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.

paultech commented 7 years ago

This can now be done using the Sound Classes added. We can mute certain classes of sound during transition between air volumes.