mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-19 07:01:09 +03:00
* move-accents-to-shared * Update AccentSystem.cs * Update ListeningSystem.cs * aaaaaa * Update AccentSystem.cs * oh god * aaooao * // * review * fix * Update VocalSystem.cs
36 lines
956 B
C#
36 lines
956 B
C#
using Content.Shared.Speech.EntitySystems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Speech.Components;
|
|
|
|
/// <summary>
|
|
/// S-s-s-stuttering!
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[Access(typeof(StutteringSystem))]
|
|
public sealed partial class StutteringAccentComponent : BaseAccentComponent
|
|
{
|
|
/// <summary>
|
|
/// Percentage chance that a stutter will occur if it matches.
|
|
/// </summary>
|
|
[DataField]
|
|
public float MatchRandomProb = 0.8f;
|
|
|
|
/// <summary>
|
|
/// Percentage chance that a stutter occurs f-f-f-f-four times.
|
|
/// </summary>
|
|
[DataField]
|
|
public float FourRandomProb = 0.1f;
|
|
|
|
/// <summary>
|
|
/// Percentage chance that a stutter occurs t-t-t-three times.
|
|
/// </summary>
|
|
[DataField]
|
|
public float ThreeRandomProb = 0.2f;
|
|
|
|
/// <summary>
|
|
/// Percentage chance that a stutter cut off.
|
|
/// </summary>
|
|
[DataField]
|
|
public float CutRandomProb = 0.05f;
|
|
}
|