Actor FormerMajor
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: EASZ
//Title: "Former Major"  
MONSTER
Health 500
Height 56
Radius 20
Mass 300
Speed 10
MaxStepHeight 64
PainChance 30
Reactiontime 25
Painchance "Mine", 256
Species "EliteZombies"
Damagefactor "Acid", 5.25
Damagefactor "Explosion", 0.5
Damagefactor "Extreme", 0.2
Damagefactor "Rocket", 0.4
//No Infighting
DamageFactor "RST", 0.0
DamageFactor "SoapOpera", 0.0
DamageFactor "ZombieDev", 0.0
Damagefactor "ZExplosiveBullets", 0.0
Damagefactor "HTZombie", 0.0
Damagefactor "ZGrenade", 0.0
DamageFactor "ZombieCannon", 0.0
DamageFactor "MiniRocket", 0.0
DamageFactor "Zap", 0.0
DropItem "PortableMedCell", 150, 1
DropItem "StimKit", 180, 2
DropItem "ClipBox", 180
DropItem "HealthFlask", 200, 6
DropItem "ArmorPlate", 160
DropItem "HandGrenadeAmmo", 120, 1
DropItem "MineAmmo", 90, 1
DropItem "AmmoPack", 160, 1
DropItem "ShieldSphere", 64, 1
DropItem "MarineMedicBeacon", 15, 1
DropItem "MarineDispensersBeacon", 15, 1
DropItem "HellsMediumContract", 105
SeeSound "PNZombie/See"
Obituary "%o had chunks blown off by a Former Major carrying zombie beacons."
Tag "\c[t2]Former Major\c-"
+NOFEAR
+FLOORCLIP
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
States
{
  Spawn:
    EASZ A 10 A_Look
    Loop
  See: 
    EASZ AABB 3 A_Chase
    TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
    EASZ CCDD 3 A_Chase
    TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
    Loop
  Missile:
    EASZ E 7 A_FaceTarget
	TNT1 A 0 A_PlaySound("PulseNail/fire")
	TNT1 A 0 A_CustomMissile("MonsterExplosiveTracer3",34,9,frandom(-2.0,2.0),CMF_OFFSETPITCH,frandom(-2.0,2.0))
	EASZ F 5 Bright A_CustomMissile("ZPulseNail",34,9,frandom(-2.0,2.0),CMF_TRACKOWNER|CMF_OFFSETPITCH,frandom(-2.0,2.0))
    EASZ E 5 A_FaceTarget
	TNT1 A 0 A_Jump(30,"See")
	TNT1 A 0 A_CPosRefire
	TNT1 A 0 A_Jump(40,"MiniBeacon")
    Goto Missile+3
  MiniBeacon:
    EASZ D 20 A_SpawnItem("ActiveMiniBeacon")
  Pain:
    EASZ G 3
    EASZ G 3 A_Pain
    Goto See
  Death:
    EASZ H 5
    EASZ I 5 A_Scream
    EASZ J 5 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BodyCrash",0,0,0,0)
    EASZ KLM 5
    EASZ N -1
    Stop
  XDeath:
	EASZ O 5 A_SpawnItemEx("GibbedGenerator",0,0,0,0,0,0,0,128,0)
	EASZ P 5 A_XScream
	EASZ Q 5 A_NoBlocking
	EASZ RSTUV 5
	EASZ W -1
	Stop
  Raise:
    TNT1 A 0
    TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
    EASZ KJIH 5
    Goto See
  }
}

Actor ActiveMiniBeacon
{
  -SOLID
  -SHOOTABLE
  States
  {
  Spawn:
    B3AC ABCDEF 17
    B3AC F 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
    B3AC F 0 A_SpawnItemEx ("ProShotgunner", 0, 0, 8, 0, 0, 0, 0, 1)
    B3AC F 105
    goto Death
  Death:
    TNT1 A 1 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
    stop
  }
}