mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
Modified smoke trails for grenades and rockets so that we have an easter
egg temporarily until easter - They'll randomly choose between 255 colors. I'll eventually change this into a cvar, but for now enjoy ;) This stuff is easily removed for the people who don't like colors: Just remove my added lines, and uncomment the old ones :) Misty-chan
This commit is contained in:
parent
7553f2b0a4
commit
9bdc1f02c4
1 changed files with 6 additions and 2 deletions
|
@ -495,7 +495,9 @@ R_RocketTrail (int type, entity_t *ent)
|
||||||
pdie = cl.time + 60;
|
pdie = cl.time + 60;
|
||||||
ptype = pt_smokering;
|
ptype = pt_smokering;
|
||||||
pscale = lhrandom (10, 15);
|
pscale = lhrandom (10, 15);
|
||||||
pcolor = (rand () & 3) + 12;
|
// Misty-chan: Temporary easter egg
|
||||||
|
pcolor = (rand () & 255);
|
||||||
|
// pcolor = (rand () & 3) + 12;
|
||||||
palpha = 220 + (rand () & 31);
|
palpha = 220 + (rand () & 31);
|
||||||
VectorVectors(vec, right, up);
|
VectorVectors(vec, right, up);
|
||||||
VectorCopy (ent->old_origin, porg);
|
VectorCopy (ent->old_origin, porg);
|
||||||
|
@ -506,7 +508,9 @@ R_RocketTrail (int type, entity_t *ent)
|
||||||
pdie = cl.time + 1;
|
pdie = cl.time + 1;
|
||||||
ptype = pt_smoke;
|
ptype = pt_smoke;
|
||||||
pscale = lhrandom (6, 9);
|
pscale = lhrandom (6, 9);
|
||||||
pcolor = (rand () & 3) + 3;
|
// Misty-chan: Temporary easter egg.
|
||||||
|
pcolor = (rand () & 255);
|
||||||
|
// pcolor = (rand () & 3) + 3;
|
||||||
palpha = 48 + (rand () & 31);
|
palpha = 48 + (rand () & 31);
|
||||||
VectorCopy (ent->old_origin, porg);
|
VectorCopy (ent->old_origin, porg);
|
||||||
ptex = part_tex_smoke[rand () & 7];
|
ptex = part_tex_smoke[rand () & 7];
|
||||||
|
|
Loading…
Reference in a new issue