From 90e157a20ff4f5d6f02029260e60ed51edf47f88 Mon Sep 17 00:00:00 2001 From: OhMyGuus Date: Fri, 8 Jan 2021 04:21:21 +0100 Subject: [PATCH] comms --- src/app/comp/AudioController.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/comp/AudioController.ts b/src/app/comp/AudioController.ts index a8082f4..0acc6c0 100644 --- a/src/app/comp/AudioController.ts +++ b/src/app/comp/AudioController.ts @@ -90,6 +90,11 @@ export default class AudioController extends EventEmitterO { case GameState.TASKS: gain.gain.value = 1; + + if (!localPLayer.isDead && connectionController.lobbySettings.commsDisabled && currentGameState.comsSabotaged) { + gain.gain.value = 0; + } + // Mute other players which are in a vent if (other.inVent) { gain.gain.value = localPLayer.inVent && connectionController.lobbySettings.ventTalk ? 1 : 0;