diff --git a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs index 0f8176a287..f878c82525 100644 --- a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs @@ -23,7 +23,9 @@ using Robust.Shared.Prototypes; using Robust.Shared.Random; using Robust.Shared.Utility; using Content.Server.Traitor; -using System.Data; +using Content.Shared.Sound; +using Robust.Shared.Audio; +using Robust.Shared.Player; namespace Content.Server.GameTicking.Rules; @@ -44,6 +46,8 @@ public sealed class NukeopsRuleSystem : GameRuleSystem public override string Prototype => "Nukeops"; + private readonly SoundSpecifier _greetSound = new SoundPathSpecifier("/Audio/Misc/nukeops.ogg"); + private const string NukeopsPrototypeId = "Nukeops"; private const string NukeopsCommanderPrototypeId = "NukeopsCommander"; @@ -293,6 +297,12 @@ public sealed class NukeopsRuleSystem : GameRuleSystem GameTicker.PlayerJoinGame(session); } + + SoundSystem.Play(_greetSound.GetSound(), Filter.Empty().AddWhere(s => + { + var mind = ((IPlayerSession) s).Data.ContentData()?.Mind; + return mind != null && _aliveNukeops.ContainsKey(mind); + }), AudioParams.Default); } //For admins forcing someone to nukeOps. diff --git a/Resources/Audio/Misc/license.txt b/Resources/Audio/Misc/license.txt index 1ac9d6abac..0870697261 100644 --- a/Resources/Audio/Misc/license.txt +++ b/Resources/Audio/Misc/license.txt @@ -1,7 +1,9 @@ -epsilon.ogg made by dj-34 (https://github.com/dj-34) taken from https://github.com/ss220-space/Paradise/blob/05043bcfb35c2e7bcf1efbdbfbf976e1a2504bc2/sound/effects/epsilon.ogg +epsilon.ogg made by dj-34 (https://github.com/dj-34) taken from https://github.com/ss220-space/Paradise/blob/05043bcfb35c2e7bcf1efbdbfbf976e1a2504bc2/sound/effects/epsilon.ogg siren.ogg taken from https://github.com/ParadiseSS13/Paradise/blob/master/sound/effects/new_siren.ogg redalert.ogg was taken from: https://github.com/Skyrat-SS13/Skyrat13/commit/2d4f2d1b489590b559e4073f41b126cef56f4c50 bluealert.ogg was taken from: https://github.com/Skyrat-SS13/Skyrat13/commit/2d4f2d1b489590b559e4073f41b126cef56f4c50 + +nukeops.ogg was taken from: https://github.com/tgstation/tgstation/commit/827967c9650c23af64280ad1491405fed8f644c5 diff --git a/Resources/Audio/Misc/nukeops.ogg b/Resources/Audio/Misc/nukeops.ogg new file mode 100644 index 0000000000..7c2774f0a0 Binary files /dev/null and b/Resources/Audio/Misc/nukeops.ogg differ