]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix plasma turrets using a server-side particle effect number in InstaGib
authorMario <mario.mario@y7mail.com>
Sun, 18 Oct 2020 10:07:50 +0000 (20:07 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 18 Oct 2020 10:07:50 +0000 (20:07 +1000)
qcsrc/common/turrets/turret/plasma.qc
qcsrc/common/turrets/turret/plasma_dual.qc

index 98426c9c33ef7b3bf43850099bc29a98101513dd..66000939e09cfc5a8de0a3b6876fb7b426d359b5 100644 (file)
@@ -16,7 +16,7 @@ METHOD(PlasmaTurret, tr_attack, void(PlasmaTurret this, entity it))
 
         // teamcolor / hit beam effect
         vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
-        WarpZone_TrailParticles(NULL, particleeffectnum(EFFECT_VAPORIZER(it.team)), it.tur_shotorg, v);
+        Send_Effect(EFFECT_VAPORIZER(it.team), it.tur_shotorg, v, 1);
     }
     else
     {
index 1aee6f5c4a501e53cdc9eebf331678568a9a3a37..920f88ad2938f4a50d0ab03fbc7d726d5ce28dd0 100644 (file)
@@ -16,7 +16,7 @@ METHOD(DualPlasmaTurret, tr_attack, void(DualPlasmaTurret thistur, entity it))
 
         // teamcolor / hit beam effect
         vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
-        WarpZone_TrailParticles(NULL, particleeffectnum(EFFECT_VAPORIZER(it.team)), it.tur_shotorg, v);
+        Send_Effect(EFFECT_VAPORIZER(it.team), it.tur_shotorg, v, 1);
     } else {
         SUPER(PlasmaTurret).tr_attack(thistur, it);
     }