2022-02-08 00:42:49 -08:00
|
|
|
using Content.Shared.Damage;
|
2022-01-22 05:52:35 -07:00
|
|
|
|
2023-10-11 10:41:11 +11:00
|
|
|
namespace Content.Shared.Climbing.Components;
|
2022-01-22 05:52:35 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Glass tables shatter and stun you when climbed on.
|
|
|
|
|
/// This is a really entity-specific behavior, so opted to make it
|
|
|
|
|
/// not very generalized with regards to naming.
|
|
|
|
|
/// </summary>
|
2023-10-11 10:41:11 +11:00
|
|
|
[RegisterComponent, Access(typeof(Systems.ClimbSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GlassTableComponent : Component
|
2022-01-22 05:52:35 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How much damage should be given to the climber?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("climberDamage")]
|
|
|
|
|
public DamageSpecifier ClimberDamage = default!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How much damage should be given to the table when climbed on?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("tableDamage")]
|
|
|
|
|
public DamageSpecifier TableDamage = default!;
|
|
|
|
|
|
2022-03-02 06:07:48 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// How much mass should be needed to break the table?
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("tableMassLimit")]
|
|
|
|
|
public float MassLimit;
|
|
|
|
|
|
2022-01-22 05:52:35 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// How long should someone who climbs on this table be stunned for?
|
|
|
|
|
/// </summary>
|
2022-05-06 00:36:03 -04:00
|
|
|
public float StunTime = 2.0f;
|
2022-01-22 05:52:35 -07:00
|
|
|
}
|