]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix vaporizer missing its muzzle flash if the particle beam mode is enabled
authorMario <mario@smbclan.net>
Wed, 8 Jun 2016 10:11:23 +0000 (20:11 +1000)
committerMario <mario@smbclan.net>
Wed, 8 Jun 2016 10:11:23 +0000 (20:11 +1000)
qcsrc/common/weapons/weapon/vaporizer.qc

index c4672e727c53a05a19c945308291801aecb8518f..3ade59d5fd4db27278ddfe78949ab1ecee2fe468 100644 (file)
@@ -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