Skip to content

Commit 6f89af5

Browse files
committed
Workaround for the broken xray origin lerp.
1 parent 7b91ff4 commit 6f89af5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main.qc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1515
*/
1616

17-
#define RSES_NOLERP 1
17+
#define RSES_NOLERP 1
1818
#define RSES_NOROTATE 2
1919
#define RSES_NOTRAILS 4
2020
#define RSES_NOLIGHTS 8
@@ -267,6 +267,10 @@ float(float isnew) PipNewPlayer =
267267
self.alpha = autocvar_pip_xray_alpha * distanceFactor;
268268
self.fatness = 2;
269269

270+
// Workaround for self.origin not being lerped, bug in FTE, remove once fixed.
271+
vector origin = getentity(self.entnum, GE_ORIGIN);
272+
setorigin(self, origin);
273+
270274
string pov_team = getplayerkeyvalue(player_localentnum-1, "team");
271275
string ent_team = getplayerkeyvalue(pnum, "team");
272276

@@ -298,7 +302,7 @@ void() CSQC_WorldLoaded =
298302
}
299303
})", autocvar_pip_xray_color_enemy);
300304
301-
deltalisten("progs/player.mdl", PipNewPlayer, RSES_NOLERP | RSES_NOROTATE);
305+
deltalisten("progs/player.mdl", PipNewPlayer, 0);
302306
}
303307
304308
if (PipLoadItems()) {

0 commit comments

Comments
 (0)