Make kicks only go to the attached player (#7951)
This commit is contained in:
@@ -55,8 +55,7 @@ public sealed class CameraRecoilSystem : EntitySystem
|
|||||||
if (!EntityManager.HasComponent<CameraRecoilComponent>(euid))
|
if (!EntityManager.HasComponent<CameraRecoilComponent>(euid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//TODO: This should only be sent to clients registered as viewers to the entity.
|
RaiseNetworkEvent(new CameraKickEvent(euid, kickback), Filter.Entities(euid));
|
||||||
RaiseNetworkEvent(new CameraKickEvent(euid, kickback), Filter.Broadcast());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void FrameUpdate(float frameTime)
|
public override void FrameUpdate(float frameTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user