From: Mario Date: Fri, 6 Nov 2020 12:45:05 +0000 (+1000) Subject: Perform a full projectile update when passing through a warpzone, workaround for... X-Git-Tag: xonotic-v0.8.5~690 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b3b025b11342cca1a569ae5aecb1082c2d42482b;p=xonotic%2Fxonotic-data.pk3dir.git Perform a full projectile update when passing through a warpzone, workaround for projectiles frequently getting stuck visually at the warpzone --- diff --git a/qcsrc/server/weapons/csqcprojectile.qc b/qcsrc/server/weapons/csqcprojectile.qc index 2cd09d7fe..07f6f5c66 100644 --- a/qcsrc/server/weapons/csqcprojectile.qc +++ b/qcsrc/server/weapons/csqcprojectile.qc @@ -117,6 +117,10 @@ void UpdateCSQCProjectileAfterTeleport(entity e) { // send new origin data e.SendFlags |= 0x01; + // send full data as the projectile may need resetting + // this is a workaround for client-side projectiles erroneously calling their SUB_Stop touch function occasionally + // when passing through a warpzone + e.SendFlags |= 2; // mark as teleported e.SendFlags |= 0x08; }