ACTOR EpicCyberdemon : Cyberdemon //Except not that epic
{
//Creator: GDWolf
//Origin: Complex Very Strong Monsters
//Sprite: CYBR
//Title: "Epic Cyberdemon"
Tag "\c[m5]Epic\c- Cyberdemon"
Health 6000
PainChance 50
PainChance "PDTBFG", 25
PainChance "SoulToxic", 15
PainChance "FatFlamer", 15
PainChance "FiendFire", 15
PainChance "Explosion", 80
Species "Cybers"
DropItem "BossLifeEssence" 128 25
DropItem "BossArmorBonusMax" 128 1
DropItem "MissileBox" 128 20
DropItem "Grenade Launcher" 128 1
Obituary "The Epic Cyberdemon wrecked %o."
DamageFactor "Cyber10K", 0.0
DamageFactor "PDTBFG", 0.5
DamageFactor "PDTBFGTracer", 0.8
DamageFactor "TrueLegendaryDamage", 0.1
DamageFactor "TrueLegendaryPlayer", 0.1
SeeSound "monsters/clsee"
PainSound "monsters/cyberlordpain"
DeathSound "monsters/cldie"
States 
{    
  Spawn: 
	CYBR A 10 A_Look
	Loop 
  See: 
	CYBR A 3 A_Playsound("monsters/clhoof")
	CYBR ABB 3 A_Chase
	CYBR C 3 A_Playsound("monsters/clhoof")
	CYBR CDD 3 A_Chase
	Loop 
  Missile:
	TNT1 A 0 A_Jump(192,"Grenadier","BFG10K","BFG95K")
  Normal:
	CYBR E 12 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordRocket", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordRocket", 40, -26, 0)
	CYBR E 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordRocket", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordRocket", 40, -26, 0)
	CYBR E 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordRocket", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordRocket", 40, -26, 0)
	CYBR E 12
	TNT1 A 0 A_Jump(128,"Seekers")
	Loop
  Seekers:
	CYBR E 12 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordHomer", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordHomer", 40, -26, 0)
	CYBR E 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordHomer", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordHomer", 40, -26, 0)
	CYBR E 10 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberLordHomer", 40, 26, 0)
	CYBR F 10 Bright A_CustomMissile("CyberLordHomer", 40, -26, 0)
	CYBR E 12
	Goto See
  Grenadier:
	TNT1 A 0 A_Jump(178,"Normal")
	CYBR E 12 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	TNT1 A 0 A_CustomMissile("CyberLordGrenade", 40, 26, 0, CMF_AIMOFFSET, 4.328125)
	CYBR F 10 Bright A_CustomMissile("CyberLordGrenade", 40, -26, 0, CMF_AIMOFFSET, 4.328125)
	CYBR E 10 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	TNT1 A 0 A_CustomMissile("CyberLordGrenade", 40, 26, 0, CMF_AIMOFFSET, 4.328125)
	CYBR F 10 Bright A_CustomMissile("CyberLordGrenade", 40, -26, 0, CMF_AIMOFFSET, 4.328125)
	CYBR E 12
	Goto See
  BFG95K:
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	CYBR E 15 Bright A_FaceTarget
	CYBR E 10 Bright A_FaceTarget
	CYBR F 8 Bright A_FaceTarget	
	CYBR F 4 Bright A_CustomMissile("DAnniBFG9500Ball",54,-22,0)
	CYBR E 6 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	CYBR E 15 Bright A_FaceTarget
	CYBR E 10 Bright A_FaceTarget
	CYBR F 8 Bright A_FaceTarget	
	CYBR F 4 Bright A_CustomMissile("DAnniBFG9500Ball",54,-22,Random(-4,4))
	CYBR E 6 Bright A_FaceTarget	
	TNT1 A 0 A_Jump(128,"BFG10K")
	Goto See
  BFG10K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	CYBR EEEEEEE 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))
	CYBR E 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))
	CYBR E 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))
	CYBR E 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))
	CYBR E 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))
	CYBR E 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	CYBR F 3 Bright A_CustomMissile("Cardinal10K", 40, 0, Random(4, -4))  
	TNT1 A 0 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	Goto See
  Pain:
	TNT1 A 0 A_Jump(61,"PainMissile")
	CYBR G 10 A_Pain
	Goto See
  PainMissile:
	CYBR G 10 A_Pain
	Goto Missile
  Death:
	CYBR G 10 A_Scream
	CYBR H 10 A_NoBlocking
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	CYBR IIIII 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	CYBR JJJJJ 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	CYBR KKKKK 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	CYBR LLLLL 1 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	CYBR MMMMM 1 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))	
	CYBR "NO" 5
	TNT1 A 0 A_BossDeath
	CYBR P -1 A_KillMaster
    Stop
  Crush:
	BOCR A -1 A_PlaySound("gib/squish")
	Stop
    }
}