GlassTableComponent.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using Content.Shared.Damage;
  2. namespace Content.Shared.Climbing.Components;
  3. /// <summary>
  4. /// Glass tables shatter and stun you when climbed on.
  5. /// This is a really entity-specific behavior, so opted to make it
  6. /// not very generalized with regards to naming.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(Systems.ClimbSystem))]
  9. public sealed partial class GlassTableComponent : Component
  10. {
  11. /// <summary>
  12. /// How much damage should be given to the climber?
  13. /// </summary>
  14. [DataField("climberDamage")]
  15. public DamageSpecifier ClimberDamage = default!;
  16. /// <summary>
  17. /// How much damage should be given to the table when climbed on?
  18. /// </summary>
  19. [DataField("tableDamage")]
  20. public DamageSpecifier TableDamage = default!;
  21. /// <summary>
  22. /// How much mass should be needed to break the table?
  23. /// </summary>
  24. [DataField("tableMassLimit")]
  25. public float MassLimit;
  26. /// <summary>
  27. /// How long should someone who climbs on this table be stunned for?
  28. /// </summary>
  29. public float StunTime = 2.0f;
  30. }