Reduce nuke detonation volume (#19430)
Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
parent
7dbd8f8b7a
commit
cf8dfbca06
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue