From bda1999675c153c4a9147883aa279521445e7f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Ueti?= <52474532+Mirino97@users.noreply.github.com> Date: Mon, 27 Jun 2022 17:45:01 -0300 Subject: [PATCH] Adjust alert level volumes (#9145) * Finally * Requested adjustments --- Content.Server/AlertLevel/AlertLevelSystem.cs | 2 +- Resources/Prototypes/AlertLevels/alert_levels.yml | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Content.Server/AlertLevel/AlertLevelSystem.cs b/Content.Server/AlertLevel/AlertLevelSystem.cs index d99f16b852..8b78dbe9da 100644 --- a/Content.Server/AlertLevel/AlertLevelSystem.cs +++ b/Content.Server/AlertLevel/AlertLevelSystem.cs @@ -173,7 +173,7 @@ public sealed class AlertLevelSystem : EntitySystem { if (detail.Sound != null) { - SoundSystem.Play(detail.Sound.GetSound(), Filter.Broadcast()); + SoundSystem.Play(detail.Sound.GetSound(), Filter.Broadcast(), detail.Sound.Params); } else { diff --git a/Resources/Prototypes/AlertLevels/alert_levels.yml b/Resources/Prototypes/AlertLevels/alert_levels.yml index 51c913f1e1..3a1e136aa2 100644 --- a/Resources/Prototypes/AlertLevels/alert_levels.yml +++ b/Resources/Prototypes/AlertLevels/alert_levels.yml @@ -27,20 +27,29 @@ gamma: announcement: alert-level-gamma-announcement selectable: false - sound: /Audio/Misc/siren.ogg + sound: + path: /Audio/Misc/siren.ogg + params: + volume: -2 disableSelection: true color: PaleVioletRed delta: announcement: alert-level-delta-announcement selectable: false - sound: /Audio/Misc/delta.ogg + sound: + path: /Audio/Misc/delta.ogg + params: + volume: -5 disableSelection: true color: DarkRed shuttleTime: 1200 epsilon: announcement: alert-level-epsilon-announcement selectable: false - sound: /Audio/Misc/epsilon.ogg + sound: + path: /Audio/Misc/epsilon.ogg + params: + volume: -2 disableSelection: true color: DarkViolet shuttleTime: 1200