From da1f3bd0165cd1cbee4415335be7eeaecbf65e99 Mon Sep 17 00:00:00 2001 From: tomaz Date: Tue, 24 Aug 2004 18:17:31 +0000 Subject: [PATCH] Tried to make the vore spike trail to be blue under GAME_PRYDON mode. Failed and somehow made it white instead. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4369 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 18 ++++++++++++++---- cl_particles.c | 2 ++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/cl_main.c b/cl_main.c index 2aedf0b2..b387273f 100644 --- a/cl_main.c +++ b/cl_main.c @@ -786,10 +786,20 @@ void CL_LinkNetworkEntity(entity_t *e) else if (e->render.model->flags & EF_TRACER3) { trailtype = 6; - dlightradius = max(dlightradius, 200); - dlightcolor[0] += 1.20f; - dlightcolor[1] += 0.50f; - dlightcolor[2] += 1.00f; + if (gamemode == GAME_PRYDON) + { + dlightradius = max(dlightradius, 100); + dlightcolor[0] += 0.50f; + dlightcolor[1] += 0.50f; + dlightcolor[2] += 1.20f; + } + else + { + dlightradius = max(dlightradius, 200); + dlightcolor[0] += 1.20f; + dlightcolor[1] += 0.50f; + dlightcolor[2] += 1.00f; + } } } // LordHavoc: customizable glow diff --git a/cl_particles.c b/cl_particles.c index ed0fa41c..6e936f92 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -1195,6 +1195,8 @@ void CL_RocketTrail (vec3_t start, vec3_t end, int type, entity_t *ent) { if (gamemode == GAME_GOODVSBAD2) particle(pt_static, PARTICLE_BILLBOARD, particlepalette[0 + (rand()&255)], particlepalette[0 + (rand()&255)], tex_particle, false, PBLEND_ALPHA, 6, 6, qd*255, qd*384, 9999, 0, 0, pos[0], pos[1], pos[2], lhrandom(-8, 8), lhrandom(-8, 8), lhrandom(-8, 8), 0, 0, 0, 0, 0, 0); + else if (gamemode == GAME_PRYDON) + particle(pt_static, PARTICLE_BILLBOARD, 0x202040, 0x202040, tex_particle, false, PBLEND_ADD, 6, 6, qd*128, qd*384, 9999, 0, 0, pos[0], pos[1], pos[2], lhrandom(-8, 8), lhrandom(-8, 8), lhrandom(-8, 8), 0, 0, 0, 0, 0, 0); else particle(pt_static, PARTICLE_BILLBOARD, 0x502030, 0x502030, tex_particle, false, PBLEND_ADD, 6, 6, qd*128, qd*384, 9999, 0, 0, pos[0], pos[1], pos[2], lhrandom(-8, 8), lhrandom(-8, 8), lhrandom(-8, 8), 0, 0, 0, 0, 0, 0); } -- 2.39.2