Raised This Month: $ Target: $400
 0% 

Change Weapon Sub-Model (v_)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 05-09-2016 , 15:59   Change Weapon Sub-Model (v_)
Reply With Quote #1

I have seen alot of threads about this topic but none of them had the solution.
I got a v_ model, it contains multiple sub-models inside.
I want to choose wich sub-model will be shown.


This is the code to set viewmodel:
PHP Code:
set_pev(idpev_viewmodel2"models/server/testwep.mdl"
It works correctly.


Now, how can i choose wich sub-model will be shown?
I know for body models i just need to do:
PHP Code:
set_pev(idpev_body, *Number of SubModel*) 

How can i do the same for weapon v_ models?
I saw this code somewhere else
PHP Code:
    set_pev(idpev_viewmodel2"models/server/testwep.mdl")

    new 
yo[32]
    
get_weaponname(CSW_KNIFEyosizeof yo 1)
    
    new 
weapon fm_find_ent_by_owner(-1yoid)
    
set_pev(weaponpev_body, *Number of SubModel*) 
But it doesnt work.



Can somebody tell me a way to achieve this?
Thank you.

Last edited by Syturi0; 05-09-2016 at 16:03.
Syturi0 is offline
 


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 18:43.


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