actor Annihilator : Cyberdemon_2
{
  obituary "%o was imploded by an Annihilator."
  health 6000
  radius 40
  height 110
  mass 1000
  speed 16
  painchance 20
  seesound "cyber/sight"
  painsound "cyber/pain"
  deathsound "cyber/death"
  activesound "cyber/active"
  MONSTER
  +BOSS
  +FLOORCLIP
  +NORADIUSDMG
  +DONTMORPH
  +QUICKTORETALIATE
  Species "Cyber"
  DamageFactor "Telebomb", 10.0
  DropItem "MegaSphere2"
  DropItem "AmmoSphere2"
  states
  {
  Spawn:
    ANNI A 0 
	ANNI A 0 Thing_SetSpecial(0,226,613,0,random(600,700))
	POSS A 0 A_GiveInventory("XPAmount", random(600, 700))
	POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
    ANNI AB 10 A_Look
    goto Spawn+4
  See:
    ANNI A 3 A_Hoof
    ANNI ABBCC 3 A_Chase
    ANNI D 3 A_Metal
    ANNI D 0 A_Chase
    ANNI D 3 A_SpawnItemEx("CyberStepDamage", 0, 0, 16, 0, 0, 0, 0, 0, 0)
    loop
  Missile:    
    ANNI E 6 A_FaceTarget
    ANNI F 0 A_CustomMissile("CyberdemonMissile",56,24)
    ANNI F 12 BRIGHT A_CustomMissile("CyberdemonMissile",56,-24)
    ANNI E 12 A_FaceTarget
    ANNI F 0 A_CustomMissile("CyberdemonMissile",56,24)
    ANNI F 12 BRIGHT A_CustomMissile("CyberdemonMissile",56,-24)
    ANNI E 12 A_FaceTarget
    ANNI F 0 A_CustomMissile("CyberdemonMissile",56,24)
    ANNI F 12 BRIGHT A_CustomMissile("CyberdemonMissile",56,-24)
    ANNI E 12 A_FaceTarget
    goto See
  Pain:
    POSS A 0 
    POSS A 0 A_GiveToTarget("CyberXP",1)
    ANNI G 10 A_Pain
	TNT1 G 0 A_AlertMonsters
    goto See
  Death:
    ANNI H 5
    ANNI HHHHH 1 A_GiveToTarget("CyberXP",1)
    ANNI I 10 A_Scream
    ANNI JKL 10
    ANNI M 10 A_NoBlocking
    ANNI M 0 ACS_ExecuteAlways(648,0,0,0,0)
    ANNI NO 10
    ANNI P 30
    ANNI P -1 A_BossDeath
  }
}
