1
0

SkatesComponent.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using Robust.Shared.GameStates;
  2. using Content.Shared.Clothing.EntitySystems;
  3. namespace Content.Shared.Clothing;
  4. [RegisterComponent]
  5. [NetworkedComponent]
  6. [Access(typeof(SkatesSystem))]
  7. public sealed partial class SkatesComponent : Component
  8. {
  9. /// <summary>
  10. /// the levels of friction the wearer is subected to, higher the number the more friction.
  11. /// </summary>
  12. [DataField, ViewVariables(VVAccess.ReadWrite)]
  13. public float Friction = 2.5f;
  14. /// <summary>
  15. /// Determines the turning ability of the wearer, Higher the number the less control of their turning ability.
  16. /// </summary>
  17. [DataField, ViewVariables(VVAccess.ReadWrite)]
  18. public float? FrictionNoInput = 2.5f;
  19. /// <summary>
  20. /// Sets the speed in which the wearer accelerates to full speed, higher the number the quicker the acceleration.
  21. /// </summary>
  22. [DataField, ViewVariables(VVAccess.ReadWrite)]
  23. public float Acceleration = 5f;
  24. /// <summary>
  25. /// The minimum speed the wearer needs to be traveling to take damage from collision.
  26. /// </summary>
  27. [DataField, ViewVariables(VVAccess.ReadWrite)]
  28. public float MinimumSpeed = 3f;
  29. /// <summary>
  30. /// The length of time the wearer is stunned for on collision.
  31. /// </summary>
  32. [DataField, ViewVariables(VVAccess.ReadWrite)]
  33. public float StunSeconds = 3f;
  34. /// <summary>
  35. /// The time duration before another collision can take place.
  36. /// </summary>
  37. [DataField, ViewVariables(VVAccess.ReadWrite)]
  38. public float DamageCooldown = 2f;
  39. /// <summary>
  40. /// The damage per increment of speed on collision.
  41. /// </summary>
  42. [DataField, ViewVariables(VVAccess.ReadWrite)]
  43. public float SpeedDamage = 1f;
  44. /// <summary>
  45. /// Defaults for MinimumSpeed, StunSeconds, DamageCooldown and SpeedDamage.
  46. /// </summary>
  47. [ViewVariables]
  48. public float DefaultMinimumSpeed = 20f;
  49. [ViewVariables]
  50. public float DefaultStunSeconds = 1f;
  51. [ViewVariables]
  52. public float DefaultDamageCooldown = 2f;
  53. [ViewVariables]
  54. public float DefaultSpeedDamage = 0.5f;
  55. }