Adds station filter for alert level change sound (#9533)
This commit is contained in:
@@ -173,7 +173,8 @@ public sealed class AlertLevelSystem : EntitySystem
|
||||
{
|
||||
if (detail.Sound != null)
|
||||
{
|
||||
SoundSystem.Play(detail.Sound.GetSound(), Filter.Broadcast(), detail.Sound.Params);
|
||||
var filter = _stationSystem.GetInStation(station);
|
||||
SoundSystem.Play(detail.Sound.GetSound(), filter, detail.Sound.Params);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace Content.Server.Nuke
|
||||
// Otherwise, you could set every station to whatever AlertLevelOnActivate is.
|
||||
if (stationUid != null)
|
||||
{
|
||||
_alertLevel.SetLevel(stationUid.Value, component.AlertLevelOnActivate, false, true, true, true);
|
||||
_alertLevel.SetLevel(stationUid.Value, component.AlertLevelOnActivate, true, true, true, true);
|
||||
}
|
||||
|
||||
// warn a crew
|
||||
|
||||
Reference in New Issue
Block a user