Port honkbots from nyano (#9698)
This commit is contained in:
18
Content.Server/Sound/Components/SpamEmitSoundComponent.cs
Normal file
18
Content.Server/Sound/Components/SpamEmitSoundComponent.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user