Files
tbd-station-14/Content.Shared/Pulling/Components/SharedPullerComponent.cs
Jezithyr c15b0691ec Emergency revert for pulling (#24923)
Revert "Pulling rework (#20906)"

This reverts commit 0d8254b2a2.
2024-02-03 10:32:30 -08:00

24 lines
829 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Pulling.Components
{
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedPullingStateManagementSystem))]
public sealed partial class SharedPullerComponent : Component
{
// Before changing how this is updated, please see SharedPullerSystem.RefreshMovementSpeed
public float WalkSpeedModifier => Pulling == default ? 1.0f : 0.95f;
public float SprintSpeedModifier => Pulling == default ? 1.0f : 0.95f;
[DataField, AutoNetworkedField]
public EntityUid? Pulling { get; set; }
/// <summary>
/// Does this entity need hands to be able to pull something?
/// </summary>
[DataField("needsHands")]
public bool NeedsHands = true;
}
}