Actor ShadowZilla : Zilla 20048
{
    //$Category Shadow Warrior Monsters
    Health 1000
	AttackSound "NINJAM60"
	DropItem "SmokeBomb" 54
    DropItem "FlashBomb" 54
    DropItem "GasBomb" 54
	DamageFactor "DemonicFlashDamage", 0.0
    DamageFactor "BigBallDamage", 0.0
	Translation "112:127 = [132, 132, 112]:[20,24,4]"
	Renderstyle Fuzzy
	-NEVERFAST 
	States
	{
	Missile:
	    ZILL A 1 A_JumpIfInTargetInventory("SmokeBombCheck", 1, "See")
	    ZILL A 1 A_FaceTarget
	    ZILL A 1 A_Jump(256, "BulletAttack","DemonicAttack1","DemonicAttack2", "FlashBombAttack")
	    Goto See
	BulletAttack:
		ZILL I 3 bright A_FaceTarget
		ZILL J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		ZILL J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		ZILL I 3 bright A_FaceTarget
		ZILL J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		ZILL J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		ZILL I 3 bright A_FaceTarget
		ZILL J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		ZILL J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		TNT1 A 0 A_Jump(128, "BulletAttack")
		Goto See		
	DemonicAttack1:
	    ZILL K 16 A_FaceTarget
		ZILL L 2 A_FaceTarget
		ZILL M 0 A_Playsound("PUNCH")
		ZILL M 0 A_CustomMissile("DemonicProjectile")
		ZILL M 8
	    Goto See
	DemonicAttack2:
	    ZILL K 16 A_FaceTarget
		ZILL L 2 A_FaceTarget
		ZILL M 0 A_Playsound("PUNCH")
		ZILL M 0 A_CustomMissile("DemonicBigBall", 0, 0, 0, 2)
		ZILL M 0 A_CustomMissile("DemonicBigBall", 0, -20, 0, 2)
		ZILL M 0 A_CustomMissile("DemonicBigBall", 0, 20, 0, 2)
		ZILL M 8
	    Goto See
	FlashBombAttack:
	    ZILL A 16 A_FaceTarget
		TNT1 A 0 A_PlaySound("GASPOP")
		TNT1 A 0 A_SpawnItemEx("DemonicFlashExplode", 0, 15, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	    Goto See
	Pain:
		ZILL N 5 A_FaceTarget 
		TNT1 A 0 A_Pain
		TNT1 A 0 A_Jump(10, "BrockenNeck")
		Goto See	
//----------------------------------------------------------------------------//			
	}
}

	
Actor DemonicProjectile
{
	Radius 4
	Height 4
	Speed 20
	Damage 5
	Projectile
	Scale 0.5
	SeeSound "GRDFIR"
	DeathSound "EXPL2"
	DamageType "MonsterExplode"
	RenderStyle Translucent
	Alpha 0.7
	States
	{
	Spawn:
		HEXP A 3 Bright 
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, 80)
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, -80)
		HEXP B 3 Bright 
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, 80)
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, -80)
		HEXP C 3 Bright 
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, 80)
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, -80)
		HEXP D 3 Bright 
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, 80)
		TNT1 A 0 A_CustomMissile("DemonicProjectileSpot", 0, 0, -80)
		Loop
	Death:
		MAGP EFGHIJ 2 Bright
		Stop

	    
	}
}

Actor DemonicProjectileSpot
{
	Radius 4
	Height 4
	Speed 25
	Damage 5
	Projectile
	Scale 0.5
	DeathSound "EXPL2"
	DamageType "MonsterExplode"
	States
	{
	Spawn:
		MAGP ABCD 2 Bright
		Loop
	Death:
		MAGP EFGHIJ 2 Bright
		Stop

	    
	}
}

ACTOR DemonicBigBall
{
	Radius 4
	Height 4
	Speed 35
	Damage 1
	Projectile
	Scale 0.4
	+FLOORHUGGER
	+RIPPER
	SeeSound "GRDFIR"
	DeathSound "EXPL3"
	DamageType "BigBallDamage"
	States
	{
	Spawn:
		HEX3 A 2
		HEX3 B 3 Bright
		TNT1 A 0 A_SpawnItem("DemonicBigBallExplode")
		HEXP D 0 A_playsound("NAPPUFF")
		HEX3 C 2
		HEX3 D 3  Bright 
		TNT1 A 0 A_SpawnItem("DemonicBigBallExplode")
		HEXP D 0 A_playsound("NAPPUFF")
		Loop
	Death:
		HEX2 ABCD 4 Bright
		Stop
	}
}

ACTOR DemonicBigBallExplode
{
+FLOORHUGGER
+NODAMAGETHRUST
Projectile
Speed 0
Scale 0.7
DamageType "BigBallDamage"
States
	{
	Spawn:
	BGEX A 2
	BGEX B 2 A_Explode(25, 60)
	BGEX CDEFGHIJKLMNOPQRSTUW 2 
	Stop 
	}
}


Actor DemonicFlashExplode
{
   +NODAMAGETHRUST
   DamageType "DemonicFlashDamage"
   States
      {
      Spawn:
         TNT1 A 1
         TNT1 A 0 A_Explode(5, 600)
         stop
       }
}



Actor ShadowNinja : BaseNinja 20049
{
    //$Category Shadow Warrior Monsters
    Health 1000
	AttackSound "NINJAM60"
	DropItem "SmokeBomb" 54
    DropItem "FlashBomb" 54
    DropItem "GasBomb" 54
	DamageFactor "DemonicFlashDamage", 0.0
    DamageFactor "BigBallDamage", 0.0
	Translation "112:127 = [132, 132, 112]:[20,24,4]"
	Renderstyle Fuzzy
	-NEVERFAST 
	States
	{
	Missile:
	    NINZ A 1 A_JumpIfInTargetInventory("SmokeBombCheck", 1, "See")
	    NINZ A 1 A_FaceTarget
	    NINZ A 1 A_Jump(256, "BulletAttack","DemonicAttack1","DemonicAttack2", "FlashBombAttack")
	    Goto See
	BulletAttack:
		NINZ I 3 bright A_FaceTarget
		NINZ J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		NINZ J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		NINZ I 3 bright A_FaceTarget
		NINZ J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		NINZ J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		NINZ I 3 bright A_FaceTarget
		NINZ J 3 bright A_CustomBulletAttack(8,8,1,2,"SWPuffOne")
		NINZ J 0 A_SpawnItemEx("MicroUziCasingSpawner",0,0,32)
		TNT1 A 0 A_Jump(128, "BulletAttack")
		Goto See		
	DemonicAttack1:
	    NINZ K 16 A_FaceTarget
		NINZ L 2 A_FaceTarget
		NINZ M 0 A_Playsound("PUNCH")
		NINZ M 0 A_CustomMissile("DemonicProjectile")
		NINZ M 8
	    Goto See
	DemonicAttack2:
	    NINZ K 16 A_FaceTarget
		NINZ L 2 A_FaceTarget
		NINZ M 0 A_Playsound("PUNCH")
		NINZ M 0 A_CustomMissile("DemonicBigBall", 0, 0, 0, 2)
		NINZ M 0 A_CustomMissile("DemonicBigBall", 0, -20, 0, 2)
		NINZ M 0 A_CustomMissile("DemonicBigBall", 0, 20, 0, 2)
		NINZ M 8
	    Goto See
	FlashBombAttack:
	    NINZ A 16 A_FaceTarget
		TNT1 A 0 A_PlaySound("GASPOP")
		TNT1 A 0 A_SpawnItemEx("DemonicFlashExplode", 0, 15, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	    Goto See
	Pain:
		NINZ N 5 A_FaceTarget
		TNT1 A 0 A_Pain
		TNT1 A 0 A_Jump(10, "BrockenNeck")
		Goto See			
	}
}
