From 5be93573a7c9b9e29b5f230614f6de51378c502e Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 18 Oct 2020 20:07:50 +1000 Subject: [PATCH] Fix plasma turrets using a server-side particle effect number in InstaGib --- qcsrc/common/turrets/turret/plasma.qc | 2 +- qcsrc/common/turrets/turret/plasma_dual.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2