ACTOR CommanderCybruiser : DarkCybruiser
{
Health 3250
Height 64
Radius 24
Mass 1000
Speed 15
Scale 1.1
Bloodcolor Purple
Painchance "Mine", 128
PainChance 5
MeleeDamage 8
Species "Nobles"
DamageFactor "PDTBFG", 0.25
DamageFactor "PDTBFGTracer", 0.25
DamageFactor "PlayerDevBall", 0.25
DamageFactor "PlayerDevBall2", 0.15
DamageFactor "PlayerDevTracer", 0.25
DamageFactor "Legendary", 0.3
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "PlayerNemesisPlasma", 0.3
DamageFactor "TrueLegendaryDamage", 0.3
DamageFactor "TrueLegendaryPlayer", 0.3
DamageFactor "C0mm4nder", 0.0
DamageFactor "ZombieDev", 0.0
DamageFactor "GeneralTracer", 0.0
//No Infighting
Damagefactor "UBDTR", 0.0
Damagefactor "DarkbruiserBFG10K", 0.0
Damagefactor "DarkBruiserRailgunSlug", 0.0
DamageFactor "SatanGuard", 0.0
Damagefactor "Heterodox", 0.0
Damagefactor "Damned", 0.0
DamageFactor "NobleComet", 0.0
Damagefactor "CurseComet", 0.0
DamageFactor "AfritComet", 0.0
DamageFactor 0.4
DropItem "CommanderDTShotgunUpgrade" 50
DropItem "CommanderD-BFGUpgrade" 40
DropItem "RandomCommanderitem" 130 1
DropItem "GreaterDemonicEnergy", 180, 200
DropItem "BFG10K " 178 1
DropItem "Railgun " 184 1
DropItem "Demon Tech Shotgun", 116, 1
DropItem "SuperArmorSphere", 48, 1
SeeSound "cbaron/sight" 
ActiveSound "cbaron/active"
MeleeSound "baron/melee"
PainSound "blooddemon/pain"
DeathSound "monster/UBRdth"
Obituary "%o was turned into a pile of guts 'n' bones by a \ctCommander Cybruiser\c-."
HitObituary "%o became a \ctCommander Cybruiser\c-'s personal masochist bitch."
Tag "\ctCommander Cybruiser\c-"
Translation "0:255=%[0.00,0.00,0.00]:[1.35,0.00,1.65]"
+BOSSDEATH
+NOTARGET
+DONTMORPH
+FLOORCLIP
+FASTMELEE
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
+BOSS 
States
{
  Spawn:
	UBRS AA 7 A_Look
	UBRI AA 7 A_Look
	Loop 
  See:
	TNT1 A 0 A_SetTranslucent(1)
	UBRS AABB 2 A_Chase
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	UBRS CCDD 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_Jump(62,"Boost")
	Loop
  Boost:
	UBRS A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	UBRS C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	UBRS D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCybruiserGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	TNT1 A 0 A_Jump(50,"See")
	Loop
  Pause:
	TNT1 A 0
	UBRS E 10
	UBRS E 20 A_PlaySound("weapons/12gsgcock")
	Goto See
  Missile:
	TNT1 A 0
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(128,"Railgun","Rockets","HomingRockets","BFG15K")
  Normal:
	UBRS E 8 A_FaceTarget
	UBRS E 3 A_FaceTarget
	TNT1 AA 0 A_CustomMissile("PurpleZDemonTechProjectile2",40,9,Random(-5,5),CMF_TRACKOWNER)
	UBRR A 3 Bright A_PlaySound("weapons/demontechfire",CHAN_WEAPON)
	TNT1 A 0 A_Jump(6,"Pause")
	TNT1 A 0 A_SpidRefire
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	Goto Normal+1
  Railgun:
	UBRS E 2 A_FaceTarget
	UBRS E 5 A_PlaySound("weapons/rgcharge",CHAN_WEAPON)
	UBRS EEE 5 A_FaceTarget
	UBRS E 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("railgunner/chargedshot",CHAN_WEAPON)
	UBRR A 5 A_CustomMissile("CyberCommanderRail",40,9,Random(-5,5),CMF_TRACKOWNER)
	UBRS E 25
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	TNT1 A 0 A_Jump(87,"Rockets","HomingRockets","BFG15K")
	Goto See
  Rockets:
	UBRS EE 6 A_FaceTarget 
	UBRR A 8 Bright A_CustomMissile("CommanderCyberRocket",32,0,0,CMF_TRACKOWNER)
	UBRS EE 5 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberRocket",32,0,0,CMF_TRACKOWNER)
	UBRS EE 5 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberRocket",32,0,0,CMF_TRACKOWNER)
	UBRS EE 5 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberRocket",32,0,0,CMF_TRACKOWNER)
	UBRS E 12
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	TNT1 A 0 A_Jump(87,"HomingRockets","BFG15K")
	Goto See
  HomingRockets:
	UBRS EE 6 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberHomer",32,0,0,CMF_TRACKOWNER)
	UBRS EE 5 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberHomer",32,0,0,CMF_TRACKOWNER)
	UBRS EE 5 A_FaceTarget
	UBRR A 8 Bright A_CustomMissile("CommanderCyberHomer",32,0,0,CMF_TRACKOWNER)
	UBRS E 12
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	TNT1 A 0 A_Jump(87,"BFG15K")
	Goto See
  BFG15K:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON)
	UBRS EEEE 5 A_FaceTarget
	UBRS EE 5 A_FaceTarget
	UBRR A 4 Bright A_CustomMissile("Commander10K",32,0,Random(2,-2),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRR A 4 Bright A_CustomMissile("Commander10K",32,0,Random(4,-4),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRS F 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",32,0,Random(6,-6),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRS F 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",32,0,Random(6,-6),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRS F 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",32,0,Random(6,-6),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRS F 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",32,0,Random(8,-8),CMF_TRACKOWNER)
	UBRS E 4 A_FaceTarget
	UBRS F 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",32,0,Random(10,-10),CMF_TRACKOWNER)
	UBRS E 25 A_PlaySound("weapons/bfg15kcooldown",CHAN_WEAPON)
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	Goto See
  Melee:
	TNT1 A 0
	UBRS GH 4 A_FaceTarget
	UBRS I 4 A_MeleeAttack
	UBRS HG 4 A_FaceTarget
	Goto See
  Pain:
	TNT1 A 0
	TNT1 A 0 A_Jump(107,"MissilePain")
	UBRS J 8 A_Pain
	Goto See
  MissilePain:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	UBRS J 8 A_Pain
	Goto Missile
  Death:
	TNT1 A 0
	UBRD K 30 A_Scream
	TNT1 A 0 A_PlaySound("Weapons/RockLX")
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_PlaySound("Weapons/RockLX")
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_PlaySound("Weapons/RockLX")
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_PlaySound("Weapons/RockLX")
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	UBRD KK 1 Bright A_CustomMissile("PhaseCyberFlameSpawner",Random(10,50),0,random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2",0,0,random(0,360),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	UBRD LMN 5 Bright
	UBRD O 4 Bright A_Fall
	UBRD PQR 4 Bright
	TNT1 A 0 A_BossDeath
	UBRS S 3 A_KillMaster
	UBRS T 63000 CanRaise
	Stop
	}
}

ACTOR CommanderCydestroyer : CommanderCybruiser 
{
Health 3750
Speed 12
Scale 1.2
DropItem "CommanderDTShotgunUpgrade" 50
DropItem "CommanderD-BFGUpgrade" 40
DropItem "GreaterDemonicEnergy" 220 200
DropItem "RandomCommanderitem" 135 1
DropItem "BFG10K " 178 1
DropItem "Railgun " 184 1
DropItem "Demon Tech Railgun" 200
DropItem "Demon Tech Shotgun", 116, 1
DropItem "SuperArmorSphere" 60 
DropItem "CannongunSphere" 128
SeeSound "cydes/sight" 
PainSound "cydes/pain"
DeathSound "cydes/death"
Obituary "%o was dissolved into mere atoms by the \ctCommander Cydestroyer\c-."
Tag "\ctCommander Cydestroyer\c-"
-FASTMELEE
+BOSS
Translation "0:255=%[0.00,0.00,0.00]:[1.35,0.00,1.65]"
var int user_missile;
States
{
  Spawn:
	DB2S AA 7 A_Look
	DB2I AA 7 A_Look
	Loop 
  See:
	TNT1 A 0 A_SetTranslucent(1)
	DB2S AABB 2 A_Chase
	TNT1 A 0 A_ChangeFlag(NoPain,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	DB2S CCDD 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_Jump(62,"Boost")
	Loop
  Boost:
	DB2S A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	DB2S C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	DB2S D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DCydestroyerGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("BruiserStep2",0,0,2,0,0,-20)
	TNT1 A 0 A_Jump(50,"See")
	Loop
  Pause:
	TNT1 A 0
	DB2S E 10
	DB2S E 20 A_PlaySound("weapons/12gsgcock")
	Goto See
  Melee:
  Missile:
	TNT1 A 0
	TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_JumpIfCloser(150,"Flamethrowers")
	TNT1 A 0 A_Jump(128,"Rockets","DTRailgun","HomingRockets","GreenLasers","ShoulderHomingRockets","ShoulderRockets")
	TNT1 A 0 A_Jump(64,"RocketSpammingCombo","BFG15K","BFG10K","RailgunV2")
	TNT1 A 0 A_Jump(32,"AntiLegendaryBlast")
  Normal:
	DB2S E 12 A_FaceTarget
	DB2S E 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("PurpleZDemonTechProjectile2",36,20,frandom(-2,2),0)
	TNT1 A 0 A_CustomMissile("PurpleZDemonTechProjectile2",36,-20,frandom(-2,2),0)
	DB3S B 2 Bright A_PlaySoundEx("weapons/demontechfire","Weapon")
	TNT1 A 0 A_Jump(6,"Pause")
	TNT1 A 0 A_SpidRefire
	Goto Normal+1
  DTRailgun:
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	DB2S EE 10 A_FaceTarget
	DB2S E 2 A_FaceTarget
	DB2S E 1
	TNT1 A 0 A_PlaySound("weapons/dtrailf")
	TNT1 A 0 A_CustomMissile("CyberCommanderRail",36,20,0,0)
	DB3S B 5 Bright A_CustomMissile("CyberCommanderRail",36,-20,0,0)
	DB2S EE 10 A_FaceTarget
	DB2S E 2 A_FaceTarget
	DB2S E 1
	TNT1 A 0 A_PlaySound("weapons/dtrailf")
	TNT1 A 0 A_CustomMissile("CyberCommanderRail",32,20,0,0)
	DB3S B 5 Bright A_CustomMissile("CyberCommanderRail",32,-20,0,0)
	DB2S E 20
	TNT1 A 0 A_Jump(164,"Rockets","HomingRockets","BFG15K","BFG10K","ShoulderHomingRockets","ShoulderRockets")
	TNT1 A 0 A_Jump(50,"RocketSpammingCombo")
	Goto See
/*  Grenadier:
	DB2S E 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	DB3S D 0 Bright A_CustomMissile("CydestroyerGrenade",35,-20,Random(4,-4))
	DB3S D 7 Bright A_CustomMissile("CydestroyerGrenade",35,20,Random(4,-4))
	DB2S E 12 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	DB3S D 0 Bright A_CustomMissile("CydestroyerGrenade",35,-20,Random(4,-4))
	DB3S D 7 Bright A_CustomMissile("CydestroyerGrenade",35,20,Random(4,-4))
	DB2S E 12 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	DB3S D 0 Bright A_CustomMissile("CydestroyerGrenade",35,-20,Random(4,-4))
	DB3S D 7 Bright A_CustomMissile("CydestroyerGrenade",35,20,Random(4,-4))
	DB2S E 12 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	DB3S D 0 Bright A_CustomMissile("CydestroyerGrenade",35,-20,Random(4,-4))
	DB3S D 7 Bright A_CustomMissile("CydestroyerGrenade",35,20,Random(4,-4))
	DB2S E 12 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/GrenadeFire")
	DB3S D 0 Bright A_CustomMissile("CydestroyerGrenade",35,-20,Random(4,-4))
	DB3S D 7 Bright A_CustomMissile("CydestroyerGrenade",35,20,Random(4,-4))
	DB2S E 12 A_FaceTarget	
    Goto See*/
  Rockets:
	DB2S E 10 A_FaceTarget 
	DB3S B 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S E 10
	TNT1 A 0 A_Jump(128,"HomingRockets","BFG15K","BFG10K","ShoulderHomingRockets","ShoulderRockets")
	TNT1 A 0 A_Jump(32,"RocketSpammingCombo")
	Goto See
  HomingRockets:
	DB2S E 10 A_FaceTarget 
	DB3S B 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S E 10 A_FaceTarget
	DB3S B 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB3S B 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S E 10
	TNT1 A 0 A_Jump(128,"BFG15K","BFG10K","ShoulderHomingRockets","ShoulderRockets","GreenLasers")
	TNT1 A 0 A_Jump(32,"RocketSpammingCombo")
	Goto See
  GreenLasers:
	DB2S E 10 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= 35,"See")   
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_FaceTarget  
	TNT1 A 0 A_CustomMissile("PurpleZDemonTechProjectile2",66,-20,0)
	DB3S A 3 Bright A_CustomMissile("PurpleZDemonTechProjectile2",66,20,0)
	Goto GreenLasers+2  
  ShoulderHomingRockets:
	DB2S E 10 A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S E 10
	TNT1 A 0 A_Jump(128,"BFG15K","BFG10K","AntiLegendaryBlast")
	TNT1 A 0 A_Jump(32,"RocketSpammingCombo")
	Goto See
  ShoulderRockets:
	DB2S E 10 A_FaceTarget
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB3S A 1 Bright A_FaceTarget
	DB3S A 0 A_PlaySound("smissile/fire")
	DB3S A 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S E 10
	TNT1 A 0 A_Jump(128,"BFG15K","BFG10K","ShoulderHomingRockets","GreenLasers")
	TNT1 A 0 A_Jump(32,"RocketSpammingCombo")
	Goto See
  RocketSpammingCombo:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	DB2S E 2 Bright A_PlayWeaponSound("cydes/mischrg")
	DB2S E 1 Bright A_FaceTarget
	DB2S EEEEEEEEEEEEEEEEEEE 2 Bright A_FaceTarget
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("DarkShoulderRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberRocket",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberRocket",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberHomer",60,-20,0)
	DB2S F 0 Bright A_CustomMissile("CommanderCyberHomer",35,-20,0,0)
	DB2S F 1 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberHomer",60,20,0)
	DB2S F 1 Bright A_FaceTarget
	DB2S F 0 A_PlaySound("smissile/fire")
	DB2S F 6 Bright A_CustomMissile("CommanderCyberHomer",60,-20,0)
	TNT1 A 0 A_ChangeFlag("NoPain", 0)
	DB2S E 20
	TNT1 A 0 A_Jump(128,"AntiLegendaryBlast")
	Goto See
  BFG15K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	DB2S E 18 A_FaceTarget
	DB2S E 6 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 4 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderBFG9500Ball",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,Random(4,-4))
	DB2S E 20 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	TNT1 A 0 A_Jump(128,"BFG10K","RailgunV2")
	Goto See
  BFG10K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	DB2S E 18 A_FaceTarget
	DB2S E 6 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Commander10K",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DB2S E 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Commander10K",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DB2S E 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Commander10K",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DB2S E 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Commander10K",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DB2S E 8 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_CustomMissile("Commander10K",35,-20,Random(4,-4))
	DB3S B 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DB2S E 20 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	TNT1 A 0 A_Jump(128,"RailgunV2","AntiLegendaryBlast")
	Goto See
  RailgunV2:
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	DB2S EE 10 A_FaceTarget
	DB2S E 2 A_FaceTarget
	DB2S E 1
	TNT1 A 0 A_PlaySound("railgunner/chargedshot")
	TNT1 A 0 A_CustomMissile("UpCyberCommanderRail",35,-20)
	DB3S B 5 Bright A_CustomMissile("UpCyberCommanderRail",35,20)
	DB2S E 20
	Goto See
  AntiLegendaryBlast:	
    TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	DB2S E 1 Bright A_FaceTarget
	DB2S EEEEEEEEEE 2 Bright A_FaceTarget
	DB2S E 2 Bright A_PlayWeaponSound("lrball3/charge")
	DB2S EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 2 A_FaceTarget
	TNT1 A 0 A_ChangeFlag("NOPAIN", 0)
	DB2S E 10 Bright A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("lrball3/shot")
	TNT1 A 0 A_CustomMissile("PurpleBFG3500Ball",60,-20,0)  
	DB3S B 10 Bright A_CustomMissile("PurpleBFG3500Ball",60,20,0)
	DB2S E 10 A_FaceTarget
	Goto See
  Flamethrowers:
	TNT1 A 0 A_Jump(82,"Normal")
	TNT1 A 0 A_PlaySound("hectebus/flameready")
	DB2S EE 10 A_FaceTarget
	TNT1 A 0 A_PlaySound("Daedabus/Chem")
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CyberCommanderFireBeam", 35, 20, Random(6, -6), CMF_AIMOFFSET)
	DB3S B 1 Bright A_CustomMissile("CyberCommanderFireBeam", 35, -20, Random(6, -6), CMF_AIMOFFSET)
	TNT1 A 0 A_FaceTarget
	DB2S EE 12
	Goto See
  Pain:
	TNT1 A 0
	TNT1 A 0 A_Jump(107,"MissilePain")
	DB2S G 8 A_Pain
	Goto See
  MissilePain:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	DB2S G 8 A_Pain
	Goto Missile  
  Death: 
	DB2S G 20 A_Scream
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))  
	DB2S GGGG 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	DB2S HHHH 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))  
	DB2S IIIJJJ 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))  
	DB2S KKKLLL 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	DB2S M 4 Bright A_NoBlocking
	DB2S N 3 Bright 
	DB2S O 3 A_BossDeath
	DB2S P 3
	DB2S Q -1 A_KillMaster
	Stop
  Raise:
	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	DB2S QPONMLK 4
	Goto See
  }
}

Actor CommanderPaladin : DarkPaladin 
{
//Creator: Titanium + Nolram For Extra Edits
//Origin: Nexus Infinity
//Sprite: DPAL
//Title: "Commander Paladin"
Health 4000
Mass 1000
Speed 10
PainChance 5
BloodColor Purple
Painchance "Mine", 128
MeleeDamage 22
Damagefactor "Acid", 1.8
DamageFactor "PDTBFG", 0.25
DamageFactor "PDTBFGTracer", 0.25
DamageFactor "PlayerDevBall", 0.25
DamageFactor "PlayerDevBall2", 0.15
DamageFactor "PlayerDevTracer", 0.25
DamageFactor "Legendary", 0.3
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "PlayerNemesisPlasma", 0.3
DamageFactor "TrueLegendaryDamage", 0.3
DamageFactor "TrueLegendaryPlayer", 0.3
DamageFactor "C0mm4nder", 0.0
DamageFactor "ZombieDev", 0.0
DamageFactor "GeneralTracer", 0.0
//No Infighting
Damagefactor "UBDTR", 0.0
Damagefactor "DarkbruiserBFG10K", 0.0
Damagefactor "DarkBruiserRailgunSlug", 0.0
DamageFactor "SatanGuard", 0.0
Damagefactor "Heterodox", 0.0
Damagefactor "Damned", 0.0
DamageFactor "NobleComet", 0.0
Damagefactor "CurseComet", 0.0
DamageFactor "AfritComet", 0.0
DamageFactor 0.4
DropItem "CommanderDTShotgunUpgrade" 50
DropItem "CommanderD-BFGUpgrade" 40
DropItem "GreaterDemonicEnergy" 220 200
DropItem "RandomCommanderitem" 135 1
DropItem "BFG10K " 178 1
DropItem "Railgun " 184 1
DropItem "Demon Tech Railgun" 200
DropItem "Demon Tech Shotgun", 116, 1
DropItem "SuperArmorSphere" 60 
DropItem "CannongunSphere" 128
Obituary "%o was killed and scattered by a \ctCommander Paladin\c-."
HitObituary "%o almost tried to fight a \ctCommander Paladin\c-."
SeeSound "DarkPaladin/Sight" 
PainSound "DarkPaladin/Pain" 
DeathSound "DarkPaladin/Death" 
ActiveSound "DarkPaladin/Active" 
AttackSound "weapons/dtrailf"
Tag "\ctCommander Paladin\c-"
Translation "0:255=%[0.00,0.00,0.00]:[1.35,0.00,1.65]"
+BOSS
+BOSSDEATH
+NOTARGET
+DONTMORPH
+FASTMELEE
+MISSILEEVENMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
States
{ 
  Spawn:
	DPAL AA 7 A_Look
	TNT1 A 0 HealThing(20)
	Loop 
  See:
    //TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	TNT1 A 0 A_JumpIfCloser(128,"SeePanic")
    DPAL AABB 2 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	DPAL CCDD 2 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_Jump(64,"SeeShield","Boost")
	Loop
  Boost:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	DPAL A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostA",0,0)
	DPAL A 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostA",0,0)
	DPAL B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostB",0,0)
	DPAL B 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostB",0,0)
	TNT1 A 0 A_Playsound("monster/bruwlk")
	DPAL C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostC",0,0)
	DPAL C 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostC",0,0)
	DPAL D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostD",0,0)
	DPAL D 1 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostD",0,0)
	TNT1 A 0 A_Playsound("monster/bruwlk")
	TNT1 A 0 HealThing(10)
	TNT1 A 0 A_Jump(50,"See")
	Loop
  SeeShield:
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
    DPAL EE 3 A_Chase
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
    DPAL FF 3 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL GG 3 A_Chase
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL HH 3 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_Jump(96,"See")
	TNT1 A 0 A_Jump(32,"ShieldBoost")
	Loop
  ShieldBoost:
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL E 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostE",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL E 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostE",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL F 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostF",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL F 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostF",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Playsound("monster/bruwlk")
	DPAL G 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostG",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL G 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostG",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL H 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostH",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL H 2 A_Chase
	TNT1 A 0 A_Chase
	TNT1 A 0 A_SpawnItemEx("DPaladinGhostH",0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Playsound("monster/bruwlk")
	TNT1 A 0 HealThing(10)
	TNT1 A 0 A_Jump(50,"See")
	Loop
  SeePanic:
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",1)
	DPAL AABB 2 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	DPAL CCDD 2 A_Chase
	TNT1 A 0 A_PlaySound("monster/bruwlk")
	TNT1 A 0 HealThing(20)
	TNT1 A 0 A_JumpIfCloser(128,"Boost")
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	Goto See
  Melee:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL MN 6 A_FaceTarget
	DPAL O 6 A_CustomMeleeAttack(random(1,10)*6,"Paladin/Melee","Paladin/Swing")
	Goto See
  AnyMissiles:
	TNT1 A 0 A_Jump(256,"Rocket","Railgun","SuperBall","HomingRockets","ShieldAttack","BFG10K")
  Missile:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL A 1 A_JumpIfCloser(300,"Grenadier")
	TNT1 A 0 A_Jump(144,"Rocket","Railgun","DTR","HomingRockets","ShieldAttack","BFG10K")
  Normal:
	//TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 5 A_FaceTarget      
	DPAL L 4 Bright A_CustomMissile("CyberCommanderRail",38,0,random(-4,4))
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 4 A_FaceTarget 
	DPAL L 4 Bright A_CustomMissile("CyberCommanderRail",38,0,random(-4,4))
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 4 A_FaceTarget
	DPAL L 4 Bright A_CustomMissile("CyberCommanderRail",38,0,random(-4,4))
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 4 A_FaceTarget
	DPAL L 4 Bright A_CustomMissile("CyberCommanderRail",38,0,random(-4,4))
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 4 A_FaceTarget
	DPAL L 4 Bright A_CustomMissile("CyberCommanderRail",38,0,random(-4,4))
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox2",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 4 A_FaceTarget 
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(164,"Rocket","DTR")
	Goto See
  DTR:
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL I 8 A_FaceTarget
	DPAL I 3 A_FaceTarget
	TNT1 AAA 0 A_CustomMissile("PurpleZDemonTechProjectile2",36,20,frandom(-5,5),CMF_TRACKOWNER)
	DPAL J 3 Bright A_PlaySound("weapons/demontechfire",CHAN_WEAPON)
	TNT1 A 0 A_Jump(6,"Pause")
	TNT1 A 0 A_SpidRefire
	Goto DTR+2
  Pause:
	TNT1 A 0
	DPAL I 10
	DPAL I 15 A_PlaySound("weapons/12gsgcock")
	TNT1 A 0 A_Jump(164,"AnyMissiles")
	Goto See
  ShieldAttack:
	//TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SpawnItemEx("ShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL KK 5 A_FaceTarget   
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox5",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,-4)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,4)
	DPAL K 8 Bright A_Custommissile("PurpleZDemonTechProjectile2",38,0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL LLL 5 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox5",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,-4)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,4)
	DPAL K 8 Bright A_Custommissile("PurpleZDemonTechProjectile2",38,0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL LLL 5 A_FaceTarget  
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox5",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,-8)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,8)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,-4)
	DPAL K 0 A_Custommissile("PurpleZDemonTechProjectile2",38,0,4)
	DPAL K 8 Bright A_Custommissile("PurpleZDemonTechProjectile2",38,0,0)
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox3",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL LLL 5 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("DarkPaladinShieldHitbox6",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 2 A_FaceTarget	
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_Jump(128,"AnyMissiles","HomingRockets")
	Goto See
  Grenadier:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL I 8 A_FaceTarget
	DPAL J 7 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,0,0)	
	DPAL I 4 A_FaceTarget
	DPAL J 7 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,0,0)	
	DPAL I 4 A_FaceTarget
	DPAL J 7 Bright A_CustomMissile("CyberCommanderBFG9500Ball",35,20,0,0)	
	DPAL I 4 A_FaceTarget	
	Goto See	
  Rocket:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL I 12 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberRocket",35,20,0,0)	
	DPAL I 8 A_FaceTarget	
	TNT1 A 0 A_Jump(128,"HomingRockets","Railgun")
	Goto See
  HomingRockets:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	DPAL I 12 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)	
	DPAL I 8 A_FaceTarget
	DPAL J 8 Bright A_CustomMissile("CommanderCyberHomer",35,20,0,0)	
	DPAL I 8 A_FaceTarget	
	TNT1 A 0 A_Jump(128,"Railgun")
	Goto See
  Railgun:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	DPAL II 10 A_FaceTarget
	DPAL I 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/dtrailf")
	DPAL J 7 A_CustomMissile("CyberCommanderRail",36,20,0) //DarkPaladinRail does not exist
	DPAL III 4 A_FaceTarget	
	TNT1 A 0 A_Jump(32,"SuperBall","BFG10K")
	DPAL I 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/dtrailf")
	DPAL J 7 A_CustomMissile("CyberCommanderRail",36,20,0)
	DPAL III 4 A_FaceTarget	
	TNT1 A 0 A_Jump(128,"SuperBall","BFG10K")
	Goto See	
  BFG10K:
	//TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",0)
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	DPAL I 18 A_FaceTarget
	DPAL I 6 A_FaceTarget
	DPAL J 0 A_PlaySound("weapons/bfg15kfire")
	DPAL J 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))	
	DPAL I 4 A_FaceTarget
	DPAL J 0 A_PlaySound("weapons/bfg15kfire")
	DPAL J 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DPAL I 4 A_FaceTarget
	DPAL J 0 A_PlaySound("weapons/bfg15kfire")
	DPAL J 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))
	DPAL I 4 A_FaceTarget
	DPAL J 0 A_PlaySound("weapons/bfg15kfire")
	DPAL J 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))	
	DPAL I 4 A_FaceTarget
	DPAL J 0 A_PlaySound("weapons/bfg15kfire")
	DPAL J 4 Bright A_CustomMissile("Commander10K",35,20,Random(4,-4))	
	DPAL I 20 A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	Goto See
  SuperBall: 
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_PlaySound("cydes/mischrg",7,1,0,0.5)
	DPAL I 1 A_FaceTarget
	DPAL IIIIIIIIII 3 A_FaceTarget
	TNT1 A 0 A_PlaySound("lrball3/shot")
	DPAL J 7 Bright A_CustomMissile("PurpleBFG3500Ball",35,20,0)
	DPAL II 10 A_FaceTarget
	TNT1 A 0 A_PlaySound("lrball3/shot")
	DPAL J 7 Bright A_CustomMissile("PurpleBFG3500Ball",35,20,0)
	TNT1 A 0 A_ChangeFlag("NOPAIN", 0)
	DPAL II 20 A_FaceTarget
	Goto See
	/*
	Pain:
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	DPAL P 3
	DPAL P 3 A_Pain
	TNT1 A 0 A_Jump(96,"See")
	TNT1 A 0 A_SetInvulnerable
	DPAL KKKKKKKKKK 3 A_FaceTarget
	TNT1 A 0 A_Jump(160,"SeeShield")
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
	*/
  Pain:
	TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
	DPAL P 6 A_Pain
	TNT1 A 0 A_Jump(128,"ShieldUp")
	Goto See 
  ShieldUp:
	//HWAR H 0 A_SetInvulnerable
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SetUserVar("user_shield",random(0,10))
	TNT1 A 0 A_JumpIf(user_shield >= 25,"ShieldDown")	 
	TNT1 A 0 A_SetUserVar("user_shield",user_shield+1)
	TNT1 A 0 A_SpawnItemEx("ShieldHitbox4",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL K 6 A_FaceTarget
    //HWAR H 2 A_UnSetInvulnerable
    Goto ShieldUp+2
  ShieldDown:
	TNT1 A 0 A_Jump(128,"See")
	TNT1 A 0 A_Jump(160,"SeeShield","SeeShield","ShieldAttack")
	//TNT1 A 0 A_Jump(48,"ShieldAttack")
	Goto Missile
	/*
	Death:
	DPAL Q 0 A_Scream
	DPAL QQQQQQQQQQQQ 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_GiveToTarget("StrongCrateGiver",1)
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	DPAL R 7 A_SpawnItemEx("DarkPaladinShield",0,0,25,6,0,0,60,SXF_SETMASTER|SXF_CLIENTSIDE)
	DPAL S 7
	DPAL T 7 A_NoBlocking
	DPAL UV 7
	DPAL W -1 A_KillMaster
	Stop
	*/
  Death:
	DPAX A 20 A_Scream
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	DPAX B 0 A_SpawnItemEx("DarkPaladinShield",0,0,25,6,0,0,60,SXF_SETMASTER|SXF_CLIENTSIDE)
	DPAX BBBB 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	DPAX CCCC 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	DPAX DDDEEE 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("PurpleDBFGBoltExp",0,0,40)
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	DPAX FFFGGG 2 Bright A_CustomMissile("PhaseCyberFlameSpawner", Random(10,50), 0, random(0,360), 2, random(0,360))
	TNT1 AA 0 A_SpawnItemEx("PhaseCyberFlameSpawner",0,0,0,0,0,0,0,128,0)
	TNT1 AAAA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	DPAX H 4 Bright A_NoBlocking
	DPAX I 3
	DPAX J -1 A_KillMaster
	Stop
  Raise:
	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	DPAL W 7 A_KillChildren
	DPAL VUTSRQ 7
	Goto See 
	} 
}