Hi,

The gun below shoot paint balls using c_move in a multiplayer environment.





When the ball collides with level geometry or static entities (using precise collision detection - my.polygon = on) then ceates a splat in that place and it works all fine.

Code:

if (event_type == event_block || event_type == event_entity)
{
VEC_ADD (TARGET.X, normal.X);
you = ent_create ("splat.tga", target.x, PAINT_createSplat);
you.scale_x = 0.15;
you.scale_y = you.scale_x;
you.oriented = on;
you.facing = off;
you.passable = on;
you.flare = on;
you.ambient = 50;
you.transparent = on;
you.alpha = 100;
VEC_TO_ANGLE (you.PAN, normal.x);
my.passable = on;
my.invisible = on;
}



Well, the problem is that i want to create the splats also on the moving players models when they are shot, and i cant use my.polygon = on because they will stuck on others entities at movement.

What is the best way to this? I´ve searched for pixel_to_bmap and the possibility to write on the players skin, but didnt found a good conclusion yet.

Thanks for your time.
Cheers