Makes mobs visually float when weightless (#13391)

This commit is contained in:
AJCM-git
2023-01-17 18:01:53 -04:00
committed by GitHub
parent 21db0ab35b
commit 67ed59a50d
8 changed files with 217 additions and 46 deletions

View File

@@ -1,7 +1,22 @@
using Content.Shared.Pointing.Components;
namespace Content.Client.Pointing.Components
namespace Content.Client.Pointing.Components;
[RegisterComponent]
public sealed class PointingArrowComponent : SharedPointingArrowComponent
{
[RegisterComponent]
public sealed class PointingArrowComponent : SharedPointingArrowComponent {}
/// <summary>
/// How long it takes to go from the bottom of the animation to the top.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("animationTime")]
public readonly float AnimationTime = 0.5f;
/// <summary>
/// How far it goes in any direction.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("offset")]
public readonly Vector2 Offset = (0, 0.25f);
public readonly string AnimationKey = "pointingarrow";
}