don't play suffocation sound in god mode
This commit is contained in:
parent
108efd0e55
commit
f583200b13
|
@ -267,6 +267,7 @@ pub fn play_zoom_sfx(
|
|||
}
|
||||
|
||||
pub fn play_gasp_sfx(
|
||||
settings: Res<Settings>,
|
||||
player: Query<&actor::Suit, With<actor::Player>>,
|
||||
mut ew_sfx: EventWriter<PlaySfxEvent>,
|
||||
q_audiosinks: Query<(&audio::Sfx, &AudioSink)>,
|
||||
|
@ -276,7 +277,7 @@ pub fn play_gasp_sfx(
|
|||
if *sfxtype != Sfx::Gasp {
|
||||
continue;
|
||||
}
|
||||
if suit.oxygen <= 0.0 {
|
||||
if suit.oxygen <= 0.0 && !settings.god_mode {
|
||||
sink.set_volume(0.6);
|
||||
sink.play();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue