c_trace(my.x,target_pos.x,ignore_me);
if(you) // An entity was hit?
{
vec_set(temp.x,my.x); // Store position of the player
vec_set(my.x,you.x); // Setting player to hitten entity
vec_set(you.x,temp.x); // Setting you to the stored player position
}
The target_pos is the position you have to trace (the point the weapon has aimed).
I hope this could help you
Regards
TSGames