From d0a47580ee54f2a7e396e3366f5f1b064f9f1b58 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Mon, 29 Jan 2024 23:07:03 +0000 Subject: [PATCH] fix hearing TH audio when dead? maybe? --- QSB/DeathSync/RespawnOnDeath.cs | 4 ++-- QSB/RespawnSync/RespawnManager.cs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/QSB/DeathSync/RespawnOnDeath.cs b/QSB/DeathSync/RespawnOnDeath.cs index 15db3dfc..3aa69cc1 100644 --- a/QSB/DeathSync/RespawnOnDeath.cs +++ b/QSB/DeathSync/RespawnOnDeath.cs @@ -82,8 +82,8 @@ public class RespawnOnDeath : MonoBehaviour ResetCanvases(); var mixer = Locator.GetAudioMixer(); - mixer._deathMixed = false; - mixer._nonEndTimesVolume.FadeTo(1, 0.5f); + //mixer._deathMixed = false; + //mixer._nonEndTimesVolume.FadeTo(1, 0.5f); mixer._endTimesVolume.FadeTo(1, 0.5f); mixer.MixMap(); diff --git a/QSB/RespawnSync/RespawnManager.cs b/QSB/RespawnSync/RespawnManager.cs index 584f5aa7..7d8b43e9 100644 --- a/QSB/RespawnSync/RespawnManager.cs +++ b/QSB/RespawnSync/RespawnManager.cs @@ -139,6 +139,12 @@ public class RespawnManager : MonoBehaviour, IAddComponentOnStart cameraEffectController.OpenEyes(1f); OWInput.ChangeInputMode(InputMode.Character); + + var mixer = Locator.GetAudioMixer(); + mixer._deathMixed = false; + mixer._nonEndTimesVolume.FadeTo(1, 0.5f); + mixer._endTimesVolume.FadeTo(1, 0.5f); + mixer.UnmixMap(); } public void OnPlayerDeath(PlayerInfo player)