ACTOR ClockworkBanelord : ClockworkCyberdemon
{
//Creator: Titanium
//Origin: Nexus Infinity
//Sprite: IBNE
//Title: "Clockwork Banelord"
Health 9500
Mass 15000
Speed 18
Scale 1
Obituary "The Clockwork Banelord litteraly exploded the entire corpse of %o."
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+NORADIUSDMG
+DROPOFF
+DONTRIP
+NOFEAR
Species "Cybers"
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.2
DamageFactor "PlayerNemesisPlasma", 0.75
DamageFactor "BFG9500Ball", 0.25
DamageFactor "BFGSplash", 0.25
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "PlayerDevBall", 0.15
DamageFactor "PlayerDevTracer", 0.15
DamageFactor "PyroShot", 0.1
DamageFactor "PlayerPyro", 0.30
DamageFactor "Hell", 0.0 
DamageFactor "MechStep", 0.0
Damagefactor "Acid", 0.1
Damagefactor "Fire", 0.1
Damagefactor "Electric", 0.01
Damagefactor "Disintegrate", 0.001
Damagefactor "Poison", 0.0
Damagefactor "PoisonCloud", 0.0
Damagefactor "Explosion", 0.3
Damagefactor "Mine", 0.3
DamageFactor "Extreme", 0.0
DamageFactor "Player", 0.1
DamageFactor 0.5
MaxStepHeight 32
MaxDropOffHeight 32
RadiusDamageFactor 0.5
//var int user_script;
//var int user_delay;
var int user_music;
var int user_fusion;
var int user_tank;
DropItem "BossLifeEssence" 256 
DropItem "BossArmorBonusMax" 256 
DropItem "GreaterDemonicEnergy" 256
DropItem "DemonicEnergy" 256
DropItem "DemonicChalice" 256 1
DropItem "SkullOfPower" 256 1
DropItem "Demon Tech Devastator" 256 1
DropItem "Demon Tech BFG10K" 256 1
DropItem "Explosive Minigun" 256 1
DropItem "BulletBox" 64
Tag "\c[i7]Clockwork Banelord\c-"
States
{
  Spawn:
    IBNE A 10 A_Look
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2076)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_Playsound("monsters/clhoof")
	IBNE A 2 A_chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostA",0,0,0,0,0,0,0,128)
	IBNE A 2 A_Chase	
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostA",0,0,0,0,0,0,0,128)
	IBNE B 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostB",0,0,0,0,0,0,0,128)
	IBNE B 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostB",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_Playsound("monsters/clhoof")
	IBNE C 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostC",0,0,0,0,0,0,0,128)
	IBNE C 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostC",0,0,0,0,0,0,0,128)
	IBNE D 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostD",0,0,0,0,0,0,0,128)
	IBNE D 2 A_Chase
	TNT1 A 0 A_SpawnItemEx("InsaneBaneGhostD",0,0,0,0,0,0,0,128)
	Loop 
  Missile:
	TNT1 A 0 A_JumpIfHealthLower(7000,"Missile2")
    TNT1 A 0 A_Jump(128,"ExpMinigun","ExpMinigunRocket","HeavyRockets","BFG4700")
	TNT1 A 0 A_Jump(96,"Railgun","ExpRailgun","M79Grenade","RPGRocket","ExpMinigunMRLRockets","ExpMinigunHeavyRockets","ExpMinigunBFG4700")
	TNT1 A 0 A_Jump(64,"BFG3500","DTBFG10K","Devastator")
	TNT1 A 0 A_Jump(32,"Nuke","TankCannon")
	Goto Normal
  Missile2:
	TNT1 A 0 A_JumpIfHealthLower(3000,"Missile3")
    TNT1 A 0 A_Jump(128,"Normal","HeavyRockets","BFG4700","ExpMinigunMRLRockets","ExpMinigunHeavyRockets","ExpMinigunBFG4700")
	TNT1 A 0 A_Jump(96,"Railgun","ExpRailgun","M79Grenade","RPGRocket","BFG10K")
	TNT1 A 0 A_Jump(64,"BFG3500","DTBFG10K","Devastator","TankCannon")
	TNT1 A 0 A_Jump(42,"Nuke")
	Goto ExpMinigunRocket
  Missile3:
    TNT1 A 0 A_Jump(128,"ExpMinigunHeavyRockets","ExpMinigunBFG4700","Railgun")
	TNT1 A 0 A_Jump(96,"Nuke","ExpRailgun","M79Grenade","RPGRocket","BFG10K")
	TNT1 A 0 A_Jump(72,"BFG3500","DTBFG10K","Devastator","TankCannon")
	Goto ExpMinigunRocket
   Normal:
    IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberInfernalRocket",60,-32,0)
	TNT1 A 0 A_Jump(128,"MRLFastRockets")
	TNT1 A 0 A_Jump(96,"M79Grenade","RPGRocket")
    Goto See
  MRLFastRockets:
    IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	IBNE E 6 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    IBNE H 6 Bright A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	TNT1 A 0 A_Jump(110,"M79Grenade","RPGRocket")
    Goto See
  ExpMinigun:
    IBNE E 8 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_CposRefire
	TNT1 A 0 A_Jump(32,"Missile","See","ExpMinigunRocket","ExpMinigunMRLRockets","ExpMinigunHeavyRockets","ExpMinigunBFG4700")
    Goto ExpMinigun+1
  ExpMinigunRocket:
    IBNE E 6 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberInfernalRocket",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberInfernalRocket",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberInfernalRocket",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_CposRefire
	TNT1 A 0 A_Jump(32,"Missile","See","ExpMinigun","ExpMinigunMRLRockets","ExpMinigunHeavyRockets","ExpMinigunBFG4700")
    Goto ExpMinigunRocket+1
  ExpMinigunMRLRockets:
    IBNE E 8 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)		TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberMRLFastRocket",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberMRLFastRocket",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_CposRefire
	TNT1 A 0 A_Jump(32,"Missile","See","ExpMinigunHeavyRockets","ExpMinigunBFG4700")
    Goto ExpMinigunMRLRockets+1
  BFG9K:
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	IBNE LMNOP 5 Bright A_FaceTarget
	IBNE Q 0 A_CustomMissile("SentientBFG9500Ball",96,15,-4)
	IBNE Q 3 Bright A_FaceTarget
	IBNE Q 0 A_CustomMissile("SentientBFG9500Ball",96,15,0)
	IBNE Q 3 Bright A_FaceTarget
	IBNE Q 0 A_CustomMissile("SentientBFG9500Ball",96,15,4)
	IBNE Q 3 Bright A_FaceTarget
	IBNE RR 4 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	IBNE STUVW 5 Bright A_FaceTarget
	IBNE X 0 A_CustomMissile("SentientBFG9500Ball",96,-15,4)
	IBNE X 3 Bright A_FaceTarget
	IBNE X 0 A_CustomMissile("SentientBFG9500Ball",96,-15,0)
	IBNE X 3 Bright A_FaceTarget
	IBNE X 0 A_CustomMissile("SentientBFG9500Ball",96,-15,-4)
	IBNE X 3 Bright A_FaceTarget
	IBNE YY 4 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_Jump(96,"BFG10KShotgun")
	Goto See
  BFG10KShotgun: // "Plasma Shotgun"
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Cardinal/9k")
	IBNE LMNOP 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	IBNE QQQQQQ 0 A_CustomMissile("Cardinal10k",96,15,Random(-5, 5))
	IBNE QQRR 5 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("Cardinal/9k")
	IBNE STUVW 4 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	IBNE XXXXXX 0 A_CustomMissile("Cardinal10k",96,-15,Random(-5, 5))
	IBNE XXYY 5 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	Goto See
  BFG10K:
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	IBNE E 18 A_FaceTarget
	IBNE E 6 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE H 4 Bright A_CustomMissile("Cardinal10K",60,-32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE F 4 Bright A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE H 4 Bright A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE H 4 Bright A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE H 4 Bright A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
    TNT1 A 0 A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE H 4 Bright A_CustomMissile("Cardinal10K",60,32,random(-4,4))
    IBNE E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/bfg15kfire")
	TNT1 A 0 A_Jump(128,"DTBFG10K","Devastator")
	Goto See
  DTBFG10K:
	IBNE E 0 A_PlaySound("Cardinal/9k")
	IBNE EEEEEEEEEEEEHH 2 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalDTBFG10KBall",60,32,0)
    IBNE H 10 Bright A_CustomMissile("CardinalDTBFG10KBall",60,-32,0) 
    IBNE EE 15 A_FaceTarget
	TNT1 A 0 A_Jump(48,"Devastator")
	IBNE E 0 A_PlaySound("Cardinal/9k")
	IBNE EEEEEEEEEEEEHH 2 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalDTBFG10KBall",60,32,0)
    IBNE H 10 Bright A_CustomMissile("CardinalDTBFG10KBall",60,-32,0) 
    IBNE EE 15 A_FaceTarget
	TNT1 A 0 A_Jump(64,"Devastator")
	IBNE E 0 A_PlaySound("Cardinal/9k")
	IBNE EEEEEEEEEEEEHH 2 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalDTBFG10KBall",60,32,0)
    IBNE H 10 Bright A_CustomMissile("CardinalDTBFG10KBall",60,-32,0) 
    IBNE EE 15 A_FaceTarget
	TNT1 A 0 A_Jump(128,"Devastator")
    Goto See
  Devastator:
	TNT1 A 0 A_PlaySound("devastator/charge") 
	IBNE EEEEEEEEEEEEEEEEEE 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("devastator/fire")
	IBNE H 0 A_CustomMissile("FusionDevastatorBall",60,32,0)
	IBNE H 4 Bright A_CustomMissile("FusionDevastatorBall",60,-32,0)
	IBNE HH 4 Bright
	IBNE EE 4
	Goto see
  Railgun:
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	IBNE EEEEEEEEEE 5 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalRail",60,32,0)
	IBNE H 8 Bright A_CustomMissile("CardinalRail",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalRail",60,32,0)
	IBNE H 8 Bright A_CustomMissile("CardinalRail",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalRail",60,32,0)
	IBNE H 8 Bright A_CustomMissile("CardinalRail",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalRail",60,32,0)
	IBNE H 8 Bright A_CustomMissile("CardinalRail",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CardinalRail",60,32,0)
	IBNE H 8 Bright A_CustomMissile("CardinalRail",60,-32,0)
	IBNE E 8 A_FaceTarget
	TNT1 A 0 A_Jump(128,"Missile","BFG10K","BFG4700")
	IBNE E 10
	Goto See
  ExpRailgun:
	TNT1 A 0 A_PlaySound("ExplosiveRailgun/Charge")
    IBNE EE 20 A_FaceTarget
	TNT1 A 0 A_PlaySound("ExplosiveRailgun/Fire")
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,32)
	IBNE H 0 A_CustomMissile("CardinalRail",60,32)
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,-32)
	IBNE H 5 Bright A_CustomMissile("CardinalRail",60,-32)
	IBNE EE 9 A_FaceTarget
	TNT1 A 0 A_PlaySound("ExplosiveRailgun/Fire")
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,32)
	IBNE H 0 A_CustomMissile("CardinalRail",60,32)
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,-32)
	IBNE H 5 Bright A_CustomMissile("CardinalRail",60,-32)
	IBNE EE 9 A_FaceTarget
	TNT1 A 0 A_PlaySound("ExplosiveRailgun/Fire")
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,32)
	IBNE H 0 A_CustomMissile("CardinalRail",60,32)
	TNT1 A 0 A_CustomMissile("CyberExplosiveRailgunImpact",60,-32)
	IBNE H 5 Bright A_CustomMissile("CardinalRail",60,-32)
	TNT1 A 0 A_Jump(128,"Missile","BFG10K","BFG4700")
	IBNE E 10
	Goto See
  BFG3500:	
	TNT1 A 0 A_Jump(128,"BFG3500Alt")
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("bfg3500/fire")
	IBNE LMNOP 7 Bright A_FaceTarget
	IBNE Q 0 A_CustomMissile("CyberBFG3500Ball",65,15,0)
	IBNE QQRR 5 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("bfg3500/fire")
	IBNE STUVW 7 Bright A_FaceTarget
    IBNE X 0 A_CustomMissile("CyberBFG3500Ball",65,-15,0)
	IBNE XXYY 5 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	Goto See
  BFG3500Alt:	
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("bfg3500/fire")
	IBNE STUVW 7 Bright A_FaceTarget
    IBNE X 0 A_CustomMissile("CyberBFG3500Ball",65,-15,0)
	IBNE XXYY 5 Bright A_FaceTarget
	IBNE KK 4 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("bfg3500/fire")
	IBNE LMNOP 7 Bright A_FaceTarget
	IBNE Q 0 A_CustomMissile("CyberBFG3500Ball",65,15,0)
	IBNE QQRR 5 Bright A_FaceTarget
	Goto See
  M79Grenade:
    IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("M79/Fire")
	IBNE H 0 A_CustomMissile("CyberM79Grenade",60,32,Random(-2, 2))
    IBNE H 8 Bright A_CustomMissile("CyberM79Grenade",60,-32,Random(-2, 2))
	IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("M79/Fire")
	IBNE H 0 A_CustomMissile("CyberM79Grenade",60,32,Random(-2, 2))
    IBNE H 8 Bright A_CustomMissile("CyberM79Grenade",60,-32,Random(-2, 2))
	IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_Jump(128,"HeavyRockets","BFG4700","BFG10K")
    Goto See
  RPGRocket:
    IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("rpg/fire")
	IBNE H 0 A_CustomMissile("CyberRPGRocket",60,32,Random(-2, 2))
    IBNE H 8 Bright A_CustomMissile("CyberRPGRocket",60,-32,Random(-2, 2))
	IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("rpg/fire")
	IBNE H 0 A_CustomMissile("CyberRPGRocket",60,32,Random(-2, 2))
    IBNE H 8 Bright A_CustomMissile("CyberRPGRocket",60,-32,Random(-2, 2))
	IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("rpg/fire")
	IBNE H 0 A_CustomMissile("CyberRPGRocket",60,32,Random(-2, 2))
    IBNE H 8 Bright A_CustomMissile("CyberRPGRocket",60,-32,Random(-2, 2))
	IBNE EEEEE 8 A_FaceTarget
	TNT1 A 0 A_Jump(128,"HeavyRockets","BFG4700","BFG10K")
    Goto See
  TankCannon:
	TNT1 A 0 A_JumpIf(user_tank > 3,"Missile")
	IBNE E 0 A_PlaySound("TankCannon/load",CHAN_WEAPON,1,0,0.5)
	IBNE EEEEEEE 8 A_FaceTarget
	TNT1 A 0 A_PlaySoundEx("tank/fire","Voice")
	IBNE H 0 A_CustomMissile("CyberTankShot",60,32,Random(-2, 2))
    IBNE H 16 Bright A_CustomMissile("CyberTankShot",60,-32,Random(-2, 2))
	IBNE E 4 A_FaceTarget
	IBNE EEEE 8 A_FaceTarget
	TNT1 A 0 A_SetUserVar("user_tank",user_tank+1)
	TNT1 A 0 A_Jump(128,"DTBFG10K","Devastator")
	Goto See
  Nuke:
	TNT1 A 0 A_JumpIf(user_fusion > 0,"Missile")
	TNT1 A 0 A_PlaySound("weapons/nuclearmissilecharge2")
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)		
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	IBNE E 3 Bright A_SpawnItem("EnragedLegendaryCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("efg/nuke",6,1,0,ATTN_NONE)
	IBNE H 0 A_CustomMissile("CyberEFGFusionNuke",60,32,0)
    IBNE H 8 Bright A_CustomMissile("CyberEFGFusionNuke",60,-32,0)
	TNT1 A 0 A_SetUserVar("user_fusion",1)
	IBNE E 8 A_FaceTarget
	Goto See
  HeavyRockets:
    IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberHeavyRocket",60,32,0)
    IBNE H 8 Bright A_CustomMissile("CyberHeavyRocket",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberHeavyRocket",60,32,0)
    IBNE H 8 Bright A_CustomMissile("CyberHeavyRocket",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberHeavyRocket",60,32,0)
    IBNE H 8 Bright A_CustomMissile("CyberHeavyRocket",60,-32,0)
	IBNE E 8 A_FaceTarget
	IBNE H 0 A_CustomMissile("CyberHeavyRocket",60,32,0)
    IBNE H 8 Bright A_CustomMissile("CyberHeavyRocket",60,-32,0)
	IBNE E 8 A_FaceTarget
	TNT1 A 0 A_Jump(110,"Railgun","ExpRailgun")
    Goto See
  ExpMinigunHeavyRockets:
    IBNE E 8 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberHeavyRocket",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberHeavyRocket",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_CposRefire
	TNT1 A 0 A_Jump(32,"Missile","See","ExpMinigun","ExpMinigunRocket","ExpMinigunMRLRockets")
    Goto ExpMinigunHeavyRockets+1
  BFG4700:
	IBNE EEE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	IBNE EE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	IBNE EE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	IBNE EE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	IBNE EE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	IBNE EE 4 A_FaceTarget
	IBNE F 0 A_PlayWeaponSound("BFG4700/Fire")
	IBNE F 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
	IBNE F 6 Bright A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	TNT1 A 0 A_Jump(128,"DTBFG10K","Devastator")
	Goto See
  ExpMinigunBFG4700:
    IBNE E 8 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_PlaySoundEx("BFG4700/Fire","Voice")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("CyberBFG4700FastShot",60,32,0)
    TNT1 A 0 A_CustomMissile("CyberBFG4700FastShot",60,-32,0)
	TNT1 A 0 A_FaceTarget
	IBNE I 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE J 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE F 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,28,106,Random(2, 6), 0, Random(1, 3), Random(80, 90), 128)
	TNT1 A 0 A_SpawnItemEx("OrangeShellCasing",10,-28,106,Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)	
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,18,Random(2,-2))
	TNT1 A 0 A_CustomMissile("TerminatorExplosiveTracer",106,-18,Random(2,-2))
	TNT1 A 0 A_FaceTarget
	IBNE G 3 Bright A_PlaySound("sentient/fire")
	TNT1 A 0 A_CposRefire
	TNT1 A 0 A_Jump(32,"Missile","See","ExpMinigun","ExpMinigunRocket","ExpMinigunMRLRockets")
    Goto ExpMinigunBFG4700+1
  Death:
	IBNX A 10 A_Scream
	IBNX A 10 A_NoBlocking 
	IBNX AAAAAAAAAAAA 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	IBNX BBBBBBBBBBBB 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	IBNX CCCCCCCCCCCC 2 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("EFGFusionNukeFX",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_CustomMissile("TerminatorEFGFusionNukeExplode",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
	INNI LLLLL 1 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	INNI MMMMM 1 Bright A_CustomMissile("Kaboom", random(20,80), random(20,-20), random(0,360), 2, random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3", Random(20,80), 0, random(0,360), 2, random(0,360))	
	INNI "NO" 5
	TNT1 A 0 A_BossDeath
	INNI P -1 A_KillMaster
	Stop	
  }
}

Actor CyberMRLFastRocket : MRLFastRocket
{
-MTHRUSPECIES
Damage 22
Speed 40
Damagetype "Cyber10K"
SeeSound "rocket/fire"
States
{
  Death:
	TNT1 A 0
    TNT1 A 0 A_Explode(138,158,0)
    TNT1 A 0 A_StopSoundEx("SoundSlot7")
    TNT1 AAA 0 A_CustomMissile("Kaboom3",0,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("SmokeFX2",0,0,random(0,360),2,random(0,360))
    TNT1 A 0 A_SpawnItemEx("RocketExplosionFlare",0,0,0,0,0,0,0,128)
    TNT1 A 0 A_SpawnItemEx("RocketExplosionShockWave",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,0,0,0,0,0,128) 
    TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,random(4,-4),random(4,-4),random(4,8),0,128)
    TNT1 A 1 A_SpawnItem("RocketEx")
    Stop
}
}

ACTOR ZM79GrenadeCopy
{
Radius 11
Height 8
Projectile
Speed 72
Damage 55
+RANDOMIZE
+DEHEXPLOSION
+SKYEXPLODE
+EXPLODEONWATER
+FORCERADIUSDMG
+MTHRUSPECIES
-NOGRAVITY
Gravity 0.25
SeeSound "40mmgrenade/bounce"
DeathSound "thumper/explode"
DamageType "Hell"
States
{
Spawn: 
    GRND A 0
    GRND A 0 ThrustThingZ(0,8,0,1)
Fly:
    GRND A 0 A_CustomMissile("RocketSmoke",Random(4,6),Random(-2,2)) 
    GRND A 1 Bright
    Loop
Death:
    MIS2 A 0 A_StopSoundEx("SoundSlot7")
	TNT1 A 0 A_Explode(24,628,0)
	TNT1 A 0 A_Explode(64,400,0)
	TNT1 A 0 A_Explode(128,256,1)	
	TNT1 A 0 A_SpawnItemEx("M79GrenadeKaBoom",0,0,0,0,0,0,0,128)
	TNT1 AAAAAAAAAAAAA 0 A_CustomMissile("Explode",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 A 1 A_CustomMissile("BigExplosion",0,0,random(80,100),2,random(80,100))
    MISL B 4 Bright
    MISL CD 4 Bright A_SetTranslucent(0.75,1)
    Stop
    }
}

Actor CyberHeavyRocket : HeavyRocket
{
DamageType "Cyber10K"
Damage 40
-MTHRUSPECIES
States
{
  Spawn:
	TNT1 A 0 A_CustomMissile("RocketSmoke",Random(8,12),Random(-2,2))
	TNT1 AAA 0 A_CustomMissile("NewRockeParticleTrail",Random(8,12),Random(-2,2))
	TNT1 A 0 A_PlaySoundEx("rpg/fly","SoundSlot7",1)
    MIS9 A 1 Bright
    Loop
  Death:
    TNT1 A 0 A_StopSoundEx("SoundSlot7")
	TNT1 A 0 A_Explode(9,328)
	TNT1 A 0 A_Explode(48,225)
	TNT1 A 0 A_Explode(144,148)
	TNT1 A 0 Radius_Quake(6,28,0,32,0)
    TNT1 A 0 A_PlaySound("digger/explode")
	TNT1 AAA 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,0,0,0,0,0,128)
	TNT1 A 0 A_CustomMissile("SmokeFX3",0,0,random(80,100),2,random(80,100))
    TNT1 AAAAAAAA 0 A_CustomMissile("Kaboom3",random(-16,16),random(20,-20),random(0,360),2,random(0,360))
    MISL B 4 Bright
    MISL CD 4 Bright A_SetTranslucent(0.75,1)
	Stop
  }
}

ACTOR CyberM79Grenade : ZM79GrenadeCopy
{
-MTHRUSPECIES
DamageType "Cyber10K"
States
{
  Spawn: 
    GRND A 0
    GRND A 0 ThrustThingZ(0,8,0,1)
  Fly:
    GRND A 0 A_CustomMissile("RocketSmoke",Random(4,6),Random(-2,2)) 
    GRND A 1 Bright
    Loop
  Death:
	TNT1 A 0 
	TNT1 A 0 A_Explode(24,628,0)
	TNT1 A 0 A_Explode(64,400,0)
	TNT1 A 0 A_Explode(128,256,1)
	TNT1 A 0 A_CustomMissile("HugeExplosion",0,0,random(80,100),2,random(80,100))
    TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,random(4,-4),random(4,-4),random(4,8),0,128)
	TNT1 A 1 A_SpawnItem("HugeRocketEx")
    Stop
}
}

ACTOR CyberRPGRocket : RPGRocketCopy
{
-MTHRUSPECIES
DamageType "Cyber10K"
States
{
  Spawn:
    MIS2 A 0 A_CustomMissile("RocketSmoke",Random(4,6),Random(-2,2)) 
	MIS2 AAA 0 A_CustomMissile("NewRockeParticleTrail",Random(4,6),Random(-2,2)) 
    MIS2 A 0 A_BishopMissileWeave
    MIS2 A 1 Bright A_PlaySoundEx("rpg/fly","SoundSlot7",1)
    Loop
  Death:
	TNT1 A 0 
	TNT1 A 0 A_Explode(48,628,0)
	TNT1 A 0 A_Explode(128,400,0)
	TNT1 A 0 A_Explode(384,256,0)	
    MIS2 A 0 A_StopSoundEx("SoundSlot7")
	TNT1 A 0 A_CustomMissile("HugeExplosion",0,0,random(80,100),2,random(80,100))
    TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,random(4,-4),random(4,-4),random(4,8),0,128)
	TNT1 A 1 A_SpawnItem("HugeRocketEx")
    Stop
}
}

Actor CyberTankShot : PychoManiacTankShot
{
  Damagetype "Cyber10K" 
  Obituary "%o was directly hit from a distance by a Bazooka PsychoManiac."
  Species "Cybers"
}

ACTOR CyberEFGFusionNuke : EFGFusionNuke
{
Speed 20
Damagetype "Cyber10K"
States
	{
	Death:
		TNT1 A 0 A_SpawnItemEx("EFGFusionNukeFX",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_CustomMissile("CyberEFGFusionNukeExplode",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,0)
		TNT1 AAAAAAAA 3 Bright A_SpawnItemEx("WelderFlare",0,0,0,random(2,4),random(2,4),2,random(0,360),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_SETMASTER,64)
		Stop
	}
}

Actor CyberEFGFusionNukeExplode : EFGFusionNukeExplode
{
Damagetype "Cyber10K"
States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 0 A_Explode(1024,256,0,1,256)
		TNT1 A 1 Bright ThrustThingZ(0,8,0,1)
		TNT1 A 1 Bright A_Explode(512,512,0,1,256)
		TNT1 A 1 Bright A_Explode(256,1024,0,0,256)
		TNT1 A 1 Bright A_Explode(128,2048,0,0,256)
		Stop
	}
}

ACTOR InsaneBaneGhostA
{
Scale 1
RENDERSTYLE Translucent
Alpha 0.75
+NOGRAVITY
+CLIENTSIDEONLY
+DONTSPLASH
+NOINTERACTION
+NOCLIP
States
{
Spawn:
    IBNE A 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR InsaneBaneGhostB : InsaneBaneGhostA
{   
States
{
Spawn:
    IBNE B 2 A_FadeOut(0.18)
    Loop
    }
}
	
ACTOR InsaneBaneGhostC : InsaneBaneGhostA
{   
States
{
Spawn:
    IBNE C 2 A_FadeOut(0.18)
    Loop
    }
}

ACTOR InsaneBaneGhostD : InsaneBaneGhostA
{   
States
{
Spawn:
    IBNE D 2 A_FadeOut(0.18)
    Loop
    }
}