Raised This Month: $ Target: $400
 0% 

Replacing grenades world model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 01-01-2010 , 13:00   Replacing grenades world model
Reply With Quote #1

How to replace grenades world model ?
Code below doesnt work
Code:
public fw_SetModel ( Entity, const Model [ ] )
{
        if ( !pev_valid ( Entity ) )
           return FMRES_IGNORED

        if ( !equali ( Model, "w_smokegrenade.mdl" ) )
           return FMRES_IGNORED

        new ClassName [ 32 ]
        pev ( Entity, pev_classname, ClassName, 31 )

        if ( equal ( ClassName, "grenade" ) )
        {
                engfunc ( EngFunc_SetModel, Entity, w_grenade )
            
                return FMRES_SUPERCEDE
        }
        return FMRES_IGNORED
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
 



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:06.


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