You can hook FM_SetModel and test if the entity is having its model set to a grenade. If so, set the entity's effects that way.
For Example:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
// Set the model you wish to make glow here
new const g_szGrenadeMdl[] = "models/w_grenade.mdl";
public plugin_init() {
register_forward( FM_SetModel, "hook_SetModel_post", 1 );
}
public hook_SetModel_post( ent, const szMdl[] ) {
// If model being set equals the global string of the grenade model
if( equal( szMdl, g_szGrenadeMdl ) )
{
// Set Glow Effect
set_pev( ent, pev_renderfx, kRenderFxGlowShell );
set_pev( ent, pev_renderamt, 125.0 );
set_pev( ent, pev_rendermode, kRenderTransAlpha );
set_pev( ent, pev_rendercolor, {0.0, 255.0, 0.0} );
}
}
__________________