//////////////////////////////
// THE CYBERDEMON			//
//////////////////////////////
ACTOR TheCyberdemonLord Replaces Cyberdemon
{
	Health 4000
	Radius 40
	Height 110
	Mass 1000
	Speed 16
	PainChance 20
	MinMissileChance 160
	MONSTER 
	+BOSS 
	+MISSILEMORE
	+FLOORCLIP
	+NORADIUSDMG
	+DONTMORPH
	+BOSSDEATH
	SeeSound "cyber/sight"
	PainSound "cyber/pain"
	DeathSound "cyber/death"
	ActiveSound "cyber/active"
	Obituary "$OB_CYBORG"
	States
	{
	Spawn:
		CYBR AB 10 A_Look
	Loop
		
	See:
		CYBR A 3 A_Hoof
		CYBR ABBCC 3 A_Chase
		CYBR D 3 A_Metal
		CYBR D 3 A_Chase
	Loop
		
	Missile:
		CYBR E 6 A_FaceTarget
		CYBR F 12 A_CyberAttack
		CYBR E 12 A_FaceTarget
		CYBR F 12 A_CyberAttack
		CYBR E 12 A_FaceTarget
		CYBR F 12 A_CyberAttack
	Goto See
		
	Pain:
		CYBR G 10 A_Pain
	Goto See
		
	Death:
		CYBR H 7
		CYBR I 7 A_Scream
		TNT1 A 0 A_CustomMissile("Explosion", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 A 0 A_CustomMissile("XCyberDeathArm1", 80,  0, random(0, 360), 2, random(0, 90))
		TNT1 A 0 A_CustomMissile("XCyberDeathArm2", 80,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("OrgansFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("ThickBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("UniversalBloodSlatter", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("FlyingBlood", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("OrgansFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("GoreChunk1", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("XDeathMonster", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("XDeathMonster2", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_CustomMissile("IntestinalGutsFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("RibsFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("OrgansFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("TorsoFlying", 20,  0, random(0, 500), 2, random(0, 190))
		TNT1 AAA 0 A_CustomMissile("GoreChunk2", 20,  0, random(0, 360), 2, random(0, 90))
		TNT1 AAA 0 A_SpawnItem("Shrapnel", 0,  0, 8, 0)
		TNT1 AA 0 A_SpawnItem("Particle", 0,  0, 8, 0)
		CYBR JKL 5
		CYBR M 5 A_NoBlocking
		CYBR NO 5
		CYBR P 5
		CYBR P -1 A_BossDeath
	Stop
	}
}

///////////////////////////////////////
ACTOR XCyberDeathArm1
{
	Radius 8
	Height 8
	Mass 1
	Speed 15
	+NOBLOCKMAP
	+MISSILE
	+NOTELEPORT
	+BOUNCEONCEILINGS
	+SKYEXPLODE
	+MOVEWITHSECTOR
	-DONTSPLASH
	+THRUGHOST
	DeathSound "LILGORE3"
	Decal BloodSuperSplatter
	States
{
	Spawn:
		CYAR ABCD 3 A_CustomMissile ("FlyingBloodTrail", 0, 0, random (0, 360), 2, random (0, 360))
	Loop
	
	Death:
		TNT1 A 0 A_Playsound ("LILGORE", 1, 128, FALSE)
		TNT1 A 0 A_CustomMissile ("ThickBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		TNT1 A 0 A_CustomMissile ("UniversalBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		CYAR E -1
	Stop
	
	Crash:
		CYAR E 0 A_Playsound ("LILGORE2", 1, 128, FALSE)
	Stop
		
	Splash:
		TNT1 A 0
	Stop
	}
}

///////////////////////////////////////
ACTOR XCyberDeathArm2
{
	Radius 8
	Height 8
	Mass 1
	Speed 24
	+NOBLOCKMAP
	+MISSILE
	+NOTELEPORT
	+BOUNCEONCEILINGS
	+SKYEXPLODE
	+MOVEWITHSECTOR
	-DONTSPLASH
	+THRUGHOST
	DeathSound "LILGORE3"
	Decal BloodSuperSplatter
	States
{
	Spawn:
		HARM ABCD 3 A_CustomMissile ("FlyingBloodTrail", 0, 0, random (0, 360), 2, random (0, 360))
	Loop
	
	Death:
		TNT1 A 0 A_Playsound ("LILGORE", 1, 128, FALSE)
		TNT1 A 0 A_CustomMissile ("ThickBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		TNT1 A 0 A_CustomMissile ("UniversalBloodSlatter", 0, 0, random (0, 360), 2, random (0, 360))
		HARM E -1
	Stop
	
	Crash:
		HARM E 0 A_Playsound ("LILGORE2", 1, 128, FALSE)
	Stop
		
	Splash:
		TNT1 A 0
	Stop
	}
}