Reduce nuke detonation volume (#19430)
Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ using Content.Shared.Maps;
|
|||||||
using Content.Shared.Nuke;
|
using Content.Shared.Nuke;
|
||||||
using Content.Shared.Popups;
|
using Content.Shared.Popups;
|
||||||
using Robust.Server.GameObjects;
|
using Robust.Server.GameObjects;
|
||||||
|
using Robust.Shared.Audio;
|
||||||
using Robust.Shared.Containers;
|
using Robust.Shared.Containers;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
using Robust.Shared.Player;
|
using Robust.Shared.Player;
|
||||||
@@ -291,7 +292,7 @@ public sealed class NukeSystem : EntitySystem
|
|||||||
// play alert sound if time is running out
|
// play alert sound if time is running out
|
||||||
if (nuke.RemainingTime <= nuke.AlertSoundTime && !nuke.PlayedAlertSound)
|
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);
|
_sound.StopStationEventMusic(uid, StationEventMusicType.Nuke);
|
||||||
nuke.PlayedAlertSound = true;
|
nuke.PlayedAlertSound = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user