/*================================================================================
	
	-----------------------------------
	-*- [ZP] Zombie Classes:Camouflage Zombie-*-
	-----------------------------------
	
	~~~~~~~~~~~~~~~
	- Description -
	~~~~~~~~~~~~~~~
	
	When user got infected,
	Change model to human model,
	Pretend like a human

	Model will be randomly changed at NEW MAP,
	won't be the same model
	~~~~~~~~~~~~~~~
	- Author -
	~~~~~~~~~~~~~~~
	Author is a Taiwanese!
	Johnny!

================================================================================*/

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


#define SUCTION_MODEL_NUM 8
new MODEL_NUM[SUCTION_MODEL_NUM][] =
{
	"arctic",
	"guerilla",
	"leet",
	"terror",
	"gign",
	"gsg9",
	"sas",
	"urbam"

}

// Zombie Atributes
new const zclass_name[] = { "Camouflage Zombie" } // name
new const zclass_info[] = { "Pretend like a human" } // description
new const zclass_clawmodel[] = { "v_knife.mdl" } // claw model
const zclass_health = 2000 // health
const zclass_speed = 240 // speed
const Float:zclass_gravity = 1.0 // gravity
const Float:zclass_knockback = 0.3 // knockback



new g_zclassid1


	
public plugin_precache()
{
	
	register_plugin("[ZP] Camouflage Zombies Class", "0.1", "Johnny")
	g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, MODEL_NUM[random(SUCTION_MODEL_NUM)], zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}



public zp_user_infected_post(id, infector)
{
	if (zp_get_user_zombie_class(id) == g_zclassid1){
		client_print(id, print_chat, "[ZP] You have pretend like a human‥！")
	}
}
