Make kicks only go to the attached player (#7951)

This commit is contained in:
metalgearsloth
2022-05-06 14:07:07 +10:00
committed by GitHub
parent ff10767fd2
commit 43a446f39b

View File

@@ -55,8 +55,7 @@ public sealed class CameraRecoilSystem : EntitySystem
if (!EntityManager.HasComponent<CameraRecoilComponent>(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)