* start work * blindness actually works now * doc * doc you too. * i desire to sneeze my lungs out * no punchie * s Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
29 lines
777 B
C#
29 lines
777 B
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Traits.Assorted;
|
|
|
|
/// <summary>
|
|
/// This is used for the occasional sneeze or cough.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class UncontrollableSnoughComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Message to play when snoughing.
|
|
/// </summary>
|
|
[DataField("snoughMessage")] public string SnoughMessage = "disease-sneeze";
|
|
|
|
/// <summary>
|
|
/// Sound to play when snoughing.
|
|
/// </summary>
|
|
[DataField("snoughSound")] public SoundSpecifier? SnoughSound;
|
|
|
|
/// <summary>
|
|
/// The random time between incidents, (min, max).
|
|
/// </summary>
|
|
[DataField("timeBetweenIncidents", required: true)]
|
|
public Vector2 TimeBetweenIncidents { get; }
|
|
|
|
public float NextIncidentTime;
|
|
}
|