Actor DarkTrooperPhase3 : Cyberdemon
{
Health 4000
Speed 16
PainChance 4
Scale 1.1
Species "Cyber"
DamageFactor 0.18
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.3
DamageFactor "LegendaryPlayer", 0.3
   DamageFactor "PlayerBHole", 0.0
   DamageFactor "BFGSplash", 0.25
   DamageFactor "BFGSpray", 0.25
   DamageFactor "PlayerDevBall", 0.025
   DamageFactor "PlayerDevBall2", 0.025
   DamageFactor "PlayerDTBFGRailgunSlug", 0.025
   DamageFactor "PlayerDevTracer", 0.025
   DamageFactor "PlayerDTRG", 0.2
   DamageFactor "Railg", 0.5
   DamageFactor "DemolisherEx", 0.0
   DamageFactor "DarkDemoEx", 0.0
   DamageFactor "CerChainguns", 0.0
   DamageFactor "CerEnergyBall", 0.0
   DamageFactor "LegMind", 0.0
   DamageFactor "SuperWeapon", 0.0
   DamageFactor "Term", 0.0
   DamageFactor "CDTBFG", 0.0
   DamageFactor "DBFG10K", 0
   DamageFactor "PlayerDBFG10K", 0
   DamageFactor "DBFG", 0
   DamageFactor "DBFG210K", 0
   DamageFactor "PlayerDBFG210K", 0
   DamageFactor "PlayerDBFG", 0
   DamageFactor "DBFG2Splash", 0
   DamageFactor "UltimateLegendary", 0.0
   DamageFactor "BeheComet", 0.0
   DamageFactor "Extreme", 0.0
   Damagefactor "Baby15K", 0.0
   DamageFactor "CacoComet", 0.0
   DamageFactor "CadaverRocket", 0.0
   DamageFactor "NobleCOmet", 0.0
   DamageFactor "HFCyber", 0.0
   DamageFactor "DBFG10K2", 0.0
   DamageFactor "PlayerDBFG10K2", 0.0
   DamageFactor "DBFG2", 0.0
   DamageFactor "PlayerDBFG2", 0.0
   DamageFactor "PyroShot", 0.0
   DamageFactor "PlayerPyro", 0.0
   DamageFactor "PDTPuff", 0.0
SeeSound ""
PainSound "DarkTrooperPhase3/Pain"
DeathSound "DarkTrooperPhase3/Death"
Obituary "No one could their ground against the Dark Trooper Phase 3."
Tag "\c[a4]Dark Trooper Phase 3\c-"
var int user_music;
States
{
  Spawn:
	TNT1 A 0
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_ChangeFlag("Float",0)
	TNT1 A 0 A_ChangeFlag("NoGravity",0)
	TNT1 A 0 A_TakeInventory("FlightToken",0)
    DTP3 A 1 A_LookEx(LOF_FULLVOLSEESOUND,0,0,0,360,"See2")
	Loop
  See2:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1839)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_PlaySound("DarkTrooperPhase3/Prepare",2,1.0,0,ATTN_NONE)
    DTP3 A 120 A_FaceTarget 
	DTP3 A 120 A_FaceTarget 
	TNT1 A 0 A_PlaySound("DarkTrooperPhase3/See",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    Goto See
  See:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	Goto TakeOff
	DTP3 B 3 A_Chase
	DTP3 C 0 A_playsoundEX("Terminator/terstepA","SoundSlot6")
	DTP3 C 3 A_Chase
	TNT1 A 0 A_JumpIf(z - floorz > 45, "Fly")//Lets it fly if it falls off a high enough ledge.
	DTP3 A 0 A_Jump(5,"TakeOff")
	DTP3 D 3 A_Chase
	TNT1 A 0 A_JumpIf(z - floorz > 45, "Fly")
	DTP3 A 0 A_Jump(5,"TakeOff")
	DTP3 E 3 A_Chase
	TNT1 A 0 A_JumpIf(z - floorz > 45, "Fly")
	DTP3 A 0 A_Jump(5,"TakeOff")
	DTP3 D 0 A_playsoundEX("Terminator/terstepA","SoundSlot6")
	DTP3 D 3 A_Chase
	TNT1 A 0 A_JumpIf(z - floorz > 45, "Fly")
	DTP3 A 0 A_Jump(5,"TakeOff")
	DTP3 C 3 A_Chase
	TNT1 A 0 A_JumpIf(z - floorz > 45, "Fly")
	Goto See
  TakeOff: //Thanks for the code, Ghastly! ^^
    DTP3 A 3
    DTP3 A 0 A_ChangeFlag("NoPain", 1)
    DTP3 A 3 ThrustThingZ(0, 42, 0, 1)
    DTP3 A 0 A_ChangeFlag(Float, 1)
    DTP3 A 0 A_ChangeFlag(NoGravity, 1)
    DTP3 A 3 
    DTP3 A 0 A_Stop
    DTP3 A 0 A_PlaySound("DarkTrooper/flight")
    DTP3 A 0 A_GiveInventory("FlightToken", 1)
    DTP3 A 0 A_ChangeFlag("NoPain", 0)
    Goto Fly
  Land:
    DTP3 A 0 A_ChangeFlag("NoPain", 1)
    DTP3 A 0 A_ChangeFlag("Float", 0)
    DTP3 A 0 A_ChangeFlag("NoGravity", 0)
    DTP3 A 0 A_TakeInventory("FlightToken", 0)
    DTP3 A 3 A_CheckFloor(1)
    Goto Land+4
	DTP3 A 0 A_ChangeFlag("NoPain", 0)
    TNT1 A 0 A_StopSoundEx("SoundSlot6")
    Goto See
  Fly:
	DTP3 A 1 Bright A_PlaySoundEx("DarkTrooper/flight","SoundSlot6",1,0)
	DTP3 A 3 Bright A_Chase ("", "Missile", 1)
	TNT1 A 0 A_JumpIf(z - floorz < 45, "Land")	//If low enough, it lands safely on the ground.
	TNT1 A 0 A_SpawnItem("BlueFireSpawner",0,0,0,0)
	DTP3 A 0 A_Jump(1,"Land")
	DTP3 A 3 Bright A_Chase ("", "Missile")
	TNT1 A 0 A_JumpIf(z - floorz < 45, "Land")
	TNT1 A 0 A_SpawnItem("BlueFireSpawner",0,0,0,0)
	DTP3 A 0 A_Jump(1,"Land")
	DTP3 A 3 Bright A_Chase ("", "Missile", 1)
	TNT1 A 0 A_JumpIf(z - floorz < 45, "Land")
	TNT1 A 0 A_SpawnItem("BlueFireSpawner",0,0,0,0)
	DTP3 A 0 A_Jump(1,"Land")
	DTP3 A 3 Bright A_Chase ("", "Missile")
	TNT1 A 0 A_JumpIf(z - floorz < 45, "Land")
	TNT1 A 0 A_SpawnItem("BlueFireSpawner",0,0,0,0)
	DTP3 A 0 A_Jump(1,"Land")
	Loop
  Missile:
    TNT1 A 0 A_Jump(130,"BFG10K")
	TNT1 A 0 A_Jump(55,"LegendaryTech")
	TNT1 A 0 A_Jump(45,"HellStorm")
	TNT1 A 0 A_Jump(60,"RocketSpew")
  BFG10K:
	  TNT1 A 0 A_SetInvulnerable
	  TNT1 A 0 A_PlaySound("Weapons/dbfgcharge2",1)
	  DTP3 HH 2 Bright A_FaceTarget
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 I 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	
	  DTP3 H 2 Bright A_FaceTarget
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 I 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 G 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget
	  TNT1 A 0 Bright A_PlayWeaponSound("Weapons/dbfgfire2")
      DTP3 I 2 Bright A_CustomMissile("T3DBFG10kShot", 64, -40, Random(4, -4))
	  TNT1 A 0 A_UnsetInvulnerable
	  TNT1 A 0 A_Jump(128,"LegendaryTech","HellStorm")
      Goto See
  LegendaryTech:
	  TNT1 A 0 A_SetInvulnerable
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	
	  DTP3 H 2 Bright A_FaceTarget
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
	  DTP3 H 2 Bright A_FaceTarget	  
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))	  
      DTP3 H 2 Bright A_FaceTarget
	  TNT1 A 0 A_PlaySound("Laser/Beam",CHAN_NOPAUSE)
      DTP3 G 2 Bright A_CustomMissile("LaserBeam", 64, -40, Random(4, -4))
	  TNT1 A 0 A_UnsetInvulnerable
	  TNT1 A 0 A_Jump(128,"BFG10K","HellStorm")
      Goto See
  RocketSpew:
	DTP3 IJK 6 A_FaceTarget
	DTP3 L 4 Bright A_FaceTarget
	PTRM F 0 A_PlayWeaponSound("star/fire")
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 8 A_FaceTarget
	PTRM F 0 A_PlayWeaponSound("star/fire")
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BlueCardinalRocket",79,-40,random(-4,4))
	DTP3 L 1 Bright A_CustomMissile("BCyberLordRocket",79,40,random(-4,4))
	DTP3 L 8	
	TNT1 A 0 A_Jump(128,"BFG10K","HellStorm")
	Goto See
  HellStorm:
	DTP3 IJK 6 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,-40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,-40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,-40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,-40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("M2HellStormBomb",64,40,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	DTP3 L 4 Bright
	TNT1 A 0 A_SpawnItemEx("BlueFireSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(95,"RocketSpew")
	Goto See
  Pain:
    DTP3 H 6
    DTP3 H 6 A_Pain
	TNT1 A 0 A_JumpIfInventory("FlightToken", 1, "Fly")
    Goto See
  Death:
    DTP3 A 0 A_StopSoundEx("SoundSlot6")
	TNT1 A 0
	TNT1 A 0 A_Scream
	DTP3 H 6 A_SpawnItemEx("DarkInquisitorGibber",0,0,0,0,0,0,0,128,0)
	DTP3 M 6
	DTP3 N 6 A_NoBlocking
	TNT1 A 0 A_SpawnItem("BodyCrash",0,0,0,0)
	DTP3 O -1
	Stop
    }
}

Actor INFDarkTrooperPhase3 : DarkTrooperPhase3
{
Tag "\c[a4]Dark Trooper Phase 3\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItem("BlueFireSpawner",0,0,0,0)
	DTP3 A 4 A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}