ACTOR PhaseExos
{
//Creator: Nemesiscaptain(uwu) and Makarov
//Origin: Infinity Gods
//Sprite: PHXS
//Title: Phase Exos
Monster
Health 6200
BloodColor "51 07 94"
WoundHealth 0
GibHealth 5000
Height 100//110
Radius 35//40
Mass 10000
Speed 40
MeleeRange 800
MinMissileChance 100//160
PainChance 10

DamageFactor "PlayerFireSword", 0.0
DamageFactor "PlayerDTRG", 0.2
DamageFactor "DTRailgun", 0.2
DamageFactor "PDTPuff", 0.2
DamageFactor "RailG", 0.2
DamageFactor "PlayerBHole", 0.25
DamageFactor "PDTBFG", 0.03
DamageFactor "PDTBFGTracer", 0.03
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "BFGSplash", 0.0
DamageFactor "BFGSpray", 0.0
DamageFactor "PlayerDevBall", 0.020
DamageFactor "PlayerDevBall2", 0.020
DamageFactor "PlayerDTBFGRailgunSlug", 0.0
DamageFactor "PlayerDevTracer", 0.0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "Extreme", 0.0
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "FreezerBurn", 0.0
DamageFactor "SuperWeapon", 0.0
DamageFactor "Fire", 0.0
DamageFactor "Crush", 0.0
DamageFactor "Suicide", 0.0
DamageFactor "Telefrag", 0.0
DamageFactor "Massacre", 0.0
DamageFactor "Ice", 0.0
DamageFactor "Melee", 0.0
DamageFactor "DBFG10K", 0.5
DamageFactor "PlayerDBFG10K", 0.5
DamageFactor "PlayerDBFG2", 0.5
DamageFactor "PlayerDBFG210K", 0.5
DamageFactor "PlayerDBFG", 0.5
DamageFactor "DBFG", 0.5
DamageFactor "DBFG2", 0.0
DamageFactor "DBFG10K2", 0.0
DamageFactor "DBFGSplash2", 0.0
DamageFactor "Normal", 0.9
DamageFactor "PlayerNemesisPlasma", 0.2
DamageFactor "Explosion", 0.1
//No infight
DamageFactor "DemolisherEx", 0.0
DamageFactor "FlamingBatshitBurglers", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0
DamageFactor "CerEnergyBall", 0.0
DamageFactor "LegMind", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "NobleCOmet", 0.0
DamageFactor "CacoComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "HellComet", 0.0
DamageFactor "Legendary1", 0.0
DamageFactor "T3rm", 0.0
DamageFactor "Terminator", 0.0
DamageFactor "", 0.0
DamageFactor "Ice", 0.0
DamageFactor "Moloch", 0.0
DamageFactor "AbyssalSatyr", 0.0
DamageFactor "SatanGuard", 0.0
DamageFactor "Hell", 0.0
DamageFactor "C0mm4nder", 0.0
DamageFactor "UpBFGSplash", 0.3
DamageFactor "Baby15K", 0.0
DamageFactor "RST", 0.0
DamageFactor "MinotaurDamage", 0.0
DamageFactor "NemesisBall", 0.5
  DamageFactor "NemesisBeam", 0.5
  DamageFactor "Hackroid", 0.5
  DamageFactor "Cursed", 0.5
  DamageFactor "TrueLegendaryDamage", 0.3
  DamageFactor "TrueLegendaryPlayer", 0.3
  DamageFactor "Normal", 0.5
  DamageFactor "PlayerNemesisPlasma", 0.2
  DamageFactor "Explosion", 0.1
  DamageFactor "DBFG10K2", 0.05
  DamageFactor "PlayerDBFG10K2", 0.05
  DamageFactor "DBFG2", 0.05
  DamageFactor "PlayerDBFG2", 0.05
  DamageFactor "DBFGSplash2", 0.0
  DamageFactor "NemesisBall", 0.5
  DamageFactor "NemesisBeam", 0.5
  DamageFactor "Hackroid", 0.5
  DamageFactor "Cursed", 0.5
  DamageFactor "TrueLegendaryDamage", 0.3
  DamageFactor "TrueLegendaryPlayer", 0.3
  DamageFactor "Normal", 0.5
  DamageFactor "PlayerNemesisPlasma", 0.2
  DamageFactor "Explosion", 0.1
  DamageFactor "DBFG10K2", 0.05
  DamageFactor "PlayerDBFG10K2", 0.05
  DamageFactor "DBFG2", 0.05
  DamageFactor "PlayerDBFG2", 0.05
Species "Cybers"
+BOSS
+NOFEAR
+BOSSDEATH
+NOICEDEATH
+DONTRIP
+NORADIUSDMG
+DONTMORPH
+TELESTOMP
+NOTELEFRAG
+NOTARGET
-NOINFIGHTING
+ALWAYSFAST
+NOBLOOD
+FLOORCLIP
+NEVERRESPAWN
+SEEINVISIBLE
+MISSILEMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
+NOTIMEFREEZE
Obituary "%o tried to log out. Phase Exos denied the request."
SEESOUND "Exos/See"
ACTIVESOUND "Exos/Active"
PAINSOUND "Exos/Pain"
DEATHSOUND "Exos/Die"
Tag "\ctPhase Exos\c-"
var int user_music;
var int user_missile;
var int user_phased;
var int user_amount;
States
     {
  Spawn:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS A 10 A_Look
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS A 10 A_Look
	Loop 
  See:
	TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1122,800)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_UnSetReflective
	PHXS A 0 A_PlaySound("ExosStep")
	PHXS AABB 3 A_Chase
	PHXS C 0 A_PlaySound("ExosStep")
	PHXS CCDD 3 A_Chase
	TNT1 A 0 A_Jump(40,"Phase")
	Loop
  Phase:
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	PHXS G 2 A_FaceTarget
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	Goto Phased
  Phased:
	PHXS AABBCCDDAABBCCDDAABBCCDDAABBCCDD 1 A_ExtChase(0,0)
  Phased2:
	PHXS AABBCCDDAABBCCDD 1 A_Chase
	TNT1 A 0 A_Jump(12,"UnPhase")
	Loop	
  UnPhase:
	TNT1 A 0 A_PlaySound("phaseimp/teleport")
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.15)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.35)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.55)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 1 A_SetTranslucent(0.75)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_SetTranslucent(1)
	PHXS G 2 A_FaceTarget		
	Goto See
  Missile:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIfTargetInLOS("ChainGuns",90,JLOSF_DEADNOJUMP|JLOSF_TARGETLOS,600,0)
	TNT1 A 0 A_Jump(256,"Rockets","Rockets2","DTBFG","PyroCannon","DBFG","MindFuckBarrage")
	TNT1 A 0 A_Jump(195, "CloneAttack")
  ChainGuns:
	PHXS EEEE 1 A_FaceTarget(45)
	TNT1 A 0 A_SetUserVar("user_missile",0)
  ChainGunsLoop:
    TNT1 A 0 A_JumpIf(user_missile >= 15,"ChainGunsEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_PlaySound("sentient/fire")
	TNT1 A 0 A_CustomMissile("CommanderExplosiveTracer",77,23,Random(5,-5),0)
	PHXS E 1 A_SpawnItemEx("PurpleShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-30,-35),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_PlaySound("sentient/fire")
	TNT1 A 0 A_CustomMissile("CommanderExplosiveTracer",77,23,Random(5,-5),0)
	PHXS E 1 A_SpawnItemEx("PurpleShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-30,-35),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_PlaySound("sentient/fire")
	TNT1 A 0 A_CustomMissile("CommanderExplosiveTracer",77,23,Random(5,-5),0)
	PHXS E 1 A_SpawnItemEx("PurpleShellCasing",35,23,76,Random(2,6),0,Random(1,3),Random(-30,-35),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  ChainGunsEnd:
    EXOS E 1 A_FaceTarget
	TNT1 A 0 A_Jump(256,"Rockets","See")
	Goto See
  Rockets:
	PHXS GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberRocket",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	Goto See
  Rockets2:
	PHXS GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	Goto See
  DTBFG:
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS H 2 Bright A_CustomMissile("UpCommanderPurpleDTBFG10KBall",79,15,0)
	Goto See
  PyroCannon:
    TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS H 2 Bright A_CustomMissile("CommanderPyroShot", 34, 0, 0)
	PHXS GGGGGGGGGGGG 2 Bright 
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  DBFG:
	TNT1 A 0 A_SetInvulnerable
	PHXS G 0 A_Facetarget
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	TNT1 A 0 Bright A_SpawnItemEx("BlueFireSpawner")
	PHXS G 0 Bright A_PlaySound ("weapons/dbfgcharge")
  DBFGCharging:
	TNT1 A 0 A_JumpIf(user_missile > 60,"DBFGFire")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	PHXS G 2 A_Facetarget
	TNT1 A 0 Bright A_SpawnItemEx("BlueFireSpawner")
	Loop
  DBFGFire:
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire", CHAN_AUTO)
	PHXS H 1 Bright A_CustomMissile("PurpleDBFGBall",79,15,0)
	PHXS G 10
	goto See
  MindFuckBarrage:
    TNT1 A 0 A_SetReflective
    TNT1 A 0 A_JumpIf(user_amount > 15,"Missile")
	TNT1 A 0 A_SetUserVar("user_amount",user_amount+1)
	TNT1 A 0 A_PlaySound("Exos/See",2)
	TNT1 A 0 A_PlaySound("weapons/nuclearmissilecharge2")
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("phasenightmareball",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PhaseExileFamineBall",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EE 2 A_Facetarget
	TNT1 A 0 A_CustomMissile("PArchonComet2",48,0,random(-8,8))
	TNT1 A 0 A_SpawnItemEx("PhaseTermPowerLineSpawner")
	PHXS EEEEEEE 2 A_Facetarget
	PHXS F 6 Bright A_CustomMissile("CommanderPyroShot",48,17,0)
	PHXS EEEE 2 Bright A_Facetarget
	PHXS F 5 Bright A_CustomMissile("PurpleDBFGBall",48,17,0)
	TNT1 A 0 A_UnSetReflective
	PHXS EEEEEEEEEEEEEE 2 Bright 
	Goto See
  CloneAttack:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	PHXS G 3 Bright A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_Jump(256,"BFGEClones","MissileEClones","PyroEClones")
  BFGEClones:
	TNT1 AAA 0 A_SpawnItemEx("FakePhaseExos1",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION | SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto DTBFG
  MissileEClones:
	TNT1 AAA 0 A_SpawnItemEx("FakePhaseExos2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION | SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto Rockets2
  PyroEClones:
	TNT1 AAA 0 A_SpawnItemEx("FakePhaseExos3",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION | SXF_TRANSFERPOINTERS)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto PyroCannon
  Pain:
    PHXS I 8 A_Pain
  PainMissile:
    PHXS I 10 Bright A_Pain
  Goto Missile
Death:
	PHXS I 4 A_Scream
	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("BigPurpleBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))	
	PHXS JJJKKK 5 Bright A_CustomMissile("PurpleKaboom", random(10,60), random(30,-30), 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("BigPurpleBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	PHXS LLLMMM 5 Bright A_CustomMissile("PurpleKaboom", random(10,60), random(30,-30), 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("BigPurpleBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	PHXS NNNOOO 5 Bright A_CustomMissile("PurpleKaboom", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("BarrelBlackHoleSpawn",0,0,0,0,0,0,0,SXF_SETMASTER,0)
	TNT1 A 1 Bright A_SpawnItemEx("PBlackHoleSpawnDark",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Devastator",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("BFG10K ",0,0,64,random(0,8),0,2,random(1,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HomingRocketLauncher",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 AAAA 0 A_DropItem("LegendaryRune",1,192)
	PHXS PQ 4
	PHXS R -1 A_Killmaster
	Stop
  	}
}

Actor INFPhaseExos : PhaseExos
{
Tag "\ctPhase Exos\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier2SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS A 10 A_Look
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS A 10 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
	}
}

Actor FakePhaseExos1 : PhaseExos
{
Health 200
+NOTARGET
-COUNTKILL
+THRUSPECIES
-BOSS
SeeSound " "
DeathSound " "
Tag "\ctPhase Exos\c-"
States
  {
  Spawn:
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto Missile
  See:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_UnSetReflective
	PHXS A 0 A_PlaySound("ExosStep")
	PHXS AABB 3 A_Chase
	PHXS C 0 A_PlaySound("ExosStep")
	PHXS CCDD 3 A_Chase
	Loop
  Missile:
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS H 2 Bright A_CustomMissile("UpCommanderPurpleDTBFG10KBall",79,15,0)
	TNT1 A 0 A_Jump(64,"Done")
	Goto Done
  Done:
	PHXS G 20
	TNT1 A 0 A_Die
	Goto See
  Death:
	PHXS I 5
	TNT1 AAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))	
	TNT1 AAAAA 0 A_CustomMissile("PurpleKaboom13", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	PHXS I 1 A_FadeOut(0.1,1)
	Wait
	}
}

Actor FakePhaseExos2 : FakePhaseExos1
{
States
  {
  Spawn:
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto Missile
  See:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_UnSetReflective
	PHXS A 0 A_PlaySound("ExosStep")
	PHXS AABB 3 A_Chase
	PHXS C 0 A_PlaySound("ExosStep")
	PHXS CCDD 3 A_Chase
	Loop
  Missile:
	PHXS GGGG 1 A_FaceTarget(45)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS H 4 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,-15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_CustomMissile("NewPhaseCyberHomer",79,15,0,CMF_TRACKOWNER)
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	PHXS G 4 Bright
	TNT1 A 0 A_SpawnItem("PhaseCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(64,"Done")
	Goto Done
  Done:
	PHXS G 20
	TNT1 A 0 A_Die
	Goto See
  Death:
	PHXS I 5
	TNT1 AAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))	
	TNT1 AAAAA 0 A_CustomMissile("PurpleKaboom13", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	PHXS I 1 A_FadeOut(0.1,1)
	Wait
	}
}

Actor FakePhaseExos3 : FakePhaseExos1
{
States
  {
  Spawn:
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_Wander
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_Wander
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	TNT1 A 0 A_Hoof
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS A 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS B 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS C 2 A_ExtChase(0,0)
	TNT1 A 0 A_Metal
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	PHXS D 2 A_ExtChase(0,0)
	TNT1 A 0 A_SpawnItemEx("PhaseExosGhost",0,0,0,0)
	Goto Missile
  See:
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_UnSetReflective
	PHXS A 0 A_PlaySound("ExosStep")
	PHXS AABB 3 A_Chase
	PHXS C 0 A_PlaySound("ExosStep")
	PHXS CCDD 3 A_Chase
	Loop
  Missile:
	TNT1 A 0 A_PlaySound("Cardinal/9k")
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget
	PHXS GG 2 Bright A_FaceTarget	
	PHXS GG 2 Bright A_FaceTarget
	PHXS H 2 Bright A_CustomMissile("CommanderPyroShot", 34, 0, 0)
	PHXS GGGGGGGGGGGG 2 Bright 
	TNT1 A 0 A_Jump(64,"Done")
	Goto Done
  Done:
	PHXS G 20
	TNT1 A 0 A_Die
	Goto See
  Death:
	PHXS I 5
	TNT1 AAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))	
	TNT1 AAAAA 0 A_CustomMissile("PurpleKaboom13", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	PHXS I 1 A_FadeOut(0.1,1)
	Wait
	}
}

Actor PhaseExosGhost : TerminatorGhost
{
States
  {
  Spawn:
    PHXS A 2 A_FadeOut(0.18)
    Loop
  }
}