Code:
 function PewPew()
{
var theTarget;
vec_set(theTarget.x, vector(10000, 0, 0)); //shoots 10000 quants
vec_rotate(theTarget.x, camera.pan); //shoots in the direction of the player
c_trace(my.x, theTarget.x, ignore_me + scan_texture | ignore_passable | use_aabb ); // aabb works great here :)

if(str_cmpi(tex_name, "TESTBOSS.MDL") == 1) // if the entity hit is square.mdl
{
doDamage(1);
}
}



That's my weapon code for right now, it takes away 1 point of health everytime I shoot a TESTBOSS.MDL -- this all works fine, how can i make it fire a .mdl in the same direction as the c_trace ray?