AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fun related stuff (https://forums.alliedmods.net/showthread.php?t=11090)

LynX 03-09-2005 14:38

Fun related stuff
 
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!!!

LynX 03-10-2005 10:18

5) I found it out myself...

C'mon, if you have any clue on this things I posted, even a single one o one question, please answer me, I really need the answers :cry:

Bend3R 03-10-2005 11:04

http://forums.alliedmods.net/showthr...?p=95489#99184

LynX 03-10-2005 11:19

I already know how to change model. I want to change a skin of a model ( model has three different appereances, I wanna change thru them )!
Besides, I want to know how to change model through FakeMeta because the mod team hard-coded model changing restriction into mod, so I won't get far with cs_set_user_model .

[edit]

- oh, and about sprite spawning - I need to spawn it on exact players position - and it should be 3x bigger than player!

LynX 03-11-2005 10:17

C'mon guys... Why nobody answers? I really need thos answers...
Or it isn't possible... :cry: :cry: :cry:

XxAvalanchexX 03-11-2005 20:58

Re: Fun related stuff
 
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");


All times are GMT -4. The time now is 13:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.