CatStation/Content.Shared/Speech/Components/StutteringAccentComponent.cs
Pok 7a8fab78e3
Move Accents to Shared v2 (#44772)
* move-accents-to-shared

* Update AccentSystem.cs

* Update ListeningSystem.cs

* aaaaaa

* Update AccentSystem.cs

* oh god

* aaooao

* //

* review

* fix

* Update VocalSystem.cs
2026-07-25 22:29:39 +00:00

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