Add attention.ogg and soundspecifiers for events (#7977)

This commit is contained in:
metalgearsloth
2022-05-07 15:41:15 +10:00
committed by GitHub
parent 5a9fff34d0
commit c95bf87e74
12 changed files with 24 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
using System.Threading;
using Content.Server.Power.Components;
using Content.Shared.Sound;
using JetBrains.Annotations;
using Robust.Shared.Audio;
using Robust.Shared.Player;
@@ -20,7 +21,7 @@ namespace Content.Server.StationEvents.Events
public override int? MaxOccurrences => 3;
public override string StartAnnouncement => Loc.GetString("station-event-power-grid-check-start-announcement");
protected override string EndAnnouncement => Loc.GetString("station-event-power-grid-check-end-announcement");
public override string? StartAudio => "/Audio/Announcements/power_off.ogg";
public override SoundSpecifier? StartAudio => new SoundPathSpecifier("/Audio/Announcements/power_off.ogg");
// If you need EndAudio it's down below. Not set here because we can't play it at the normal time without spamming sounds.