ACTOR CorruptedFan
{
//Creator: High Councilor
//Origin: Nexus Infinity
//Sprite: CDFN
//Title: "Corrupted Electric Fan"
  Monster
  Health 7500
  Height 110
  Radius 40
  Speed 5
  FastSpeed 8
  Mass 20000
  Scale 1.1
  BloodColor "33 66 99"
  Species "Cybers"
  PainChance 0
  DamageFactor 0.45
  DamageFactor "Ice", 0.0
  DamageFactor "PlayerNemesisPlasma", 0.5
  DamageFactor "SatanGuard", 0.0
  DamageFactor "AbyssalSatyr", 0.0
  Damagefactor "Moloch", 0.0
  Damagefactor "Exos", 0.0
  Damagefactor "T3rm", 0.0
  Damagefactor "UltimateLegendary", 0.0
  Damagefactor "DarkBruiserBFG10K", 0.0
  Damagefactor "DarkBruiserRailgunSlug", 0.0
  DamageFactor "Commander", 0.0
  DamageFactor "Baby15K", 0.0
  DamageFactor "LegMind", 0.0
  DamageFactor "UBDTR", 0.0
  DamageFactor "CacoComet", 0.0
  DamageFactor "CadaverRocket", 0.0
  DamageFactor "HellComet", 0.0
  DamageFactor "Hell", 0.0
  DamageFactor "HFCyber", 0.0
  DamageFactor "PyroShot", 0.25
  DamageFactor "PlayerPyro", 0.25
  DamageFactor "PlayerBHole", 0.25
  DamageFactor "Player", 0.05
  DamageFactor "DBFG10K2", 0.0
  DamageFactor "PlayerDBFG10K2", 0.05
  DamageFactor "DBFG2", 0.0
  DamageFactor "PlayerDBFG2", 0.10
  DamageFactor "FreezerBurn", 0.0
  DamageFactor "Ice", 0.0
  DamageFactor "Legendary", 0.25
  DamageFactor "SuperWeapon", 0.25
  DamageFactor "LegendaryPlayer", 0.25
  DamageFactor "LegendaryGuru", 0.25
  DamageFactor "LegendaryGuruPlayer", 0.25
  DamageFactor "PlayerDevBall", 0.25
  DamageFactor "PlayerDevTracer", 0.15
  DamageFactor "PowerDoubleDamage", 0.35
  DamageFactor "BFG10K", 0.65
  DamageFactor "BFG9500Ball", 0.1
  DamageFactor "CustomSpray", 0.1
  DamageFactor "BFGSplash", 0.1
  DamageFactor "BFGSpray", 0.1
  DamageFactor "Explosion", 0.1
  DamageFactor "PDTBFG", 0.1
  DamageFactor "PDTBFGTracer", 0.1
  DamageFactor "PlayerDTBFGRailgunSlug", 0.1
  DamageFactor "PDTPuff", 0.1
  DamageFactor "Cyber10K", 0.0
  DamageFactor "CerChainguns", 0.0	
  DamageFactor "CerEnergyBall", 0.0
  DamageFactor "DemolisherEx", 0.0
  DamageFactor "DarkDemoEx", 0.0
  DamageFactor "Legendary1", 0.0 
  DamageFactor "VileFires", 0.0
  DamageFactor "NobleComet", 0.0
  DamageFactor "ZombieDev", 0.0
  DamageFactor "BeheComet", 0.0
  +BOSS
  +NOFEAR
  +BOSSDEATH
  +NOICEDEATH
  +NOTIMEFREEZE
  +DONTBLAST
  +NOTELEFRAG
  +NOINFIGHTING
  +NOBLOOD
  +NOPAIN
  -FULLVOLACTIVE
  +NEVERRESPAWN
  +MISSILEMORE
  +MISSILEEVENMORE
  +QUICKTORETALIATE
  +NORADIUSDMG
  +NODAMAGETHRUST
  +DONTMORPH
  +NOTARGET
  +TELESTOMP
  +DONTHARMSPECIES
  seesound "StormCauser/See"
  painsound ""
  deathsound "StormCauser/Death"
  activesound ""
  DropItem "BossLifeEssence", 256, 150
  DropItem "HEMBossArmorBonusMax25", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "DemonAmmoBox", 196, 200
  DropItem "DemonicChalice", 90, 1
  DropItem "SkullOfPower", 90, 1
  DropItem "ArmorSphere", 96
  DropItem "D-BFG" 192
  Dropitem "MarineDBFGBeacon", 32, 1
  DropItem "CorruptedSphere", 256
  Obituary "%o was disintegrated by an Corrupted Electric Fan."
  Tag "\c[l5]Corrupted Electric Fan\c-"
  var int user_music;
  var int user_missile;
  var int user_jump;
  var int user_fly;
  States
  {
  Spawn:
	CDFN AAA 2 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BBB 2 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CCC 2 Bright A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	Loop
  Idle:
	TNT1 A 0 A_JumpIf(user_fly == 1,"IdleFlying")
	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BB 2 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CC 2 Bright A_Wander
	Loop
  IdleFlying:
 	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN DDDD 1 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN EEEE 1 Bright A_Wander
	TNT1 A 0 A_Look
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN FFFF 1 Bright A_Wander
	Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	//TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,977,919) //Corrupted Cardinal
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,977)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf(user_fly == 1,"SeeFlying")
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 2 Bright A_Chase
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BB 2 Bright A_Chase
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CC 2 Bright A_Chase
	TNT1 A 0 A_Jump(32,"Teleport")  
	Loop
  SeeFlying:
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN DDDD 1 Bright A_Chase
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN EEEE 1 Bright A_Chase
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN FFFF 1 Bright A_Chase
	TNT1 A 0 A_Jump(32,"Teleport","Evade")  
	Loop
  Evade:
	TNT1 A 0 A_Jump(128,3)
	TNT1 A 0 ThrustThing(Angle*256/360+64,30,0,0)
	TNT1 A 0 A_Jump(256,2)
	TNT1 A 0 ThrustThing(Angle*256/360+192,30,0,0)
	CDFN DDEEFFDDEEFF 1 A_Chase
	TNT1 A 0 A_Stop
	Goto SeeFlying
  Teleport:
	CDFN A 1 A_UnSetShootable
	TNT1 AAAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AAAAAAAAAA 1 A_FadeOut(0.1,0)
	CDFN A 2
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	CDFN A 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAAAAAAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AAAAAAAAAA 1 A_FadeIn(0.1)
	CDFN A 1 A_SetShootable
	Goto See
  Missile2:
	TNT1 A 0 A_Jump(120,"Rockets","ClusterBall","LaserBall")
	TNT1 A 0 A_Jump(80,"BombRain","DBFG10K","DBFG","DTBFG")
	TNT1 A 0 A_Jump(30,"Drones")
    Goto Normal
  Missile:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_JumpIf(user_fly == 1, "Missile2")
    TNT1 A 0 A_JumpIfHealthLower(3000,"StartFlying")
	TNT1 A 0 A_Jump(120,"Rockets","ClusterBall","LaserBall")
	TNT1 A 0 A_Jump(80,"BombRain","DBFG10K","DBFG","DTBFG")
	TNT1 A 0 A_Jump(60,"Jump")
	TNT1 A 0 A_Jump(30,"Drones")
  Normal:
	CDFN AAA 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",150,30,Random(1,-1))
	CDFN B 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",100,70,Random(1,-1))
	CDFN B 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",125,20,Random(1,-1))
	CDFN B 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",150,30,Random(1,-1))
	CDFN C 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",100,70,Random(1,-1))
	CDFN C 2 A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",125,20,Random(1,-1))
	CDFN C 2 A_FaceTarget
	TNT1 A 0 A_MonsterRefire(128,"See")
	TNT1 A 0 A_Jump(48,"Missile","See")
	Loop
/*
  NormalJumping:
	TNT1 A 0 A_SetUserVar("user_jump",0)
	TNT1 A 0 ThrustThingZ(0,Random(35,40),0,1)
	CDFN DEFA 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",150,30,Random(1,-1))
	CDFN D 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",100,70,Random(1,-1))
	CDFN E 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",125,20,Random(1,-1))
	CDFN F 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",150,30,Random(1,-1))
	CDFN D 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueCardball",100,70,Random(1,-1))
	CDFN E 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("CorruptFanBlueball",125,20,Random(1,-1))
	CDFN F 2 Bright A_FaceTarget
	TNT1 A 0 A_MonsterRefire(128,"See")
	TNT1 A 0 A_Jump(48,"Missile","See")
  FlyCheck:
	TNT1 A 0 A_JumpIf(user_jump >= 50,"NormalJumping")
	TNT1 A 0 A_SetUserVar("user_jump",user_jump+1)
	CDFN A 1 Bright A_CheckFloor("NormalJumping")
	Loop
*/
  Jump:
	CDFN A 5 A_FaceTarget
	CDFN A 0 A_SetUserVar("user_jump",0)
	CDFN A 0 ThrustThingZ(0,random(50,100),0,1)
	CDFN ADEF 5 Bright A_Recoil(-10)
  JumpCheck:
	CDFN A 0 A_JumpIf(user_jump >= 45,"Land")
	CDFN A 0 A_SetUserVar("user_jump",user_jump+1)
	CDFN A 0 A_Explode(8,256)
	CDFN D 1 Bright A_CheckFloor("Land")
	CDFN A 0 A_Explode(8,256)
	CDFN E 1 Bright A_CheckFloor("Land")
	CDFN A 0 A_Explode(8,256)
	CDFN F 1 Bright A_CheckFloor("Land")
	Loop
  Land:
	TNT1 A 0 A_SpawnItemEx("TLCFlyLandShockWave",0,0,0,0,0,0,0,128) 
	TNT1 AAA 0 A_SpawnItemEx("BlueParticleSpawner",0,0,0,0,0,0,0,128)  
	TNT1 AAA 0 A_CustomMissile("SmokeFX3",0,0,random(0,360),2,random(0,360))
	TNT1 AAAAA 0 A_CustomMissile("BlueKaboom",0,0,random(0,360),2,random(0,360))
	//TNT1 A 0 A_CustomMissile("LCAExplosionBundle",0,0,random(80,100),2,random(80,100))
	CDFN A 0 A_Explode(128,684)
	CDFN A 0 Radius_Quake(175,8,512,1024,0)
	CDFN A 0 A_SpawnItemEx("TLCFlyLandKaBoom")
	CDFN A 1
	Goto See
  BombRain:
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_FaceTarget
	CDFN AAA 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGG 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHH 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN III 3 A_SpawnItemEx("BlueCardLineSpawner")
  BombRainLoop:
	TNT1 A 0 A_JumpIf(user_missile >= Random(5,30),"See")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_FaceTarget
	TNT1 AAA 0 A_CustomMissile("CorruptFanExplosiveFrag",100,Random(25,30),frandom(-20,20),CMF_OFFSETPITCH,frandom(-5,15))
	CDFN JJ 3 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	TNT1 AAA 0 A_CustomMissile("CorruptFanExplosiveFrag",110,Random(25,30),frandom(-5,5),CMF_OFFSETPITCH,frandom(-5,15))
	CDFN II 3 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	TNT1 AAA 0 A_CustomMissile("CorruptFanExplosiveFrag",120,Random(25,30),frandom(-25,25),CMF_OFFSETPITCH,frandom(-5,20))
	CDFN HH 3 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	TNT1 AAA 0 A_CustomMissile("CorruptFanExplosiveFrag",130,Random(25,30),frandom(-10,10),CMF_OFFSETPITCH,frandom(-5,15))
	CDFN II 3 Bright A_SpawnItemEx("BlueCardLineSpawner")
    Loop
  ClusterBall:
	TNT1 A 0 A_PlaySound("Weapons/dbfgcharge2",1)
	TNT1 A 0 A_PlaySound("StormCauser/See",2)
	TNT1 A 0 A_FaceTarget
	CDFN AAAA 1 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGGG 1 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHHH 1 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN IIII 1 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN J 10 Bright A_CustomMissile("CorruptFanClusterBall",100,Random(25,30),random(-4,4))
    Goto See
  DTBFG:
	TNT1 A 0 A_PlaySound("Weapons/dbfgcharge2",1)
	TNT1 A 0 A_FaceTarget
	CDFN AAAA 1 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGGG 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHHH 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN IIII 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN J 10 Bright A_CustomMissile("T3DBFG10KBall",100,Random(25,30),random(-4,4))
	CDFN IIHH 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGGG 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHII 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN J 10 Bright A_CustomMissile("T3DBFG10KBall",100,Random(25,30),random(-4,4))
    Goto See
  Rockets:
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= Random(2,5),"See")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 3 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN GG 3 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN HH 3 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN II 3 A_FaceTarget
	CDFN I 2 Bright A_CustomMissile("CorruptFanRocket",35,80,Random(1,-1))
	CDFN I 2 Bright A_CustomMissile("CorruptFanRocket",60,-65,Random(1,-1))
	CDFN I 2 Bright A_CustomMissile("CorruptFanRocket",110,80,Random(1,-1))
	CDFN I 2 Bright A_CustomMissile("CorruptFanRocket",150,-40,Random(1,-1))
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN HHGG 2 A_FaceTarget
	Goto Rockets+1
  DBFG10k:
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_PlaySound("Weapons/dbfgcharge2",1)
	CDFN AAAA 2 Bright A_FaceTarget
  DBFG10kLoop:
	TNT1 A 0 A_JumpIf(user_missile >= Random(6,12),"See")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 2 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN GG 3 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN HH 3 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN II 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN I 2 A_CustomMissile("T3DBFG10kShot",100,Random(25,30),random(-5,5))
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN I 2 A_CustomMissile("T3DBFG10kShot",100,Random(25,30),random(-10,10))
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN I 2 A_CustomMissile("T3DBFG10kShot",100,Random(25,30),random(-15,15))
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	CDFN I 2 A_CustomMissile("T3DBFG10kShot",100,Random(25,30),random(-20,20))
	Loop
  LaserBall:
	TNT1 A 0 A_PlaySound("StormCauser/See",2)
	CDFN AAAA 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGGG 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHHH 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN IIII 3 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlaySound("Weapons/BLG/fire",CHAN_WEAPON)
	CDFN J 10 Bright A_CustomMissile("CorruptedFanLaserBall",100,Random(25,30),0,CMF_AIMDIRECTION,60)
    Goto See
  DBFG:
	TNT1 A 0 A_PlaySound("Weapons/dbfgcharge",1)
	TNT1 A 0 A_PlaySound("StormCauser/See",2)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_FaceTarget
	CDFN ABCABC 4 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN ABCABC 4 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN ABCABC 4 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN ABCAB 4 Bright A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AAAA 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN GGGG 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN HHHH 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_FaceTarget
	CDFN IIII 2 A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire")
	CDFN J 10 Bright A_CustomMissile("T3DBFGBall",100,Random(25,30),random(-4,4))
	TNT1 A 0 A_UnSetInvulnerable
    Goto See
  StartFlying:
	TNT1 A 0 A_JumpIf(user_fly == 1,"SeeFlying")
	TNT1 A 0 A_SetInvulnerable
	//TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	CDFN A 5 Bright A_PlaySound("StormCauser/See",2,1.0,0,ATTN_NONE)
	CDFN BCABC 5 Bright
    CDFN D 5 Bright ThrustThingZ(0,42,0,1)
	TNT1 A 0 A_SetUserVar("user_fly",1)
	TNT1 A 0 A_ChangeFlag(BRIGHT,1)
	TNT1 A 0 A_ChangeFlag(FLOAT,1)
	TNT1 A 0 A_ChangeFlag(NOGRAVITY,1)
	//TNT1 A 0 A_ChangeFlag(ALWAYSFAST,1)
	CDFN DDDEEEFFFDDDEEEFFF 2 Bright
	TNT1 A 0 A_UnSetInvulnerable
	//TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	Goto SeeFlying
  Drones:
	CDFN AA 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BB 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CC 4 Bright A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("CorruptedFishDrone",20,0,100,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BB 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CC 4 Bright A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("CorruptedFishDrone",20,0,100,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN AA 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN BB 4 Bright A_FaceTarget(45)
	TNT1 AA 0 A_SpawnItemEx("BlueCardLineSpawner")
	CDFN CC 4 Bright A_FaceTarget(45)
	TNT1 A 0 A_SpawnItemEx("CorruptedFishDrone",20,0,100,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION)
	CDFN AABBCC 4 Bright
	TNT1 A 0 A_Jump(96,"Missile")
    Goto See
  Pain:
	CDFN J 10 Bright
    Goto See
  Death:
    CDFN KKKKKKK 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
    CDFN KKKKKKK 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,0,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,20,2,5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,40,2,10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,60,2,15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,80,2,25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,100,2,30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,120,2,35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,140,2,40)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,160,2,45)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,180,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,200,2,-5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,220,2,-10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,240,2,-15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,260,2,-20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,280,2,-25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,300,2,-30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,320,2,-35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,340,2,-40)
    CDFN KKKKKKK 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,180,2,45)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,200,2,40)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,220,2,35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,240,2,30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,260,2,25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,280,2,20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,300,2,15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,320,2,10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,340,2,5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,0,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,20,2,-5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,40,2,-10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,60,2,-15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,80,2,-20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,100,2,-25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,120,2,-30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,140,2,-35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,160,2,-40)
    CDFN KKKKKKK 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,90,2,45)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,110,2,40)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,130,2,35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,150,2,30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,170,2,25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,190,2,20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,210,2,15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,230,2,10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,250,2,5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,270,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,290,2,-5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,310,2,-10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,330,2,-15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,350,2,-20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,10,2,-25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,30,2,-30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,50,2,-35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,70,2,-40)
    CDFN LLLLLLL 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,90,2,45)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,110,2,40)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,130,2,35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,150,2,30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,170,2,25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,190,2,20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,210,2,15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,230,2,10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,250,2,5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,270,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,290,2,-5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,310,2,-10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,330,2,-15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,350,2,-20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,10,2,-25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,30,2,-30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,50,2,-35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,70,2,-40)
    CDFN LLLLLLL 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(31,-31),frandom(31,-31),frandom(39,99),frandom(1,2),frandom(1,2),frandom(2,-2),random(0,359))
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,270,2,45)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,290,2,40)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,310,2,35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,330,2,30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,350,2,25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,10,2,20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,30,2,15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,50,2,10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,70,2,5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,90,2,0)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,110,2,-5)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,130,2,-10)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,150,2,-15)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,170,2,-20)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,190,2,-25)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,210,2,-30)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,230,2,-35)
	TNT1 A 0 A_CustomMissile("BlueCardball",72,0,250,2,-40)
	TNT1 A 0 A_Scream
	TNT1 A 0 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("T3DBFGBoltExp")
	TNT1 A 0 A_SpawnItemEx("T3DBFGBoltExpImpact")
	TNT1 AAAAA 0 A_SpawnItemEx("NewCell",0,0,64,random(1,8),0,2,random(0,360),0,0)
	TNT1 AAAAA 0 A_SpawnItemEx("DCell",0,0,64,random(1,8),0,2,random(0,360),0,0)
	CDFN LLLLLLL 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(-50,50),random(-50,50),random(40,100),frandom(1,2),frandom(1,2),frandom(-2,2),random(0,360))
	CDFN LLLLLLL 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(-50,50),random(-50,50),random(40,100),frandom(1,2),frandom(1,2),frandom(-2,2),random(0,360))
	CDFN LLLLLLL 2 Bright A_SpawnItemEx("BlueCardRocketExplosion",random(-50,50),random(-50,50),random(40,100),frandom(1,2),frandom(1,2),frandom(-2,2),random(0,360))
	TNT1 A -1 A_KillMaster
    Stop
	}
}

ACTOR CorruptFanBlueball : BlueCardball
{
Speed 40
Damage 10
States
	{
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_Jump(256,"Spawn1","Spawn2","Spawn3")
  Spawn1:
	D3PP ABCDEFG 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  Spawn2:
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP A 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP B 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP C 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP D 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP E 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP F 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_ChangeVelocity(1,0.5*random(-3,3),0.5*random(-2,2),CVF_RELATIVE)
	D3PP G 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  Spawn3:
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP A 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP B 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP C 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP D 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP E 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP F 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_Weave(3,3,2.0,1.0)
	D3PP G 1 Bright A_SpawnItemEx("BlueCardballTrail",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	Loop
  Death:
	TNT1 A 0
	TNT1 A 0 A_Explode(128,128,0)
	TNT1 A 0 A_PlaySound("weapons/t2fbx1", 0, 0.75, 0, ATTN_NORM)
	TNT1 A 1 A_SpawnItemEx("BlueCardballExp")
	Stop
	}
}

ACTOR CorruptFanRocket : BlueCardinalRocket
{
  Speed 30
  States
  {
  Spawn:
    TNT1 A 0
  Normal:
    BCRC AB 4 Bright
	TNT1 A 0 A_PlaySound("Weapons/homingbeep")
    TNT1 A 0 A_Jump(10,"StartSeek")
    Loop	
  StartSeek:
	BCRC AB 4 Bright A_Tracer2
	TNT1 A 0 A_PlaySound("Weapons/homingbeep")
    TNT1 A 0 A_Jump(10,"Normal")
	Loop
  Death:
	BCRC C 8 Bright A_Explode
	BCRC D 6 Bright
	BCRC E 4 Bright
	Stop
	}
}

Actor CorruptFanExplosiveFrag
{
  PROJECTILE
  Height 4
  Radius 4
  Speed 35
  Scale 0.75
  Decal "Scorch"
  Gravity 1.0
  Bouncetype Hexen
  BounceFactor 1.05
  BounceCount 3
  WallBounceFactor 1.05
  Reactiontime 245
  Damage 10
  +HEXENBOUNCE
  -NOGRAVITY
  +DONTHARMSPECIES
  DamageType "Cyber10k"
  SeeSound "ZZZFragBounce"
  Deathsound "PulseNail/hit"
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_StopSound
  SpawnLoop:
	BALL A 1 Bright
	TNT1 A 0 A_Countdown
	Loop
  Death:
	TNT1 A 0
	TNT1 A 0 A_Jump(32,"Death2")
	TNT1 A 0 A_Explode(35,90,0)
	TNT1 A 0 A_SetTranslucent(0.85,1)
	BCRC CDE 4 Bright
	Stop
  Death2:
	TNT1 A 0 A_Explode(50,100,0)
	TNT1 A 0 A_SetTranslucent(0.85,1)
	TNT1 A 0 A_SpawnItemEx("BlueCardballExp")
	BCRC CDE 4 Bright
	Stop
	}
}

ACTOR CorruptFanClusterBall : T3DBFG10KBall
{
+SEEKERMISSILE
States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_Jump(128,"SFX")
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 A_PlaySoundEx("weapons/dtech10kball","Voice",1)
	TNT1 A 0 A_SeekerMissile(15,8,SMF_LOOK)
	TNT1 A 0 A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 A 1 Bright
	B3S1 B 1 Bright
	TNT1 A 0 A_SeekerMissile(15,8,SMF_LOOK)
	TNT1 A 0 A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 C 1 Bright
	B3S1 D 1 Bright
	Loop
  SFX:
	TNT1 A 0 A_AlertMonsters
	TNT1 A 0 A_PlaySoundEx("weapons/dtech10kball","Voice",1)
	TNT1 A 0 A_SeekerMissile(15,8,SMF_LOOK)
	TNT1 A 0 A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlue",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 A 1 Bright
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlue2",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 B 1 Bright
	TNT1 A 0 A_SeekerMissile(15,8,SMF_LOOK)
	TNT1 A 0 A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlue",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 C 1 Bright
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlue2",Random(6,-6),Random(6,-6),Random(16,8),0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	B3S1 D 1 Bright
	Goto Spawn   
  Death:
	TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,0,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,10,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,20,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,30,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,40,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,50,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,60,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,70,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,80,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 B 1 Bright A_CustomMissile("BlueCardball",0,0,90,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,100,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 B 1 Bright A_CustomMissile("BlueCardball",0,0,110,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,120,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 B 1 Bright A_CustomMissile("BlueCardball",0,0,130,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,140,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 B 1 Bright A_CustomMissile("BlueCardball",0,0,150,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,160,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 C 1 Bright A_CustomMissile("BlueCardball",0,0,170,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,180,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 C 1 Bright A_CustomMissile("BlueCardball",0,0,190,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,200,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 C 1 Bright A_CustomMissile("BlueCardball",0,0,210,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,220,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 C 1 Bright A_CustomMissile("BlueCardball",0,0,230,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,240,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 D 1 Bright A_CustomMissile("BlueCardball",0,0,250,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,260,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 D 1 Bright A_CustomMissile("BlueCardball",0,0,270,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,280,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 D 1 Bright A_CustomMissile("BlueCardball",0,0,290,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,300,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 D 1 Bright A_CustomMissile("BlueCardball",0,0,310,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,320,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,330,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 0 Bright A_CustomMissile("BlueCardball",0,0,340,CMF_AIMDIRECTION,Random(-5,5))
	B3S1 A 1 Bright A_CustomMissile("BlueCardball",0,0,350,CMF_AIMDIRECTION,Random(-5,5))
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlueSpawner",0,0,15,0,0,0,0,SXF_CLIENTSIDE,0)
	B3S1 ABCD 6 Bright A_SpawnItemEx("DTech10KShockwaveBlue",0,0,15,0,0,0,0,SXF_CLIENTSIDE,0)
	TNT1 A 0 A_Explode(480,240,0)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(15,20,0,20,0)
	TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("DTech10KShockwaveBlue1",0,0,15,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 AAAAAAAAAAAA 0 A_CustomMissile("BlueCardball",0,0,Random(0,359),CMF_AIMDIRECTION,Random(0,45))
	TNT1 A 20 Bright A_SpawnItemEx("T3DBFGBallExp")
	Stop    
	}
}

ACTOR CorruptedFanLaserBall
{
  Scale 2
  Radius 24
  Height 48
  Speed 15
  PROJECTILE
  Damage 75 //150
  Alpha 0.95
  RenderStyle Add
  +FORCERADIUSDMG
  +NODAMAGETHRUST
  +DONTHARMSPECIES
  +MTHRUSPECIES
  DamageType "DBFG2"
  Species "Cybers"
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("Weapons/BLG/fly",CHAN_5,1.0,1)
  SpawnLoop:
	B3S2 A 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 B 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 A 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 B 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 A 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 B 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 A 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
	B3S2 B 4 Bright A_CustomMissile("BLGLightningBolt",0)
	TNT1 A 0 A_Explode(64,128,0)
  Death:
	TNT1 A 1 A_CustomMissile("CorruptedFanLaserBallCharge")
	Stop
	}
}

ACTOR CorruptedFanLaserBallCharge
{
  radius 8
  height 8
  Scale 2
  RenderStyle Add
  PROJECTILE
  Speed 0
  +NOCLIP
  +FLOAT
  +FLOATBOB
  +NOGRAVITY
  +ISMONSTER
  +NOTARGET
  DamageType "DBFG2"
  states
  {
  Spawn:
	TNT1 A 0 A_PlaySound("Weapons/BLG/charge",CHAN_5,1.0,0,ATTN_NONE)
	TNT1 A 0 A_Explode(64,128,0)
	TNT1 A 0 A_SpawnItemEx("DTBFGLightningBlueSpawner",0,0,15,0,0,0,0,SXF_CLIENTSIDE,0)
	B3S2 ABABABAB 4 Bright A_SpawnItemEx("DTech10KShockwaveBlue",0,0,15,0,0,0,0,SXF_CLIENTSIDE,0)
    Goto Firing
  Firing:
	TNT1 A 0 A_Explode(240,240,0)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 A_PlaySound("weapons/dtech10kexplode")
	TNT1 A 0 A_SpawnItemEx("DTech10KShockwaveBlue1",0,0,15,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,0,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,45,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,90,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,135,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,180,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,225,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,270,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AA 0 A_CustomMissile("CorruptedFanSeekerLaser",0,0,315,CMF_TRACKOWNER,Random(-5,5))
	TNT1 AAAAAAAAAAAAAAAAAAAA 0 A_CustomMissile("BlueCardball",0,0,Random(0,359),CMF_AIMDIRECTION,Random(10,-70))
	TNT1 A 20 A_SpawnItemEx("T3DBFGBallExp")
  Death:
	TNT1 A 1
	Stop
	}
}

ACTOR CorruptedFanSeekerLaser : FantasyProjectileWeak
{
  Damage 10
  Speed 5
  +RIPPER
  +SEEKERMISSILE
  Seesound "DG/LaserBeam"
  MissileType "CorruptedFanSeekerLaserTrail"
  States
  {
  Spawn:
    CLBB IIIIIIIIIIII 1 Bright A_SeekerMissile(8,10)
  Spawn2:
    CLBB I 1 Bright A_ScaleVelocity(1.5)
    Loop
  Death:
	TNT1 A 0
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("CyanProjParticle",0,0,0,frandom(-4,4),frandom(-4,4),frandom(-4,4),random(0,359))
    CLBB I 1 Bright A_FadeOut(0.05)
    Goto Death+8
  }
}

ACTOR CorruptedFanSeekerLaserTrail
{
  +NOINTERACTION
  +CLIENTSIDEONLY
  +NOTIMEFREEZE
  RenderStyle Add
  Alpha 0.6
  Scale 0.3
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    CLBA I 1 Bright A_FadeOut(0.1)
    Wait
  }
}

ACTOR CorruptedFishDrone
{
  Monster
  Health 400
  Radius 16
  Height 40
  Mass 1000
  Scale 1.5
  Speed 15
  PainChance 0
  SeeSound ""
  PainSound ""
  DeathSound ""
  ActiveSound ""
  DamageFactor 0.5
  Species "Cybers"
  RadiusDamageFactor 0.25
  DamageFactor "Legendary", 0.4
  DamageFactor "LegendaryPlayer", 0.4
  DamageFactor "BFGSplash", 0.3
  DamageFactor "PDTBFG", 0.25
  DamageFactor "PDTBFGTracer", 0.25
  DamageFactor "MechStep", 0.0
  DamageFactor "DemolisherEx", 0.0
  DamageFactor "DarkDemoEx", 0.0
  DamageFactor "CerChainguns", 0.0	
  DamageFactor "CerEnergyBall", 0.0
  +BRIGHT
  +FLOAT
  +NOGRAVITY
  +DONTHURTSPECIES
  +DONTHARMSPECIES
  -COUNTKILL
  +NOPAIN
  +NOTIMEFREEZE
  +FLOORCLIP
  +MISSILEMORE
  +MISSILEEVENMORE
  +NOICEDEATH
  +NOBLOOD
  +DONTGIB
  +DONTRIP
  //+NORADIUSDMG
  +NOFEAR
  +THRUSPECIES
  Obituary "%o was Attacked by an Drone of the Corrupted Fan."
  Tag "\c[l5]Corrupted Fish Drone\c-"
  var int user_countdown;
  States
  {
  Spawn:
	TNT1 A 0 A_Look
	TNT1 A 0 A_JumpIf(user_countdown >= 250,"SelfDestruction")
	TNT1 A 0 A_SetUserVar("user_countdown",user_countdown+1)
	CDFD BBCC 1 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_JumpIf(user_countdown >= 250,"SelfDestruction")
	TNT1 A 0 A_SetUserVar("user_countdown",user_countdown+1)
	CDFD DDCC 1 A_Wander
	Loop
  See:
	TNT1 A 0 A_JumpIf(user_countdown >= 250,"SelfDestruction")
	TNT1 A 0 A_SetUserVar("user_countdown",user_countdown+1)
	CDFD BBCC 1 A_Wander
	TNT1 A 0 A_JumpIf(user_countdown >= 250,"SelfDestruction")
	TNT1 A 0 A_SetUserVar("user_countdown",user_countdown+1)
	CDFD DDCC 1 A_Chase("","Missile")
	Loop
  Missile:
	CDFD BBCC 1 A_Wander
	TNT1 A 0 A_JumpIf(user_countdown >= 125,"Kamikaze")
	CDFD DDCC 1 A_Wander
	TNT1 A 0 A_JumpIf(user_countdown >= 125,"Kamikaze")
	Goto See
  Kamikaze:
	CDFD ABACADABACADABACAD 1 A_FaceTarget(45)
	TNT1 A 0 A_ChangeFlag(NOINTERACTION,1)
	TNT1 A 0 A_CustomMissile("CorruptedFishDroneKamikaze")
	TNT1 A 1 A_ChangeFlag(COUNTKILL,0)
	Stop
  SelfDestruction:
	TNT1 A 0
	TNT1 A 0 A_Die
	Goto Death
  Death:
	TNT1 A 0
	TNT1 A 0 A_NoBlocking
	TNT1 A 0 A_PlaySound("weapons/rocklx")
	TNT1 A 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",0,0,0,0,0,0,0,128) 
	TNT1 AAA 0 A_CustomMissile("BlueKaboom3",0,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX2",0,0,random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryDebris",0,0,0,Random(4,-4),Random(4,-4),Random(4,8),0,128)
	TNT1 A 1 A_SpawnItemEx("BlueCardballExp")
	Stop
	}
}

Actor CorruptedFishDroneKamikaze
{
  Radius 16
  Height 40
  Scale 1.5
  Health 200
  Damage 10
  Speed 50
  DamageType "Cyber10k"
  Species "Cybers"
  Projectile
  Decal Scorch
  +FORCERADIUSDMG
  +SOLID
  +DONTRIP
  +SHOOTABLE
  +NOBLOOD
  +SKYEXPLODE
  +NOTARGETSWITCH
  -NOBLOCKMAP
  +SEEKERMISSILE
  Tag "\c[l5]Corrupted Fish Drone\c-"
  States
  {
  Spawn:
	CDFD BCDC 1 Bright
    Loop
  Death:
	TNT1 A 0 A_Die
  Explode:
	TNT1 A 0
	TNT1 A 0 A_NoBlocking
	TNT1 A 0 A_Explode(128,128,0)
	TNT1 A 0 A_PlaySound("weapons/rocklx")
	TNT1 A 0 A_SpawnItemEx("LegendaryBlueParticleSpawner",0,0,0,0,0,0,0,128) 
	TNT1 AAA 0 A_CustomMissile("BlueKaboom3",0,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX2",0,0,random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("LegendaryDebris",0,0,0,Random(4,-4),Random(4,-4),Random(4,8),0,128)
	TNT1 A 1 A_SpawnItemEx("BlueCardballExp")
	Stop
	}
}