From 43a446f39b0c080cd217338c8e4e60622c386df3 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 6 May 2022 14:07:07 +1000 Subject: [PATCH] Make kicks only go to the attached player (#7951) --- Content.Shared/Camera/CameraRecoilSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Shared/Camera/CameraRecoilSystem.cs b/Content.Shared/Camera/CameraRecoilSystem.cs index d3984274fb..2fdbd4f2c6 100644 --- a/Content.Shared/Camera/CameraRecoilSystem.cs +++ b/Content.Shared/Camera/CameraRecoilSystem.cs @@ -55,8 +55,7 @@ public sealed class CameraRecoilSystem : EntitySystem if (!EntityManager.HasComponent(euid)) return; - //TODO: This should only be sent to clients registered as viewers to the entity. - RaiseNetworkEvent(new CameraKickEvent(euid, kickback), Filter.Broadcast()); + RaiseNetworkEvent(new CameraKickEvent(euid, kickback), Filter.Entities(euid)); } public override void FrameUpdate(float frameTime)