
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <fun>

// Zombie Atributes
new const zclass_name[] = { "Rage Zombie" } // name
new const zclass_info[] = { "GLOW+ Speed- Knockback+++" } // description
new const zclass_model[] = { "zombie_source" } // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
const zclass_health = 1600 // health
const zclass_speed = 180 // speed
const Float:zclass_gravity = 1.0 // gravity
const Float:zclass_knockback = 2.2 // knockback

// Class IDs
new g_zclass_rage

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
	register_plugin("[ZP] Rrage Zombie", "1.0", "sett")
	
	// Register the new class and store ID for reference
	g_zclass_rage = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)	
}

public plugin_init()
{
	register_event("ResetHUD","NewRound","be")
	
}
// User Infected forward
public zp_user_infected_post(id, infector)
{
	// Check if the infected player is using our custom zombie class
	if (zp_get_user_zombie_class(id) == g_zclass_rage)
	{
		client_PreThink ( id )
		client_print(id, print_chat, "[ZP] you are a Rage Zombie now.")
	}
}

public zp_user_humanized_post(id)
{
	set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
}
public  client_PreThink(id)
{
	new Players[32], iNum
	get_players(Players, iNum)
	
	for(new i = 0; i < iNum; ++i)
	{
		new id = Players[i]
		if (zp_get_user_zombie_class(id) == g_zclass_rage && zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
		set_user_rendering(id, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 16)
	}
}

public NewRound(id)
{
	set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/
