Raised This Month: $12 Target: $400
 3% 

[SOLVED] PW model w/ sub-models & how to unprecache sounds.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-21-2012 , 09:57   [SOLVED] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #1

Hey guys I need some help.

For example I have a world/player model that has different submodels ( multi-weapon model, I will upload an example )

How do I "Switch the sub-model" from 1 to 2 or 5th sub-model? For both P and W model.

Also how to unprecache sounds, if its exists already please show me a link.
Attached Files
File Type: zip p_primary_1.zip (3.31 MB, 170 views)
__________________

Last edited by jc980; 05-24-2012 at 03:38.
jc980 is offline
csoldjb
Member
Join Date: Dec 2010
Old 05-21-2012 , 22:55   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #2

set_pev(iEnt,pev_body,XX) XX is the submodel number.
csoldjb is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-22-2012 , 01:00   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #3

Quote:
Originally Posted by csoldjb View Post
set_pev(iEnt,pev_body,XX) XX is the submodel number.
should put this after setting the W model and for the P model as well?

How to unprecache sounds too?
__________________
jc980 is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-22-2012 , 01:42   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #4

i found this code somewhere on this forum, i dont remember anymore where but i writed it on my special code list

here it is.

PHP Code:
SendWeaponAnim( const Player, const Sequence 


    
set_pev(Playerpev_weaponanimSequence

    
message_begin(MSG_ONESVC_WEAPONANIM, .player Player 
    
write_byteSequence 
    
write_byte(1
    
message_end( ) 


I dont know about how to use this, i have not tried this yet but i think it is just that way

SendWeaponAnim( id, 0 )

param2: 0 is sub model number.

example if you have 3 submodels in your v_ model then it will be just like that
0 , 1 , 2
Hyper Nova is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-22-2012 , 03:07   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #5

Quote:
Originally Posted by Hyper Nova View Post
i found this code somewhere on this forum, i dont remember anymore where but i writed it on my special code list

here it is.

PHP Code:
SendWeaponAnim( const Player, const Sequence 


    
set_pev(Playerpev_weaponanimSequence

    
message_begin(MSG_ONESVC_WEAPONANIM, .player Player 
    
write_byteSequence 
    
write_byte(1
    
message_end( ) 


I dont know about how to use this, i have not tried this yet but i think it is just that way

SendWeaponAnim( id, 0 )

param2: 0 is sub model number.

example if you have 3 submodels in your v_ model then it will be just like that
0 , 1 , 2
Your out of the topic, I need to make the sub-models switch its appearance in WORLD AND PLAYER MODELS.
__________________

Last edited by jc980; 05-22-2012 at 03:08.
jc980 is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-22-2012 , 03:38   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #6

Quote:
Originally Posted by jc980 View Post
Your out of the topic, I need to make the sub-models switch its appearance in WORLD AND PLAYER MODELS.
I was thinking that you want to change w model to
set_pev(id ,pev_body, 0)
param 3 ( key 0 ) work same as i said for v model

Quote:
should put this after setting the W model and for the P model as well?

How to unprecache sounds too?
Ofcourse, other ways you set old model sub model.
Hyper Nova is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-22-2012 , 04:38   Re: [Help] PW model w/ sub-models & how to unprecache sounds.
Reply With Quote #7

Testing it later, and how to precache sounds, please reply.
__________________
jc980 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:14.


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