Make kicks only go to the attached player (#7951)
This commit is contained in:
parent
ff10767fd2
commit
43a446f39b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue