The first part you said that´s what i am doing in above code.

About use_polygon i allready tried it, but i cant place the splat correctly in the player´s body. Dont think its a good solution, it never assumes the right position and direction.

I think it will be needed some write stuff in the skin but my tests didnt work yet.

Code:

if(you)
{
result = c_trace( my.x, you.x, ignore_me + get_hitvertex);
ent_bmap = bmap_for_entity(you,0);
ent_format = bmap_lock(ent_bmap,0);
// get hitvertex UV coord
vec_for_uv( uvSkin_vec, you, hitvertex );
// convert to bmap coord
uvSkin_vec.x *= bmap_width(ent_bmap);
uvSkin_vec.y *= bmap_height(ent_bmap);
// just a test here
tempSplat = ent_create ("splat.tga", uvSkin_vec.x, PAINT_createSplat);
bmap_unlock(ent_bmap);
}



But the splat isnt created in the right place.....