AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pev_skin на v_model (https://forums.alliedmods.net/showthread.php?t=237147)

IAmReallyCool 03-18-2014 18:25

pev_skin на v_model
 
I have a v_model with 5 skins and 3 submodels. How can i change v_model with pev_skin?

DavidJr 03-19-2014 06:16

Re: pev_skin на v_model
 
It's not possible.

IAmReallyCool 03-19-2014 17:53

Re: pev_skin на v_model
 
Quote:

Originally Posted by DavidJr (Post 2113350)
It's not possible.

So I have to do 8 different models, if I want 8 different colored models? :/

Kiske 03-19-2014 18:53

Re: pev_skin на v_model
 
I think you can use colormap to do that but I don't know how to use it.

DavidJr 03-20-2014 01:38

Re: pev_skin на v_model
 
IAmReallyCool, yes of course. But you may try with submodel but still, the result is very bad.

PHP Code:

set_pev(iEntpev_bodyx); 


IAmReallyCool 03-20-2014 06:49

Re: pev_skin на v_model
 
Quote:

Originally Posted by DavidJr (Post 2113717)
IAmReallyCool, yes of course. But you may try with submodel but still, the result is very bad.

PHP Code:

set_pev(iEntpev_bodyx); 


Wait and how do I find iEnt index?

DavidJr 03-20-2014 08:10

Re: pev_skin на v_model
 
Oh no, I'm wrong.

This is the correct one

PHP Code:

    message_begin(MSG_ONESVC_WEAPONANIM, {000}, id);
    
write_byte(x); //integer for anim
    
write_byte(x); //integer for body
    
message_end(); 


IAmReallyCool 03-20-2014 15:13

Re: pev_skin на v_model
 
Quote:

Originally Posted by DavidJr (Post 2113787)
Oh no, I'm wrong.

This is the correct one

PHP Code:

    message_begin(MSG_ONESVC_WEAPONANIM, {000}, id);
    
write_byte(x); //integer for anim
    
write_byte(x); //integer for body
    
message_end(); 


Could you please write a small example how and where it can be used? Since I guess it can't be used on CurWeapon event.


All times are GMT -4. The time now is 05:56.

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