ECSatize CameraRecoilSystem (#5448)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Acruid
2021-12-26 22:50:12 -08:00
committed by GitHub
parent e235002a54
commit b3b171da7f
11 changed files with 176 additions and 192 deletions

View File

@@ -0,0 +1,19 @@
using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
using Robust.Shared.Maths;
namespace Content.Shared.Camera;
[RegisterComponent]
[NetworkedComponent]
[ComponentProtoName("CameraRecoil")]
public class CameraRecoilComponent : Component
{
public Vector2 CurrentKick { get; set; }
public float LastKickTime { get; set; }
/// <summary>
/// Basically I needed a way to chain this effect for the attack lunge animation. Sorry!
/// </summary>
public Vector2 BaseOffset { get; set; }
}