Files
tbd-station-14/Content.Server/Traits/Assorted/UncontrollableSnoughComponent.cs
Moony 0c46f99004 Blindness, Narcolepsy, Pacifism, and uncontrollable sneezing (#11489)
* 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>
2022-09-29 18:23:12 -05:00

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;
}