Add nuke ops greeting sound (#9862)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
BIN
Resources/Audio/Misc/nukeops.ogg
Normal file
BIN
Resources/Audio/Misc/nukeops.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user