From: Mario Date: Fri, 23 Aug 2019 09:11:36 +0000 (+1000) Subject: Disable client prediction when spectating, fixes some issues with QC physics X-Git-Tag: xonotic-v0.8.5~1376 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=4762eecb5c266737122dc29bcb060896c2b0cf76 Disable client prediction when spectating, fixes some issues with QC physics --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 5029da7df9..0034c2dd9e 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1683,6 +1683,7 @@ void SpectateCopy(entity this, entity spectatee) this.effects = spectatee.effects & EFMASK_CHEAP; // eat performance SetResourceExplicit(this, RES_HEALTH, GetResource(spectatee, RES_HEALTH)); CS(this).impulse = 0; + this.disableclientprediction = 1; // no need to run prediction on a spectator this.items = spectatee.items; STAT(LAST_PICKUP, this) = STAT(LAST_PICKUP, spectatee); STAT(HIT_TIME, this) = STAT(HIT_TIME, spectatee);