using Content.Shared.Actions; using Content.Shared.Movement.Systems; using Robust.Shared.Audio; using Robust.Shared.GameStates; namespace Content.Shared.Movement.Components; /// /// A component for configuring the settings for the jump action. /// To give the jump action to an entity use and . /// The basic action prototype is "ActionGravityJump". /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedJumpAbilitySystem))] public sealed partial class JumpAbilityComponent : Component { /// /// How far you will jump (in tiles). /// [DataField, AutoNetworkedField] public float JumpDistance = 5f; /// /// Basic “throwing” speed for TryThrow method. /// [DataField, AutoNetworkedField] public float JumpThrowSpeed = 10f; /// /// This gets played whenever the jump action is used. /// [DataField, AutoNetworkedField] public SoundSpecifier? JumpSound; } public sealed partial class GravityJumpEvent : InstantActionEvent;