StutteringAccentComponent.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. namespace Content.Server.Speech.Components
  2. {
  3. [RegisterComponent]
  4. public sealed partial class StutteringAccentComponent : Component
  5. {
  6. /// <summary>
  7. /// Percentage chance that a stutter will occur if it matches.
  8. /// </summary>
  9. [DataField("matchRandomProb")]
  10. [ViewVariables(VVAccess.ReadWrite)]
  11. public float MatchRandomProb = 0.8f;
  12. /// <summary>
  13. /// Percentage chance that a stutter occurs f-f-f-f-four times.
  14. /// </summary>
  15. [DataField("fourRandomProb")]
  16. [ViewVariables(VVAccess.ReadWrite)]
  17. public float FourRandomProb = 0.1f;
  18. /// <summary>
  19. /// Percentage chance that a stutter occurs t-t-t-three times.
  20. /// </summary>
  21. [DataField("threeRandomProb")]
  22. [ViewVariables(VVAccess.ReadWrite)]
  23. public float ThreeRandomProb = 0.2f;
  24. /// <summary>
  25. /// Percentage chance that a stutter cut off.
  26. /// </summary>
  27. [DataField("cutRandomProb")]
  28. [ViewVariables(VVAccess.ReadWrite)]
  29. public float CutRandomProb = 0.05f;
  30. }
  31. }