Quote:
|
Originally Posted by LynX
Well, I have several questions which I would be like that anyone of you answers me 
Now, on stuff:
1) How can I change skin(texture) of a model without using any XX_set_user_model, coz it wouldn't work.
2) How to spawn a sprite on players position?
3) How can I change sprite when a function is called? So when I press, let's say, command to change health then it changes sprite of something.
4) How can I make that function can only be called if 2 players are standing close to each other ( looking into their faces )?
5) How can I force some player to be a spectator?
6) How I can change model with FakeMeta?
Thanks in advance!!!
|
1) Using cs_set_user_model you specify the name of the model, ie "gign", and it then looks in models/player/gign/gign.mdl. You
don't specify the entire model path. You could try entity_set_string(id,EV_SZ_model,"themodel"), but it may not work how you want it to.
2)
Code:
//TE_SPRITE - additive sprite, plays 1 cycle
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(17);
write_coord(spriteorigin[0]); // coord, coord, coord (position)
write_coord(spriteorigin[1]);
write_coord(spriteorigin[2]);
write_short(firespr); // short (sprite index)
write_byte(20); // byte (scale in 0.1's)
write_byte(200); // byte (brightness)
message_end();
3) What?
4) Use get_user_aiming to see who they are looking at, and that will also return the distance so you can make sure they are close together.
5) Make them run changeteam and then menuselect 3 (or it might be slot3).
6)
Code:
engfunc(EngFunc_SetModel,entity,"models/modelnameandthesuch.mdl");
__________________