Emergency revert for pulling (#24923)
Revert "Pulling rework (#20906)"
This reverts commit 0d8254b2a2.
This commit is contained in:
23
Content.Shared/Pulling/Components/SharedPullerComponent.cs
Normal file
23
Content.Shared/Pulling/Components/SharedPullerComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user