From f96b41bc2edf975200814db12e5d24e9bab48980 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 11 Oct 2023 00:55:50 -0700 Subject: [PATCH] NSSurfacePropEntity: Ignore view_ofs in GetEyePos() when we're a spectator. --- src/shared/NSSurfacePropEntity.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/NSSurfacePropEntity.qc b/src/shared/NSSurfacePropEntity.qc index de76731f..91f344e8 100644 --- a/src/shared/NSSurfacePropEntity.qc +++ b/src/shared/NSSurfacePropEntity.qc @@ -37,6 +37,9 @@ NSSurfacePropEntity::NSSurfacePropEntity(void) vector NSSurfacePropEntity::GetEyePos(void) { + if (HasFlags(FL_FAKESPEC)) + return origin; + return origin + view_ofs; }