From: havoc Date: Mon, 22 Jan 2007 13:37:39 +0000 (+0000) Subject: tweaked default TE_TELEPORT effect, it now spawns one large very bright particle... X-Git-Tag: xonotic-v0.1.0preview~3684 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8ca9200a802f23d4775ea3d0f280f1f5b5d55366;p=xonotic%2Fdarkplaces.git tweaked default TE_TELEPORT effect, it now spawns one large very bright particle in the middle and 1/8th as many small particles, this should improve multiplayer performance on slow graphics cards, also doubled the brightness of the dlight created, and made it last a bit longer git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6722 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 4da00b2f..60facd4d 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -748,7 +748,7 @@ void CL_ParticleEffect_Fallback(int effectnameindex, float count, const vec3_t o float i, j, k, inc, vel; vec3_t dir; - inc = 4 / cl_particles_quality.value; + inc = 8 / cl_particles_quality.value; for (i = -16;i < 16;i += inc) { for (j = -16;j < 16;j += inc) @@ -762,7 +762,8 @@ void CL_ParticleEffect_Fallback(int effectnameindex, float count, const vec3_t o } } } - CL_AllocDlight(NULL, &tempmatrix, 200, 1.0f, 1.0f, 1.0f, 600, 99.0f, 0, -1, true, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE); + particle(particletype + pt_static, particlepalette[14], particlepalette[14], tex_particle, 30, 0, 256, 512, 0, 0, center[0], center[1], center[2], 0, 0, 0, 0, 0, 0, 0); + CL_AllocDlight(NULL, &tempmatrix, 200, 2.0f, 2.0f, 2.0f, 400, 99.0f, 0, -1, true, 1, 0.25, 1, 0, 0, LIGHTFLAG_NORMALMODE | LIGHTFLAG_REALTIMEMODE); } else if (effectnameindex == EFFECT_TE_TEI_G3) particle(particletype + pt_beam, 0xFFFFFF, 0xFFFFFF, tex_beam, 8, 0, 256, 256, 0, 0, originmins[0], originmins[1], originmins[2], originmaxs[0], originmaxs[1], originmaxs[2], 0, 0, 0, 0);