From: Mario Date: Mon, 30 Mar 2020 13:43:59 +0000 (+1000) Subject: Disable client prediction when in follow mode (impossible to predict) X-Git-Tag: xonotic-v0.8.5~1141 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=da20c91cdf9b61e6519db605a14b1676a2448987 Disable client prediction when in follow mode (impossible to predict) --- diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index b9eca8ca8e..cd59c516c9 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -33,7 +33,12 @@ void sys_phys_update(entity this, float dt) if (IS_SVQC) { if (this.move_movetype == MOVETYPE_NONE) { return; } // when we get here, disableclientprediction cannot be 2 - this.disableclientprediction = (this.move_qcphysics) ? -1 : 0; + if(this.move_movetype == MOVETYPE_FOLLOW) // not compatible with prediction + this.disableclientprediction = 1; + else if(this.move_qcphysics) + this.disableclientprediction = -1; + else + this.disableclientprediction = 0; } viewloc_PlayerPhysics(this);