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~305 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8545a693defb988b2507a80439d471f49713de99;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 ::stable-branch::merge=0d94889401823e11706331d987826497df4c9845 --- diff --git a/cl_particles.c b/cl_particles.c index c9cbd2bf..1241acab 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