Port honkbots from nyano (#9698)

This commit is contained in:
Rane
2022-07-15 03:54:34 -04:00
committed by GitHub
parent 5c7eea3e42
commit abab5bedcd
18 changed files with 337 additions and 12 deletions

View File

@@ -0,0 +1,18 @@
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;
}
}