19 lines
466 B
C#
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;
|
|
}
|
|
}
|