From 85374d5d4632a9a92fc16fbb2b9f598b50d28b34 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 17 Jun 2016 22:57:35 +1000 Subject: [PATCH] Don't use client TICRATE for noclip prediction (fixes choppy prediction) --- qcsrc/common/physics/movetypes/movetypes.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index eee217200..a68e3e3a0 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -620,8 +620,8 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt) break; case MOVETYPE_NOCLIP: _Movetype_CheckWater(this); - this.move_origin = this.move_origin + TICRATE * this.move_velocity; - this.move_angles = this.move_angles + TICRATE * this.move_avelocity; + this.move_origin = this.move_origin + movedt * this.move_velocity; + this.move_angles = this.move_angles + movedt * this.move_avelocity; _Movetype_LinkEdict(this, false); break; case MOVETYPE_STEP: -- 2.39.2