]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Perform a full projectile update when passing through a warpzone, workaround for...
authorMario <mario.mario@y7mail.com>
Fri, 6 Nov 2020 12:45:05 +0000 (22:45 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 6 Nov 2020 12:45:05 +0000 (22:45 +1000)
qcsrc/server/weapons/csqcprojectile.qc

index 2cd09d7fea905f65a65e60a228fed427cf20f9ee..07f6f5c6651bd1615b35761921119294ee0d8bcd 100644 (file)
@@ -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;
        }