Quote:
Originally Posted by PRoSToTeM@
You already have falsing on drop in Forward_SetModel.
|
Code:
public Forward_SetModel( pEntity, const pModel[ ] )
{
if( !pev_valid( pEntity ) )
{
return FMRES_IGNORED;
}
static szClassName [ 33 ]
pev( pEntity, pev_classname, szClassName, charsmax(szClassName) );
if( !equal ( szClassName, "weaponbox" ) )
{
return FMRES_IGNORED;
}
static pOwner , pModel
pModel = fm_find_ent_by_owner ( -1, WEAPON_BASE_NAME, pEntity );
pOwner = pev ( pEntity, pev_owner );
if ( g_pWeaponA [ pOwner ] && pev_valid ( pModel ) )
{
set_pev( pModel , pev_impulse , WEAP_KEY );
engfunc( EngFunc_SetModel, pEntity, W_MODEL );
g_pWeaponA [ pOwner ] = false;
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
For the rest of the peeps who still didn't understand, it is already handled in the first code, take a look at the red line
__________________