2022-12-23 23:55:31 -05:00
|
|
|
using Content.Shared.Interaction;
|
|
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2023-10-11 10:41:11 +11:00
|
|
|
namespace Content.Shared.Climbing.Components
|
2022-12-23 23:55:31 -05:00
|
|
|
{
|
2023-10-11 10:41:11 +11:00
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates this entity can be vaulted on top of.
|
|
|
|
|
/// </summary>
|
2022-12-23 23:55:31 -05:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class ClimbableComponent : Component
|
2022-12-23 23:55:31 -05:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The range from which this entity can be climbed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("range")] public float Range = SharedInteractionSystem.InteractionRange / 1.4f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time it takes to climb onto the entity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("delay")]
|
2023-10-11 10:41:11 +11:00
|
|
|
public float ClimbDelay = 1.5f;
|
2023-08-10 07:16:25 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sound to be played when a climb is started.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("startClimbSound")]
|
|
|
|
|
public SoundSpecifier? StartClimbSound = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sound to be played when a climb finishes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("finishClimbSound")]
|
|
|
|
|
public SoundSpecifier? FinishClimbSound = null;
|
2022-12-23 23:55:31 -05:00
|
|
|
}
|
|
|
|
|
}
|