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]
|
2023-08-22 18:14:33 -07:00
|
|
|
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;
|
2022-09-07 00:37:32 -04:00
|
|
|
|
|
|
|
|
[DataField("enabled")]
|
|
|
|
|
public bool Enabled = true;
|
2022-07-15 03:54:34 -04:00
|
|
|
}
|
|
|
|
|
}
|