From 0d94889401823e11706331d987826497df4c9845 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 28 Jul 2010 20:12:11 +0000 Subject: [PATCH] use TE_EXPLOSION in effectinfo.txt when encountering svc_particle with count 1024 (exploboxes) rather than calling the internal CL_ParticleExplosion directly, this allows people to override the effect git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10367 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_particles.c b/cl_particles.c index cd169ebb..57ab18ac 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -842,7 +842,7 @@ void CL_ParticleEffect_Fallback(int effectnameindex, float count, const vec3_t o { // bloodhack checks if this effect's color matches regular or lightning blood and if so spawns a blood effect instead if (count == 1024) - CL_ParticleExplosion(center); + CL_ParticleEffect(EFFECT_TE_EXPLOSION, 1, originmins, originmaxs, velocitymins, velocitymaxs, NULL, 0); else if (cl_particles_blood_bloodhack.integer && !cl_particles_quake.integer && (palettecolor == 73 || palettecolor == 225)) CL_ParticleEffect(EFFECT_TE_BLOOD, count / 2.0f, originmins, originmaxs, velocitymins, velocitymaxs, NULL, 0); else -- 2.39.2