Anomaly Vessel visuals + audio (#13927)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Content.Shared.Construction.Prototypes;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Anomaly.Components;
|
||||
@@ -37,4 +39,28 @@ public sealed class AnomalyVesselComponent : Component
|
||||
/// </summary>
|
||||
[DataField("partRatingPointModifier")]
|
||||
public float PartRatingPointModifier = 1.5f;
|
||||
|
||||
/// <summary>
|
||||
/// The maximum time between each beep
|
||||
/// </summary>
|
||||
[DataField("maxBeepInterval")]
|
||||
public TimeSpan MaxBeepInterval = TimeSpan.FromSeconds(2f);
|
||||
|
||||
/// <summary>
|
||||
/// The minimum time between each beep
|
||||
/// </summary>
|
||||
[DataField("minBeepInterval")]
|
||||
public TimeSpan MinBeepInterval = TimeSpan.FromSeconds(0.75f);
|
||||
|
||||
/// <summary>
|
||||
/// When the next beep sound will play
|
||||
/// </summary>
|
||||
[DataField("nextBeep", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan NextBeep = TimeSpan.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// The sound that is played repeatedly when the anomaly is destabilizing/decaying
|
||||
/// </summary>
|
||||
[DataField("beepSound")]
|
||||
public SoundSpecifier BeepSound = new SoundPathSpecifier("/Audio/Machines/vessel_warning.ogg");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user