From 0e5262c2eaebc1e62b9ee9d9670051d761fbcbd1 Mon Sep 17 00:00:00 2001 From: Chris Ison Date: Thu, 15 Nov 2001 20:53:23 +0000 Subject: [PATCH] colored explosion smoke --- libs/video/renderer/gl/gl_dyn_part.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/libs/video/renderer/gl/gl_dyn_part.c b/libs/video/renderer/gl/gl_dyn_part.c index fb87a1cab..8ec1b0adc 100644 --- a/libs/video/renderer/gl/gl_dyn_part.c +++ b/libs/video/renderer/gl/gl_dyn_part.c @@ -169,11 +169,19 @@ R_ParticleExplosion (vec3_t org) /* R_NewExplosion (org); */ - particle_new_random (pt_smokecloud, part_tex_smoke, org, 4, - 30, 8, r_realtime + 5, (rand () & 7) + 8, - 128 + (rand () & 63)); + if (cl_surprise->int_val) + { + particle_new_random (pt_smokecloud, part_tex_smoke, org, 4, + 30, 8, r_realtime + 5, + (rand () & 255), + 128 + (rand () & 63)); + } else { + particle_new_random (pt_smokecloud, part_tex_smoke, org, 4, + 30, 8, r_realtime + 5, + (rand () & 7) + 8, + 128 + (rand () & 63)); + } } - void R_ParticleExplosion2 (vec3_t org, int colorStart, int colorLength) { @@ -187,8 +195,9 @@ R_ParticleExplosion2 (vec3_t org, int colorStart, int colorLength) for (i = 0; i < j; i++) { particle_new_random (pt_blob, part_tex_dot, org, 16, 2, 256, - (r_realtime + 0.3), - (colorStart + (colorMod % colorLength)), 255); + (r_realtime + 0.3), + (colorStart + (colorMod % colorLength)), + 255); colorMod++; } }