Hi cute people.
I'm trying to make a gun fall to the floor without using physics. This code is activated when the gun holder dies:

Code:
			vec_set(temp, my.x);
temp.z -= 900; // trace downwards 500 quants below
c_trace (my,temp,IGNORE_ME|IGNORE_MODELS|IGNORE_SPRITES|IGNORE_YOU);
my.push=0;
my.passable=off;
while(vec_dist(me,target)>5)
{
c_move(me,nullvector,vector(0,0,-7*time),ignore_you|ignore_sprites);
if(my.roll<90)||(my.roll>180){my.roll+=10*time;} // rolls while falling
wait(1);
}



But the gun simply rolls 90ยบ, and THEN falls to the floor. It looks very dumb.
Any ideas on how to fix this?
Thanks in advance.


"When the battlefield is under total control, war becomes routine." Old Snake