From b3b025b11342cca1a569ae5aecb1082c2d42482b Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 6 Nov 2020 22:45:05 +1000 Subject: [PATCH] Perform a full projectile update when passing through a warpzone, workaround for projectiles frequently getting stuck visually at the warpzone --- qcsrc/server/weapons/csqcprojectile.qc | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2