* 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
17 lines
495 B
C#
17 lines
495 B
C#
using Content.Shared.Pointing.Components;
|
|
using System.Numerics;
|
|
|
|
namespace Content.Client.Pointing.Components;
|
|
[RegisterComponent]
|
|
public sealed partial class PointingArrowComponent : SharedPointingArrowComponent
|
|
{
|
|
/// <summary>
|
|
/// How far the arrow moves up and down during the floating phase.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("offset")]
|
|
public Vector2 Offset = new(0, 0.25f);
|
|
|
|
public readonly string AnimationKey = "pointingarrow";
|
|
}
|