From cf8dfbca06757fc6a12992ab38d783de6bf5d641 Mon Sep 17 00:00:00 2001 From: Alekshhh <44923899+Alekshhh@users.noreply.github.com> Date: Sat, 26 Aug 2023 10:41:07 +0300 Subject: [PATCH] Reduce nuke detonation volume (#19430) Co-authored-by: Kevin Zheng --- Content.Server/Nuke/NukeSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Nuke/NukeSystem.cs b/Content.Server/Nuke/NukeSystem.cs index e7cc515e2b..fc1b367d5a 100644 --- a/Content.Server/Nuke/NukeSystem.cs +++ b/Content.Server/Nuke/NukeSystem.cs @@ -12,6 +12,7 @@ using Content.Shared.Maps; using Content.Shared.Nuke; using Content.Shared.Popups; using Robust.Server.GameObjects; +using Robust.Shared.Audio; using Robust.Shared.Containers; using Robust.Shared.Map; using Robust.Shared.Player; @@ -291,7 +292,7 @@ public sealed class NukeSystem : EntitySystem // play alert sound if time is running out if (nuke.RemainingTime <= nuke.AlertSoundTime && !nuke.PlayedAlertSound) { - _sound.PlayGlobalOnStation(uid, _audio.GetSound(nuke.AlertSound)); + _sound.PlayGlobalOnStation(uid, _audio.GetSound(nuke.AlertSound), new AudioParams{Volume = -5f}); _sound.StopStationEventMusic(uid, StationEventMusicType.Nuke); nuke.PlayedAlertSound = true; }