so...whats bad now...the debug client_print IS working, but there is no model, ducking or not doing it...
Code:
public client_PreThink(id)
{
if (!is_user_alive(id))
return;
if(zp_get_user_zombie(id) && zp_get_user_zombie_class(id) == g_invisible)
{
// Get currently pressed buttons
static buttons
buttons = pev(id, pev_button)
if(!(buttons & IN_DUCK))
{
client_print(id, print_chat, "[DEBUG] unducking.");
set_pev(id, pev_viewmodel, zclass_clawmodel)
}
if(buttons & IN_DUCK)
{
client_print(id, print_chat, "[DEBUG] ducking");
set_pev(id, pev_viewmodel, 0)
}
}
}
EDIT:this is the constant...
Code:
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model