Fix pulling mispredicts (#22941)

* Fix pulling mispredicts

* Make behaviour consistent

* Good ol terminating entities
This commit is contained in:
Leon Friedrich
2023-12-25 02:33:32 -05:00
committed by GitHub
parent 9eaa4c3a5d
commit 721a445bbd
8 changed files with 42 additions and 77 deletions

View File

@@ -1,6 +1,8 @@
namespace Content.Shared.Pulling.Components
using Robust.Shared.GameStates;
namespace Content.Shared.Pulling.Components
{
[RegisterComponent]
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedPullingStateManagementSystem))]
public sealed partial class SharedPullerComponent : Component
{
@@ -9,7 +11,7 @@
public float SprintSpeedModifier => Pulling == default ? 1.0f : 0.95f;
[ViewVariables]
[DataField, AutoNetworkedField]
public EntityUid? Pulling { get; set; }
/// <summary>