tattoo for model

Posted By: GameScore

tattoo for model - 03/13/12 18:29

Hi,
i want to give the option in my game to
set some tattos at the players model anywhere on the body
( face,arms ect..)
did someone know how i can do that?
set a bmap over a skin?
tnx for every help
Posted By: Ch40zzC0d3r

Re: tattoo for model - 03/13/12 18:33

Look at the function ent_decal wink
Posted By: sivan

Re: tattoo for model - 03/13/12 20:53

or use pixel_to_bmap(BMAP* bmap,var x,var y,var pixel); to draw onto model skin (ent_decal can be used only with commercial or pro)
Posted By: GameScore

Re: tattoo for model - 03/13/12 21:28

tnx for your answer
i got the commercial edition

i checked ent_decal
but some questions i have about it
how can i resize and move the decal after the decal is created and placed?
Posted By: Ch40zzC0d3r

Re: tattoo for model - 03/14/12 05:01

I think this doesnt work cuz the pointer to object is a particle.
So PARTICLE* p = ..
And then use the ptr p to move idk if that works!
Posted By: MrGuest

Re: tattoo for model - 03/14/12 13:26

or create a shader?
Posted By: GameScore

Re: tattoo for model - 03/14/12 20:50

ent_decal is a nice tool
but please can tell me someone how can i delete the 1st decal after
a 2nd is created?
Posted By: MasterQ32

Re: tattoo for model - 03/14/12 20:56

PARTICLE* p = ent_decal(...);
[...]
p.lifespan = 0;

store the particle global, reset the lifespan and then assign the new decal
Posted By: GameScore

Re: tattoo for model - 03/15/12 21:54

tnx
Posted By: GameScore

Re: tattoo for model - 03/16/12 18:39

ok now i can remove the 1st decal after create a 2nd one
but how can i remove one of the 4 decals i created?

i mean if i have 4 decals created on my model
and i want to remove the 2nd or 3rd
how can i do that?
Posted By: Ch40zzC0d3r

Re: tattoo for model - 03/16/12 19:34

shocked
Man define p1, p2, p3 and p4 and then save the first tattoo in p1 and so on.
Then just remove the one you need....
Posted By: GameScore

Re: tattoo for model - 03/16/12 20:13

thank you man
Posted By: Ch40zzC0d3r

Re: tattoo for model - 03/16/12 20:51

No problem.....
© 2024 lite-C Forums