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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user