]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Slightly tweaked CL_ParticleExplosion2 by VorteX.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 25 Aug 2004 06:48:04 +0000 (06:48 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 25 Aug 2004 06:48:04 +0000 (06:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4374 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c

index 081d3ae531801f89dad6fde7187d2867c3dffa17..0fb500f632e0c081db8582392a9c7aec89a4737f 100644 (file)
@@ -722,6 +722,7 @@ void CL_ParticleExplosion2 (vec3_t org, int colorStart, int colorLength)
        vec3_t vel;
        vec3_t offset;
        int i, k;
+       float pscale;
        if (!cl_particles.integer) return;
 
        for (i = 0;i < 512 * cl_particles_quality.value;i++)
@@ -730,7 +731,8 @@ void CL_ParticleExplosion2 (vec3_t org, int colorStart, int colorLength)
                VectorScale (offset, 192, vel);
                VectorScale (offset, 8, offset);
                k = particlepalette[colorStart + (i % colorLength)];
-               particle(pt_static, PARTICLE_BILLBOARD, k, k, tex_particle, false, PBLEND_ALPHA, 1.5, 1.5, (1.0f / cl_particles_quality.value) * 255, (1.0f / cl_particles_quality.value) * 384, 0.3, 0, 0, org[0] + offset[0], org[1] + offset[1], org[2] + offset[2], vel[0], vel[1], vel[2], 0, 0, 0, 0, 1, 0);
+               pscale = lhrandom(0.5, 1.5);
+               particle(pt_static, PARTICLE_BILLBOARD, k, k, tex_particle, false, PBLEND_ADD, pscale, pscale, (1.0f / cl_particles_quality.value) * 255, (1.0f/cl_particles_quality.value)*512, 9999, 0, 0, org[0] + offset[0], org[1] + offset[1], org[2] + offset[2], vel[0], vel[1], vel[2], 0, 0, 0, 0, lhrandom(1.5, 3), 0);
        }
 }