ACTOR CursedCyberDevastatorBall : LegCybDevastatorBall
{
Damage 5000
Speed 40
+SEEKERMISSILE
States
{
Spawn:
    TNT1 A 0
	TNT1 A 0 A_Jump(128,"DTBFGSFX")
    TNT1 A 0 A_AlertMonsters
    TNT1 A 0 A_PlaySoundEx("devastator/fly","Voice",1)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
    CGS2 A 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 AAA 0 Bright A_CustomMissile("CursedCyberLiteShot",0,0,Random(0,360))
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	CGS2 B 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	CGS2 C 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 CCC 0 Bright A_CustomMissile("CursedCyberLiteShot",0,0,Random(0,360))
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_CustomMissile("CursedDevastatorTrail",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
	LGS2 D 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    Loop
DTBFGSFX:
    TNT1 A 0 A_AlertMonsters
    TNT1 A 0 A_PlaySoundEx("devastator/fly","Voice",1)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("CursedDTBFGLightning",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    CGS2 A 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 A 1 Bright A_CustomMissile("CursedDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("CursedDTBFGLightning2",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    CGS2 B 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 A 1 Bright A_CustomMissile("CursedDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("CursedDTBFGLightning",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
    CGS2 C 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 A 1 Bright A_CustomMissile("CursedDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_Explode(32,450,0)
	TNT1 A 0 A_CustomMissile("CursedCyberDevastatorBolt",6,0,random(0,359),CMF_AIMDIRECTION|CMF_TRACKOWNER,random(-40,40))
	TNT1 A 0 A_SpawnItemEx("CursedDTBFGLightning2",Random(6,-6),Random(6,-6),Random(6,-6),0,0,0,0,128)
	TNT1 A 0 A_CustomMissile("CursedDevastatorTrail",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
    CGS2 D 1 Bright A_SpawnItemEx("ProjectileTrailParticlePurple",Random(-12,12),Random(-12,12),Random(-12,12),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	CGS2 A 1 Bright A_CustomMissile("CursedDTBFGProjectileAttack",Random(-10,10),0,0,CMF_TRACKOWNER)
    Goto Spawn
Death:
    TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)
	TNT1 A 0 Radius_Quake(3,35,0,10,0)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,10,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,20,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,30,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,40,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,50,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,60,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,70,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,80,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,90,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,100,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,110,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,120,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,130,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,140,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,150,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,160,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,170,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,180,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,190,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,200,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,210,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,220,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,230,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,240,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,250,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,260,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,270,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,280,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,290,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,300,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,310,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,320,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,330,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,340,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("CursedDTBFGTracer",0,0,350,CMF_TRACKOWNER)	
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningGoldSpawner",0,0,0,0,0,0,0,128)	
	TNT1 A 0 A_Explode(80,256)
	CGS2 A 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 B 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 C 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 D 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 A 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 B 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 C 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 D 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 A 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 B 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 C 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(80,256)
	CGS2 D 6 Bright A_SpawnItemEx("CursedDevastatorShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Explode(128,1024,0)
	TNT1 A 0 A_Explode(460,640,0)
	TNT1 A 0 A_Explode(618,256)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(20,12,0,12,0)
	TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("CursedDevastatorShockWave2",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_SpawnItem("CursedDTBFGEx",0,-10)
	6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,18,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,36,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,54,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,72,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,90,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,108,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,126,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,144,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,144,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,162,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,180,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,196,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,216,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,234,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,252,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,270,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,288,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,306,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,324,2)
    6GE5 D 0 Bright A_CustomMissile("CursedCyberDevastatorBall2",0,0,342,2)
	6GE5 AAAAAABBBBBBCCCCCCDDDDDD 1 A_CustomMissile("CursedKaboomDevastator22",0,0,random(0,360),2,random(0,360))
    6GE5 EF 6 Bright
    Stop    
    }
}

ACTOR CursedCyberDevastatorBolt : LegCybDevastatorBolt
{
  Damage 150
  States
  {
  Spawn:
  	6RB1 A 0 A_Seekermissile(5,5,SMF_LOOK)
    6RB1 A 1 A_SpawnItem("CursedBoltTrail")
    Loop
  Death:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "ToasterDeath")
    TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner",0,0,0,0,0,0,0,128)
    TNT1 AAAA 0 A_CustomMissile("CursedKaboomDevastator15",0,0,random(0,360),2,random(0,360))
  ToasterDeath:
    6RB1 LMN 2
    Stop
  }
}

ACTOR CursedCyberLiteShot : LegCybLiteShot
{
   Damage 100
   States
   {
   Spawn:
      CLIT AAABBBCCC 1 Bright A_SpawnItem ("CursedLiteTrail",0,0,0)
      Loop
   Death:
      CLIT DEFGHIJKLMNO 1 Bright
      Stop
   }
}

Actor CursedDevastatorTrail : LegDevastatorTrail
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    CDCR A 4 bright A_FadeOut(0.1)
    Loop
  }
}

ACTOR CursedDTBFGProjectileAttack : LegAnniDTBFGProjectileAttack
{
Obituary "%o learned the hard way that no can beat the Cursed Annihilator."
States
{
Spawn:
    TNT1 A 0
	TNT1 AAAAA 1 A_Look
	Stop
See:
    TNT1 A 0
	TNT1 A 1 A_JumpIfCloser(1250,"Attack")
	Stop
Attack:
    TNT1 A 0
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_MissileAttack
	TNT1 A 1 A_CustomRailgun(-1,0,NONE,"Pink",1,1,2)
	Goto Death	
Death:
	TNT1 A 1
	Stop
	}
}

ACTOR CursedDTBFGLightning : DTBFGLightningGold
{
States
{
Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
	TNT1 A 0 A_Jump(256,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72)
	CRL1 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
	CRL2 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
	CRL3 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
	CRL4 ABCDEFGHIJKLMNOPQR 0 Bright A_Jump(256,"Death")
Death:
	"----" A 1 Bright
	Stop
	}
}

ACTOR CursedDTBFGLightning2 : CursedDTBFGLightning
{
Scale 0.36
}

ACTOR CursedBoltTrail : LegBoltTrail
{
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
    6RB1 GHIJK 1 Bright A_FadeOut (0.05)
    Stop
  }
}

ACTOR CursedLiteTrail : LiteTrail
{
+NOTIMEFREEZE
   States
   {
   Spawn:
      TNT1 A 0
      TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
      CLIT ABC 3 Bright
      Stop
   }
}

ACTOR CursedDTBFGTracer : LegAnniDTBFGTracer
{
   Damage 100
   States
   {
   Spawn:
      TNT1 A 15
	  Stop
   Death:
      TNT1 A 1
      Stop
   XDeath:
	  TNT1 A 0
      TNT1 A 1 A_SpawnItem("CursedBFGSpray")
      Stop
	  }
}

ACTOR CursedDevastatorShockWave : LegDevastatorShockWave
{
States
{
Spawn:
6HOG ABCDEFGHIJKLMNOPQR 1 Bright A_FadeOut(0.025)
Stop
}
}

ACTOR CursedDevastatorShockWave2 : LegDevastatorShockWave2
{
States
{
Spawn:
6HOG ABCDEFGHIJKLMNOPQR 1 Bright A_FadeOut(0.025)
Stop
}
}

ACTOR CursedKaboomDevastator15 : LegKaboomDevastator15
{
States
{
Spawn:
CDPR ABCDEFGHIJKLMNOP 1 Bright A_FadeOut(0.025)
Stop
}
}

ACTOR CursedKaboomDevastator22 : LegKaboomDevastator22
{
States
{
Spawn:
CDPR ABCDEFGHIJKLMNOP 1 Bright A_FadeOut(0.025)
Stop
}
}

ACTOR CursedCyberDevastatorBall2 : LegCybDevastatorBall2
{
   States
   {
   Spawn:
      CBA2 AB 4 Bright
      Loop
   Death:
      //LBA2 C 1 Bright
      //LBA2 C 3 Bright A_Explode
	  TNT1 A 0
	  TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	  TNT1 AAA 0 A_CustomMissile("CursedKaboom", 0, 0, random(0,360), 2, random(0,360))
	  TNT1 AAA 0 A_CustomMissile("SmokeFX4", 0, 0, random(0,360), 2, random(0,360))
      CBA2 CDE 3 Bright A_Explode
      Stop
   }
}