Files
wwdpublic/Content.Shared/Camera/CameraRecoilComponent.cs
Leon Friedrich 06c2a16480 Allow zoom command to modify an eye's PVS range (#29245)
Allow zoom command to modify an eye's PVS range

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

(cherry picked from commit 1faa1b5df6e74b9cb1309d0400b12ee0b96039e4)
2025-09-20 12:54:38 +03:00

26 lines
681 B
C#

using System.Numerics;
using Robust.Shared.GameStates;
namespace Content.Shared.Camera;
[RegisterComponent]
[NetworkedComponent]
public sealed partial class CameraRecoilComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 CurrentKick { get; set; }
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 LastKick { get; set; }
[ViewVariables(VVAccess.ReadWrite)]
public float LastKickTime { get; set; }
/// <summary>
/// Basically I needed a way to chain this effect for the attack lunge animation. Sorry!
/// </summary>
///
[ViewVariables(VVAccess.ReadWrite)]
public Vector2 BaseOffset { get; set; }
}