AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Replacing grenades world model (https://forums.alliedmods.net/showthread.php?t=114035)

NiHiLaNTh 01-01-2010 13:00

Replacing grenades world model
 
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
}


xPaw 01-01-2010 13:01

Re: Replacing grenades world model
 
add models/

NiHiLaNTh 01-01-2010 13:03

Re: Replacing grenades world model
 
O_o that was fast answer.Anyway, thanks ( what a stupid mistake ).


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

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