Skip to content

Commit

Permalink
comms
Browse files Browse the repository at this point in the history
  • Loading branch information
OhMyGuus committed Jan 8, 2021
1 parent 0cb2e27 commit 90e157a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/comp/AudioController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90e157a

Please sign in to comment.