Files
tbd-station-14/Content.Server/Camera/CameraRecoilSystem.cs
metalgearsloth 38fc066fb9 Re-implement recoil (#9406)
* Re-implement recoil

Playing around with the values atm

* Update constants

* final tweaks
2022-07-14 22:01:25 +10:00

15 lines
431 B
C#

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(euid, kickback), Filter.Entities(euid));
}
}