- You should use set_user_rendering() from fun instead of fakemeta, it will be more efficient.
- You should use FM_CmdStart instead of PlayerPreThink, but is really need just to glow ?
- Like said Nextra, you should move pev_button, but I would reorganize like this to avoid returs :
Code:
const MOVE_BUTTONS = ( IN_ATTACK | IN_ATTACK2 | IN_BACK | IN_FORWARD | IN_RUN | IN_JUMP | IN_MOVELEFT | IN_MOVERIGHT | IN_LEFT | IN_RIGHT );
Code:
if ( is_user_alive( id ) && zp_get_user_zombie( id ) && zp_get_user_zombie_class(id) == g_cat_class )
{
pev( id, pev_button ) & MOVE_BUTTONS ?
set_user_rendering(id, kRenderFxNone, 0,0,0,kRenderNormal, 255) :
set_user_rendering(id, kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 45);
}