From: Mario Date: Sun, 18 Oct 2020 10:07:50 +0000 (+1000) Subject: Fix plasma turrets using a server-side particle effect number in InstaGib X-Git-Tag: xonotic-v0.8.5~726 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5be93573a7c9b9e29b5f230614f6de51378c502e;p=xonotic%2Fxonotic-data.pk3dir.git Fix plasma turrets using a server-side particle effect number in InstaGib --- diff --git a/qcsrc/common/turrets/turret/plasma.qc b/qcsrc/common/turrets/turret/plasma.qc index 98426c9c3..66000939e 100644 --- a/qcsrc/common/turrets/turret/plasma.qc +++ b/qcsrc/common/turrets/turret/plasma.qc @@ -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 { diff --git a/qcsrc/common/turrets/turret/plasma_dual.qc b/qcsrc/common/turrets/turret/plasma_dual.qc index 1aee6f5c4..920f88ad2 100644 --- a/qcsrc/common/turrets/turret/plasma_dual.qc +++ b/qcsrc/common/turrets/turret/plasma_dual.qc @@ -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); }