Re-implement recoil (#9406)
* Re-implement recoil Playing around with the values atm * Update constants * final tweaks
This commit is contained in:
14
Content.Server/Camera/CameraRecoilSystem.cs
Normal file
14
Content.Server/Camera/CameraRecoilSystem.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user