Raised This Month: $ Target: $400
 0% 

Change w_ model of the weapon.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-18-2008 , 12:02   Re: Change w_ model of the weapon.
Reply With Quote #3

But how to set if weaponid == CSW_M4A1?
PHP Code:
    if(equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade"))
    {
        
engfunc(EngFunc_SetModelentityWORLD_MODEL)
        return 
FMRES_SUPERCEDE
    

Without this:
PHP Code:
    // checks if its the model we want to change
    
if(!equali(modelOLDWORLD_MODEL)) 
        return 
FMRES_IGNORED 
I whant to set about 20 models.
The very simple way like:
PHP Code:
        if (weaponid == CSW_M4A1)
        {
set_pev(idpev_viewmodel2"models/xxx/v_m4a1.mdl"
__________________

Last edited by xbatista; 12-18-2008 at 12:12.
xbatista is offline
Send a message via Skype™ to xbatista
 



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 09:19.


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