2023-02-01 00:33:00 +03:00
|
|
|
using Content.Shared.Damage;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2023-10-11 10:41:11 +11:00
|
|
|
namespace Content.Shared.Climbing.Components;
|
2023-02-01 00:33:00 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Makes entity do damage and stun entities with ClumsyComponent
|
|
|
|
|
/// upon DragDrop or Climb interactions.
|
|
|
|
|
/// </summary>
|
2024-11-15 15:46:01 -08:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class BonkableComponent : Component
|
2023-02-01 00:33:00 +03:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-11-15 15:46:01 -08:00
|
|
|
/// How long to stun players on bonk, in seconds.
|
2023-02-01 00:33:00 +03:00
|
|
|
/// </summary>
|
2024-11-15 15:46:01 -08:00
|
|
|
[DataField]
|
|
|
|
|
public TimeSpan BonkTime = TimeSpan.FromSeconds(2);
|
2023-02-01 00:33:00 +03:00
|
|
|
|
|
|
|
|
/// <summary>
|
2024-11-15 15:46:01 -08:00
|
|
|
/// How much damage to apply on bonk.
|
2023-02-01 00:33:00 +03:00
|
|
|
/// </summary>
|
2024-11-15 15:46:01 -08:00
|
|
|
[DataField]
|
2023-02-01 00:33:00 +03:00
|
|
|
public DamageSpecifier? BonkDamage;
|
|
|
|
|
}
|