From 46d1e4f06fd2562b8091c21f8dd663d7f291ea6c Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Wed, 11 Aug 2021 20:52:06 -0700 Subject: [PATCH] Fix door sound dampening (#4453) --- Content.Server/Doors/Components/ServerDoorComponent.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Content.Server/Doors/Components/ServerDoorComponent.cs b/Content.Server/Doors/Components/ServerDoorComponent.cs index ba526c78c4..85908e86a0 100644 --- a/Content.Server/Doors/Components/ServerDoorComponent.cs +++ b/Content.Server/Doors/Components/ServerDoorComponent.cs @@ -254,7 +254,8 @@ namespace Content.Server.Doors.Components if (user.TryGetComponent(out HandsComponent? hands) && hands.Count == 0) { - SoundSystem.Play(Filter.Pvs(Owner), _tryOpenDoorSound.GetSound(), Owner, AudioParams.Default.WithVolume(-2)); + SoundSystem.Play(Filter.Pvs(Owner), _tryOpenDoorSound.GetSound(), Owner, + AudioParams.Default.WithVolume(-2)); } } else @@ -334,7 +335,7 @@ namespace Content.Server.Doors.Components if (OpenSound != null) { - SoundSystem.Play(Filter.Pvs(Owner), OpenSound.GetSound(), + SoundSystem.Play(Filter.Pvs(Owner), OpenSound.GetSound(), Owner, AudioParams.Default.WithVolume(-5)); } @@ -457,7 +458,7 @@ namespace Content.Server.Doors.Components if (CloseSound != null) { - SoundSystem.Play(Filter.Pvs(Owner), CloseSound.GetSound(), + SoundSystem.Play(Filter.Pvs(Owner), CloseSound.GetSound(), Owner, AudioParams.Default.WithVolume(-10)); } @@ -579,7 +580,7 @@ namespace Content.Server.Doors.Components } LastDenySoundTime = _gameTiming.CurTime; - SoundSystem.Play(Filter.Pvs(Owner), DenySound.GetSound(), + SoundSystem.Play(Filter.Pvs(Owner), DenySound.GetSound(), Owner, AudioParams.Default.WithVolume(-3)); }