From e2582810b7cf4154504d97ad4771f7f038d69492 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 8 Jun 2016 20:11:23 +1000 Subject: [PATCH] Fix vaporizer missing its muzzle flash if the particle beam mode is enabled --- qcsrc/common/weapons/weapon/vaporizer.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/vaporizer.qc b/qcsrc/common/weapons/weapon/vaporizer.qc index c4672e727..3ade59d5f 100644 --- a/qcsrc/common/weapons/weapon/vaporizer.qc +++ b/qcsrc/common/weapons/weapon/vaporizer.qc @@ -150,6 +150,8 @@ NET_HANDLE(TE_CSQC_VAPORBEAMPARTICLE, bool isNew) this.sv_entnum = myowner; this.team = ReadByte() - 1; + pointparticles(EFFECT_VORTEX_MUZZLEFLASH, this.vorg1, normalize(this.vorg2 - this.vorg1) * 1000, 1); + if(autocvar_cl_vaporizerbeam_particle) { WarpZone_TrailParticles(world, particleeffectnum(((this.cnt) ? EFFECT_VAPORIZER_HIT(this.team) : EFFECT_VAPORIZER(this.team))), this.vorg1, this.vorg2); @@ -158,7 +160,6 @@ NET_HANDLE(TE_CSQC_VAPORBEAMPARTICLE, bool isNew) remove(this); } - pointparticles(EFFECT_VORTEX_MUZZLEFLASH, this.vorg1, normalize(this.vorg2 - this.vorg1) * 1000, 1); return true; } #endif -- 2.39.2