Social a-anxiety/st-st-stuttering t-trait. (#20500)

* This was supposed to be a challenge

* Component magik

* Add documentation
This commit is contained in:
Vasilis
2023-10-21 22:09:54 +02:00
committed by GitHub
parent 93c345a1b9
commit 9ea8e03c23
4 changed files with 47 additions and 6 deletions

View File

@@ -3,5 +3,32 @@ namespace Content.Server.Speech.Components
[RegisterComponent]
public sealed partial class StutteringAccentComponent : Component
{
/// <summary>
/// Percentage chance that a stutter will occur if it matches.
/// </summary>
[DataField("matchRandomProb")]
[ViewVariables(VVAccess.ReadWrite)]
public float MatchRandomProb = 0.8f;
/// <summary>
/// Percentage chance that a stutter occurs f-f-f-f-four times.
/// </summary>
[DataField("fourRandomProb")]
[ViewVariables(VVAccess.ReadWrite)]
public float FourRandomProb = 0.1f;
/// <summary>
/// Percentage chance that a stutter occurs t-t-t-three times.
/// </summary>
[DataField("threeRandomProb")]
[ViewVariables(VVAccess.ReadWrite)]
public float ThreeRandomProb = 0.2f;
/// <summary>
/// Percentage chance that a stutter cut off.
/// </summary>
[DataField("cutRandomProb")]
[ViewVariables(VVAccess.ReadWrite)]
public float CutRandomProb = 0.05f;
}
}