Allow zoom command to modify an eye's PVS range (#29245)
Allow zoom command to modify an eye's PVS range Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -52,9 +52,9 @@ public abstract class SharedCameraRecoilSystem : EntitySystem
|
||||
|
||||
private void UpdateEyes(float frameTime)
|
||||
{
|
||||
var query = AllEntityQuery<EyeComponent, CameraRecoilComponent>();
|
||||
var query = AllEntityQuery<CameraRecoilComponent, EyeComponent>();
|
||||
|
||||
while (query.MoveNext(out var uid, out var eye, out var recoil))
|
||||
while (query.MoveNext(out var uid, out var recoil, out var eye))
|
||||
{
|
||||
var magnitude = recoil.CurrentKick.Length();
|
||||
if (magnitude <= 0.005f)
|
||||
|
||||
Reference in New Issue
Block a user