mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
16 lines
463 B
C#
16 lines
463 B
C#
using System.Numerics;
|
|
using Content.Shared.Camera;
|
|
using Robust.Shared.Player;
|
|
|
|
namespace Content.Server.Camera;
|
|
|
|
public sealed class CameraRecoilSystem : SharedCameraRecoilSystem
|
|
{
|
|
public override void KickCamera(EntityUid euid, Vector2 kickback, CameraRecoilComponent? component = null)
|
|
{
|
|
if (!Resolve(euid, ref component, false))
|
|
return;
|
|
|
|
RaiseNetworkEvent(new CameraKickEvent(GetNetEntity(euid), kickback), euid);
|
|
}
|
|
}
|