-void CL_RocketTrail2 (vec3_t start, vec3_t end, int color, entity_t *ent)
-{
- float dec, len;
- vec3_t vec, pos;
- if (!cl_particles.integer) return;
- if (!cl_particles_smoke.integer) return;
-
- VectorCopy(start, pos);
- VectorSubtract(end, start, vec);
-#ifdef WORKINGLQUAKE
- len = VectorNormalize(vec);
-#else
- len = VectorNormalizeLength(vec);
-#endif
- color = particlepalette[color];
- dec = 3.0f / cl_particles_quality.value;
- while (len > 0)
- {
- particle(pt_static, PARTICLE_BILLBOARD, color, color, tex_particle, false, PBLEND_ALPHA, 5, 5, 128 / cl_particles_quality.value, 320 / cl_particles_quality.value, 9999, 0, 0, pos[0], pos[1], pos[2], 0, 0, 0, 0, 0, 0, 0, 0, 0);
- len -= dec;
- VectorMA(pos, dec, vec, pos);
- }
-}
-