ECSatize CameraRecoilSystem (#5448)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
19
Content.Shared/Camera/CameraRecoilComponent.cs
Normal file
19
Content.Shared/Camera/CameraRecoilComponent.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user