From: havoc Date: Wed, 28 Jul 2010 20:12:11 +0000 (+0000) Subject: use TE_EXPLOSION in effectinfo.txt when encountering svc_particle with X-Git-Tag: xonotic-v0.1.0preview~230^2~111 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d94889401823e11706331d987826497df4c9845;p=xonotic%2Fdarkplaces.git 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 --- 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