Travelling pointing arrows, brains can no longer point (#24864)

* Decoupled from gravity, constant animation time, manual networking, cubic interpolation

* Reduced overshoot

* Implemented PointAttemptEvent, reacts with mobstate & sleeping

* Brains can no longer point, PBs must be inside a chassis

* Removed chassis check, made callback more obvious
This commit is contained in:
Krunklehorn
2024-02-03 03:09:20 -05:00
committed by GitHub
parent 240ebfa3a6
commit d01d75073c
10 changed files with 172 additions and 64 deletions

View File

@@ -1,13 +1,22 @@
using Robust.Shared.GameStates;
using System.Numerics;
namespace Content.Shared.Pointing.Components;
[NetworkedComponent]
public abstract partial class SharedPointingArrowComponent : Component
{
/// <summary>
/// The position of the sender when the point began.
/// </summary>
[DataField]
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 StartPosition;
/// <summary>
/// When the pointing arrow ends
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("endTime")]
[DataField]
[ViewVariables(VVAccess.ReadWrite)]
public TimeSpan EndTime;
}