Files
crystall-punk-14/Content.Server/Sound/Components/SpamEmitSoundComponent.cs

28 lines
665 B
C#
Raw Normal View History

2023-01-04 12:56:35 -06:00
using Content.Shared.Sound.Components;
2022-07-15 03:54:34 -04:00
namespace Content.Server.Sound.Components
{
/// <summary>
/// Rolls to play a sound every few seconds.
/// </summary>
[RegisterComponent]
public sealed partial class SpamEmitSoundComponent : BaseEmitSoundComponent
2022-07-15 03:54:34 -04:00
{
[DataField("accumulator")]
public float Accumulator = 0f;
[DataField("rollInterval")]
public float RollInterval = 2f;
[DataField("playChance")]
public float PlayChance = 0.5f;
2022-07-27 00:46:24 -04:00
// Always Pvs.
[DataField("popUp")]
public string? PopUp;
[DataField("enabled")]
public bool Enabled = true;
2022-07-15 03:54:34 -04:00
}
}