I am trying to get the name of the limbs that are shot by the player in my game. I tried this by checking the old threads of this forum :

draw_text ("active", 10,10, vector(255,0,0));
var sight = 300;
VECTOR tpos;
STRING* bonename="empty";
vec_for_angle (tpos, vector (my.pan, my.tilt, my.roll));
vec_scale (tpos, sight);
vec_add (tpos, vector (my.x, my.y, my.z));
trace_mode = IGNORE_ME | IGNORE_PASSABLE | USE_BOX | SCAN_TEXTURE | IGNORE_SPRITES;
c_ignore (1, 0);
c_trace (vector (my.x, my.y, my.z), tpos, trace_mode);
draw_point3d (target.x,vector(50,50,255),100,3);
if(you && hit){

ent_bonename (you, bonename, hit.vertex);
draw_text (bonename, 10, 20, vector (255,0,0));

}


However it always shows the same bone name which is the left foot. I am using a non animated t-posing model for testing. I also would like to know how to check all the names of the bones of a model in MED.
Thanks!