Is it possible to get the grenade owner in FM_SetModel forward so it will set specific world model only if the owner is in specific team.
PHP Code:
public forward_model(entity,const model[])
{
if(!pev_valid(entity))
{
return FMRES_IGNORED;
}
if ( model[ 0 ] == 'm' && model[ 7 ] == 'w' && model[ 8 ] == '_' && model[ 9 ] == 'h')
{
engfunc(EngFunc_SetModel,entity,model_nade_world);
fm_set_trail(entity,255,255,255,255);
return FMRES_SUPERCEDE;
}
}