Raised This Month: $ Target: $400
 0% 

Change w_ model of the weapon.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-18-2008 , 08:47   Change w_ model of the weapon.
Reply With Quote #1

I using default w_m4a1 how to replace it to: models/xxx/w_m4a1.mdl?
The v_ model and p_ is easy to set :/
PHP Code:
        new weaponid read_data(2)       
 if (
weaponid == CSW_M4A1)
        {
set_pev(idpev_viewmodel2"models/xxx/v_m4a1.mdl")
set_pev(idpev_weaponmodel2"models/xxx/p_m4a1.mdl")
        } 
How to replace w_?

SOORRRRYYYYYYYYYYYYYY MOVE to SCRIPTING HELP !!!!!!!!!!!!!!! !
__________________

Last edited by xbatista; 12-18-2008 at 12:11.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-18-2008 , 09:31   Re: Change w_ model of the weapon.
Reply With Quote #2

are you dumb? Oo
http://forums.alliedmods.net/showthread.php?t=40822
__________________
xPaw is offline
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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-18-2008 , 12:05   Re: Change w_ model of the weapon.
Reply With Quote #4

you should check it
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-18-2008 , 12:08   Re: Change w_ model of the weapon.
Reply With Quote #5

new OLDWORLD_AK47[] = "models/w_ak47.mdl"
new OLDWORLD_M4A1[] = "models/w_m4a1.mdl"





PHP Code:
    if(!equali(modelOLDWORLD_M4A1) && !equali(modelOLDWORLD_AK47)) 
?
And then write this?
PHP Code:
    if(equal(className"weaponbox") || equal(className"armoury_entity") || equal(className"grenade")) 
    { 
        
engfunc(EngFunc_SetModelentityWORLD_M4A1
        
engfunc(EngFunc_SetModelentityWORLD_AK47
        return 
FMRES_SUPERCEDE 
    

__________________

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



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