- vec3_t mins, maxs;
- int temp;
- VectorAdd(ent->origin, ent->model->mins, mins);
- VectorAdd(ent->origin, ent->model->maxs, maxs);
- // how many flames to make
- temp = (int) (cl.time * 30) - (int) (cl.oldtime * 30);
- R_FlameCube(mins, maxs, temp);
+ if (ent->render.model->flags & EF_GIB)
+ CL_RocketTrail (oldorg, neworg, 2, ent);
+ else if (ent->render.model->flags & EF_ZOMGIB)
+ CL_RocketTrail (oldorg, neworg, 4, ent);
+ else if (ent->render.model->flags & EF_TRACER)
+ {
+ CL_RocketTrail (oldorg, neworg, 3, ent);
+ dlightcolor[0] += 0x10;
+ dlightcolor[1] += 0x40;
+ dlightcolor[2] += 0x10;
+ }
+ else if (ent->render.model->flags & EF_TRACER2)
+ {
+ CL_RocketTrail (oldorg, neworg, 5, ent);
+ dlightcolor[0] += 0x50;
+ dlightcolor[1] += 0x30;
+ dlightcolor[2] += 0x10;
+ }
+ else if (ent->render.model->flags & EF_ROCKET)
+ {
+ CL_RocketTrail (oldorg, ent->render.origin, 0, ent);
+ dlightcolor[0] += 200.0f;
+ dlightcolor[1] += 160.0f;
+ dlightcolor[2] += 80.0f;
+ }
+ else if (ent->render.model->flags & EF_GRENADE)
+ {
+ if (ent->render.alpha == -1) // LordHavoc: Nehahra dem compatibility (cigar smoke)
+ CL_RocketTrail (oldorg, neworg, 7, ent);
+ else
+ CL_RocketTrail (oldorg, neworg, 1, ent);
+ }
+ else if (ent->render.model->flags & EF_TRACER3)
+ {
+ CL_RocketTrail (oldorg, neworg, 6, ent);
+ dlightcolor[0] += 0x50;
+ dlightcolor[1] += 0x20;
+ dlightcolor[2] += 0x40;
+ }