From: cloudwalk Date: Thu, 4 Feb 2021 14:16:52 +0000 (+0000) Subject: cl_particles: Fix rain splash particles falling through map by adding very slight... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9c5bc4c35de0ae4d64f0d710673ad73d221a727;p=xonotic%2Fdarkplaces.git cl_particles: Fix rain splash particles falling through map by adding very slight bounce. A pbounce value of 0 disabled collisions. Minor framerate impact. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13094 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 48381d80..64fe93b8 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -778,7 +778,7 @@ particle_t *CL_NewParticle(const vec3_t sortorigin, unsigned short ptypeindex, i part2->die += part->die - cl.time; for (i = rand() & 7;i < 10;i++) { - part2 = CL_NewParticle(endvec, pt_spark, pcolor1, pcolor2, tex_particle, 0.25f, 0, part->alpha * 2, part->alpha * 4, 1, 0, trace.endpos[0] + trace.plane.normal[0], trace.endpos[1] + trace.plane.normal[1], trace.endpos[2] + trace.plane.normal[2], trace.plane.normal[0] * 16, trace.plane.normal[1] * 16, trace.plane.normal[2] * 16 + cl.movevars_gravity * 0.04, 0, 0, 0, 32, pqualityreduction, 0, 1, PBLEND_ADD, PARTICLE_SPARK, -1, -1, -1, 1, 1, 0, 0, NULL); + part2 = CL_NewParticle(endvec, pt_spark, pcolor1, pcolor2, tex_particle, 0.25f, 0, part->alpha * 2, part->alpha * 4, 1, 0.1, trace.endpos[0] + trace.plane.normal[0], trace.endpos[1] + trace.plane.normal[1], trace.endpos[2] + trace.plane.normal[2], trace.plane.normal[0] * 16, trace.plane.normal[1] * 16, trace.plane.normal[2] * 16 + cl.movevars_gravity * 0.04, 0, 0, 0, 32, pqualityreduction, 0, 1, PBLEND_ADD, PARTICLE_SPARK, -1, -1, -1, 1, 1, 0, 0, NULL); if (part2) { part2->delayedspawn = part->die;