From: Mario Date: Wed, 8 Jun 2016 10:11:23 +0000 (+1000) Subject: Fix vaporizer missing its muzzle flash if the particle beam mode is enabled X-Git-Tag: xonotic-v0.8.2~881 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e2582810b7cf4154504d97ad4771f7f038d69492;p=xonotic%2Fxonotic-data.pk3dir.git Fix vaporizer missing its muzzle flash if the particle beam mode is enabled --- 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