by MauveBib » Mon Sep 12, 2005 4:31 am
I assume you mean to make a trail follow a projectile while spinning round it, to leave a spiral effect like a railgun?
For that, the easiest way is to have to the trail as an entity, with it's owner set to the projectile;
The projectile entity should have an avelocity something like '0 0 300'
The think function of the trail entity should be something like:
void() trail_think =
{
if (!self.owner)
{
remove(self);
return;
}
makevectors(self.owner.angles);
setorigin(self, self.owner.origin + v_right * 10);
particle(self.origin, '0 0 0'. 14, 4);
self.nextthink = time;
};
Of course the particle() line should be changed for whatever trail effect you're after, or if it's a model flag trail effect then obviously you don't need a qc line for it at all.
This is untested of course.....
Apathy Now!