#include "shenghua1.pst"
string Name = "母体僵尸";
int Model =   jiangshixuanze();
int Weapon =  46;
int Weapon2 = 28;
int Team = 2;
int View = 2500+Rand(2500);
int Think = 250;
int Attack1 = 30;
int Attack2 = 25;
int Attack3 = 45;
int Guard = 0;
int Dodge = 0;
int Jump = 5+Rand(15);
int Look = 1000;
int Burst = 30;
int Aim = 100;
int GetItem = 0;
int Spawn = Rand(120);
int HP = 20000;
int hpf = 120-Rand(100);

int npc;
int Stat;
int Stat1;
int g_selfAddr;
OnInit(int this)
{
	g_selfAddr = this;
}

jiangshihujiao(){

AddNPC("生化僵尸2");
AddNPC("生化僵尸2");
AddNPC("生化僵尸2");
}
OnStart()
{
	npc = GetSelf(g_selfAddr);
	ChangeBehavior(npc, "run");

}
OnUpdate(){

	if(Stat==0)
	{
		Stat++;
		Stat1++;
		npcztxs(npc, HP, hpf);	
	        Perform(npc,"use",31);
	        //Perform(npc,"use",19);
		return 0;
	}
        if(Stat+hpf<GetGameTime()){
        Stat=GetGameTime();
	Perform(npc,"use",16);
	Perform(npc,"use",16);
	Perform(npc,"use",41);
	Perform(npc,"use",34);
        Perform(npc,"use",40);
	Perform(npc,"use",5);
	Perform(npc,"use",4);
      }
/*
      if(Stat1==1)
      {
          if (GetHP(npc) < GetMaxHP(npc)/2)
          {
	     jiangshihujiao();
	     Perform(npc,"use",34);
	     Perform(npc,"use",40);
	     Say(npc, " 儿子们。出来吧..   ");
	     Stat1++;
          }
      }

      if(Stat1==2)
      {
          if (GetHP(npc) < GetMaxHP(npc)/5)
          {
	     jiangshihujiao();
	     Perform(npc,"use",34);
	     Perform(npc,"use",15);
	     Say(npc, " 他们回来了   ");
	     Stat1++;
          }
     }
*/
}