Files
tbd-station-14/Content.Server/Sound/Components/SpamEmitSoundComponent.cs
2022-07-15 00:54:34 -07:00

19 lines
466 B
C#

namespace Content.Server.Sound.Components
{
/// <summary>
/// Rolls to play a sound every few seconds.
/// </summary>
[RegisterComponent]
public sealed class SpamEmitSoundComponent : BaseEmitSoundComponent
{
[DataField("accumulator")]
public float Accumulator = 0f;
[DataField("rollInterval")]
public float RollInterval = 2f;
[DataField("playChance")]
public float PlayChance = 0.5f;
}
}