AME and PA make a warning sound to admins when overloaded along with the warning text (#21267)

* WOOP WOOP

* i forgor to add this

* I totally did not steal code

* OH FUCK

* Ok i'm done using webedit.

* Reviews and AME anti spam

* make sound shorter
This commit is contained in:
Vasilis
2023-11-18 04:18:37 +01:00
committed by GitHub
parent b690f10cdd
commit f7f80b6c28
6 changed files with 60 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ using Content.Server.Ame.EntitySystems;
using Content.Shared.Ame;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.Ame.Components;
@@ -89,4 +90,16 @@ public sealed partial class AmeControllerComponent : SharedAmeControllerComponen
/// </summary>
[ViewVariables]
public TimeSpan UpdateUIPeriod = TimeSpan.FromSeconds(3.0);
/// <summary>
/// Time at which the admin alarm sound effect can next be played.
/// </summary>
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan EffectCooldown;
/// <summary>
/// Time between admin alarm sound effects. Prevents spam
/// </summary>
[DataField]
public TimeSpan CooldownDuration = TimeSpan.FromSeconds(10f);
}