ACTOR Mokou : GenericBoss
{
//Creator: ElAnexo Team
//Origin: Nexus Infinity
//Sprite: ZMOK
//Title: "Mokou"
  FloatSpeed 8
  Speed 8
  Health 50000
  Mass 0x7FFFFFFF
  +NORADIUSDMG
  +NOTIMEFREEZE
  +MISSILEMORE
  +MISSILEEVENMORE
  +NOTELEFRAG
  +QUICKTORETALIATE
  +BRIGHT
  Painchance 0
  DamageFactor "Melee", 0.05
  DamageFactor "Crush", 0.1
  DamageFactor "Acid", 0.05
  DamageFactor "Ice", 0.05
  DamageFactor "Fire", 0.05
  DamageFactor "Poison", 0.0
  DamageFactor "PoisonCloud", 0.0
  DamageFactor "Electric", 0.001
  DamageFactor "Disintegrate", 0.001
  DamageFactor "DrainLife", 0.0
  DamageFactor "Extreme", 0.0
  DamageFactor "Player", 0.1
  DamageFactor "Players", 0.02
  DamageFactor "PyroShot", 0.1
  DamageFactor "PlayerPyro", 0.1
  DamageFactor "PDTPuff", 0.1
  DamageFactor "Explosion", 0.1
  DamageFactor "NuclearFire", 0.01
  DamageFactor "BFG9500Ball", 0.25
  DamageFactor "BFGSplash", 0.25
  DamageFactor "UpBFG9500Ball", 0.25
  DamageFactor "UpBFGSplash", 0.15
  DamageFactor "PDTBFG", 0.03
  DamageFactor "PDTBFGTracer", 0.03
  DamageFactor "PlayerDevBall", 0.02
  DamageFactor "PlayerDevBall2", 0.02
  DamageFactor "PlayerDevTracer", 0.02
  DamageFactor "PlayerDBFG2", 0.65
  DamageFactor "PlayerDBFG10K2", 0.65
  DamageFactor "PlayerDBFGSplash2", 0.65
  DamageFactor "PlayerBHole", 0.05
  DamageFactor "PlayerNemesisPlasma", 0.01
  DamageFactor "Legendary", 0.015
  DamageFactor "LegendaryPlayer", 0.015
  DamageFactor "PlayerHellfire", 0.1
  DamageFactor "SuperWeapon", 0.0
  DamageFactor "LegendaryGuruPlayer", 0.015
  DamageFactor 0.05
  DamageFactor "SatanGuard", 0.0
  DamageFactor "AbyssalSatyr", 0.0
  DamageFactor "Moloch", 0.0
  DamageFactor "Exos", 0.0
  DamageFactor "ZombieDev", 0.0
  DamageFactor "Terminator", 0.0
  DamageFactor "AdvancedImp", 0.0
  DamageFactor "Legendary1", 0.0
  DamageFactor "LegendaryGuru", 0.0
  DamageFactor "UltimateLegendary", 0.0
  DamageFactor "Nobles", 0.0
  DamageFactor "VileFires", 0.0
  DamageFactor "Shadow", 0.0
  DamageFactor "DarkBruiserBFG10K", 0.0
  DamageFactor "Cybers", 0.0
  DamageFactor "Hell", 0.0
  DamageFactor "Commander", 0.0
  DamageFactor "Baby15K", 0.0
  DamageFactor "Cyber10K", 0.0
  DamageFactor "DemolisherEx", 0.0
  DamageFactor "DarkDemoEx", 0.0
  DamageFactor "CerChainguns", 0.0
  DamageFactor "CerEnergyBall", 0.0
  DamageFactor "LegMind", 0.0
  DamageFactor "BeheComet", 0.0
  DamageFactor "UBDTR", 0.0
  DamageFactor "NobleComet", 0.0
  DamageFactor "CacoComet", 0.0
  DamageFactor "SoulToxic", 0.0
  DamageFactor "Cacolich", 0.0
  DamageFactor "CadaverRocket", 0.0
  DamageFactor "HellComet", 0.0
  DamageFactor "HFCyber", 0.0
  DamageFactor "DBFG2", 0.0
  DamageFactor "DBFG10K2", 0.0
  DamageFactor "DBFGSplash2", 0.0
  DamageFactor "MagaReimu", 0.0
  DamageFactor "Mainyu", 0.0
  DamageFactor "Mokou", 0.0
  Species "Mokou"
  ActiveSound " "
  DeathSound " "
  SeeSound " "
  Obituary "%o became no more from Mokou."
  Tag "\c[w6]Mokou\c-"
  var int user_music;
  var int user_missile;
  var int user_teleloop;
  var int user_script;
  var int user_summon;
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("Disable2hu") == 1, "Remove")
	TNT1 A 0 A_SpawnItemEx("MokouAura",0,0,0,0,0,0,0,SXF_SETMASTER)
  SpawnLoop:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",1)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    ZMOK ABCDEFG 3 A_LookEx(LOF_FULLVOLSEESOUND,0,0,0,360,"See2")
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("Cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
  See2:
  	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2049)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_JumpIf(user_script == 1,7)
    TNT1 A 0 ACS_NamedExecuteAlways("MokouShit")
	TNT1 A 0 ACS_NamedExecuteAlways("MokouFuckery")
	TNT1 A 0 A_PlaySound("Mokou/Active",2,0.8,0,ATTN_NONE)
	TNT1 A 0 A_Quake(5,338,0,3000,0)
	TNT1 A 0 A_SetUserVar("user_script",1)
    ZMOK HIJKLM 3
	ZMOK N 418
	ZMOK OPQRS 3
    TNT1 A 0 A_PlaySound("MReimu/Cast2")
	TNT1 A 0 A_SpawnItemEx("MReimuCastEffect1")
	ZMOK HIJKLM 4
	TNT1 A 0 A_PlaySound("superlaser",7,1.0,0,0.2)
	ZMOK NONONONONONONONONONONONONONONONONONONONONONONONO 3 A_CustomMissile("MReimuLaser",30)
    ZMOK PQRSHIJKLM 6
	TNT1 A 0 A_Playsound("brain/spit",4,1.0,0,ATTN_NONE)
	TNT1 A 0 Radius_Quake(8,128,0,100,0)
	TNT1 A 0 A_SetUserVar("user_summon",1)
	ZMOK NONONONONONONO 6 A_SpawnItemEx("MReimuCastEffect3",0,0,60)
	TNT1 AAA 0 A_SpawnItemEx("MokouClone",0,0,0,random(1,5),0,random(0,5),random(0,360),SXF_NOCHECKPOSITION|SXF_SETMASTER,0,tid)
	ZMOK NONONO 6 A_SpawnItemEx("MReimuCastEffect3",0,0,60)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_NoGravity
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_ChangeFlag("FLOAT",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    Goto See
  Idle:
	TNT1 A 0 A_Look
    ZMOK AAA 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK BBB 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK CCC 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK DDD 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK EEE 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK FFF 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK GGG 1 A_Wander
	Loop
  See:
  	TNT1 A 0 A_NoGravity
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_ChangeFlag("FLOAT",1)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
    TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2049)
	TNT1 A 0 A_SetUserVar("user_music",1)
    ZMOK AAABBBCCCDDD 1 A_Chase
	TNT1 A 0 A_Jump(30,"Teleport","Teleport2")
	ZMOK EEEFFFGGG 1 A_Chase
	TNT1 A 0 A_Jump(30,"Teleport","Teleport2")
    Loop
  Teleport:
	ZMOK A 1 A_UnSetShootable
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeOut(0.5,0)
	ZMOK A 2 
	ZMOK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZMOK AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZMOK A 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeIn(0.5)
	ZMOK I 1 A_SetShootable
	Goto See
  Teleport2:
	TNT1 A 0 A_ChangeFlag("NOCLIP",1)
	ZMOK A 1 A_UnSetShootable
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeOut(0.5,0)
	ZMOK A 2 
	TNT1 A 0 A_SetUserVar("user_teleloop",random(0,100))
  Teleport2Loop:
	TNT1 A 0 A_JumpIf(user_teleloop >= 300,"Teleport2End")	 
	TNT1 A 0 A_SetUserVar("user_teleloop",user_teleloop+1)
	TNT1 AAAAAAAAAA 0 A_Chase("Teleport2End","",CHF_NOPLAYACTIVE)
	TNT1 A 1 A_Chase("Teleport2End","",CHF_NOPLAYACTIVE)
	Loop
  Teleport2End:
	ZMOK A 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeIn(0.5)
	TNT1 A 0 A_ChangeFlag("NOCLIP",0)
	ZMOK A 1 A_SetShootable
	Goto See
  Missile:
    TNT1 A 0 A_Jump(1,"NemesisBall")
    TNT1 A 0 A_Jump(80,"DarkMatterStorm","SuperLaser","Distortion","BigOrb","ShinkiAttack4","FireRain","UroSuperLaser")
    //TNT1 A 0 A_Jump(256,"SkullShots","DarkMatter","SuperHomingBalls","CloseSwordSpawner","SpiralSwordSpawner","SuperBalls")
	TNT1 A 0 A_Jump(256,"SkullShots","DarkMatter","SuperHomingBalls","SuperBalls","Orbs1","PlamexisLaser","MagicMissile","UroLasers","MiniDTBFG","KnifeIntensifies")
    Goto SuperHomingBalls
  SkullShots:
    ZMOK HIJKLM 6
	TNT1 A 0 A_SetUserVar("user_missile",0)
	Goto SkullShotLoop
  SkullShotLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 40,"SkullShotEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	ZMOK N 0 bright A_CustomMissile("MReimuSkullShotBounce",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK N 3 bright A_CustomMissile("MReimuSkullShotBounce",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK N 0 bright A_CustomMissile("MReimuSkullShotBounce",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK O 3 bright A_CustomMissile("MReimuSkullShotBounce",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	Loop
  SkullShotEnd:
	ZMOK PQRS 6
	Goto See
  DarkMatter:
    ZMOK HIJKLM 6
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,0)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,15)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,-30)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,30)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatter",30,0,-15)
	ZMOK OPQRSHIJKLM 3
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,0)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,5)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,10)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,-10)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,-5)
	ZMOK OPQRSHIJKLM 3
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,0)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,15)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,-30)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,30)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatter",30,0,-15)
	ZMOK OPQRSHIJKLM 3
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,0)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,5)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,10)
	ZMOK N 0 A_CustomMissile("MReimuDarkMatter",30,0,-10)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,-5)
	ZMOK OPQRS 3
    ZMOK HIJKLM 5
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatterHoming",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK OPQRS 4
	Goto See
  SuperHomingBalls:
	TNT1 A 0 A_PlaySound("MreimuBall/Cast")
	ZMOK HIJKLM 3
	ZMOK NONONONONONONO 3 Bright A_CustomMissile("MReimuHomingSuperBall",30,0,random(-60,60),CMF_OFFSETPITCH,random(0,15))
	ZMOK PQRS 3
	Goto See
  CloseSwordSpawner:
	TNT1 A 0 A_PlaySound("MReimuSword/Cast")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJKLM 3
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= 360,"CloseSwordSpawnerContinue")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+20)
	TNT1 A 0 A_CustomMissile("MReimuSwordSpawner1",30,0,user_missile)
	Goto CloseSwordSpawner+11
  CloseSwordSpawnerContinue:
	ZMOK NONONONONONONONONONONONONONOPQRS 3
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  SpiralSwordSpawner:
	TNT1 A 0 A_PlaySound("MReimuSword/Cast")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJKLM 3
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= 360,"SpiralSwordSpawnerContinue")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+20)
	TNT1 A 0 A_CustomMissile("MReimuSwordSpawnerSpiral",30,0,user_missile)
	Goto SpiralSwordSpawner+11
  SpiralSwordSpawnerContinue:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	ZMOK NONONONOPQRS 4
	Goto See
  SuperBalls:
    ZMOK HIJKLM 6
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRS 3
	Goto See
  DarkMatterStorm:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    ZMOK HIJKLM 6
	TNT1 A 0 A_SetUserVar("user_missile",0)
	Goto DarkMatterStormLoop
  DarkMatterStormLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 6,"DarkMatterStormEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 Radius_Quake(10,8,0,24,0)
	ZMOK NN 2 bright A_SpawnItemEx("MReimuDarkMatterRain2",Random(1250,-1250),Random(1250,-1250),0,0,0,0,SXF_NOCHECKPOSITION,0)
	ZMOK OO 2 bright A_SpawnItemEx("MReimuDarkMatterRain2",Random(1250,-1250),Random(1250,-1250),0,0,0,0,SXF_NOCHECKPOSITION,0)
	Loop
  DarkMatterStormEnd:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    ZMOK PQRS 6
	Goto See
  SuperLaser:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    TNT1 A 0 A_PlaySound("MReimu/Cast2")
	TNT1 A 0 A_SpawnItemEx("MReimuCastEffect1")
	ZMOK HIJKLM 4
	TNT1 A 0 A_PlaySound("superlaser",7,1.0,0,0.2)
	ZMOK NONONONONONONONONONONONONONONONONONONONONONONONO 3 A_CustomMissile("MReimuLaser",30)
    ZMOK PQRS 6
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  Distortion:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJKL 6
	TNT1 A 0 A_VileTarget("MReimuDistortion")
	ZMOK L 50
	ZMOK MN 5
	TNT1 A 0 A_VileAttack("exile/voidend",300,50,200,4.0,"MagaReimu")
	ZMOK OPQRS 8
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  NemesisBall:
    ZMOK HIJKLM 5
	TNT1 A 0 A_PlaySound("NemesisUp",1,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("VexedPatriarchChargeupNemesisBall",0,0,0,0,0,0,0,SXF_SETMASTER)
	ZMOK NNNNNNNNNNNNNNNNNNNN 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("Nemesis/FireBall",6,1.0,0,ATTN_NONE)
	ZMOK N 40 A_CustomMissile("VexedNemesisAltBallMonster",90,0,0,CMF_TRACKOWNER)
	ZMOK OPQRS 5
	Goto See
  Orbs1:
    ZMOK HIJKLM 5
	TNT1 A 0 A_SetUserVar("user_missile",0)
  Orbs1Loop:
	TNT1 A 0 A_JumpIf(user_missile >= 14,"OrbsEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_Playsound("remishot",0)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-20,20),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-20,20),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(70,110),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(70,110),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-110,-70),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-110,-70),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(160,200),CMF_ABSOLUTEANGLE)
	ZMOK N 8 A_CustomMissile("StrongUtsuhoOrb",30,0,random(160,200),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_Playsound("remishot",0)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(25,65),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(25,65),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-65,-25),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-65,-25),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-155,-115),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-155,-115),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(115,155),CMF_ABSOLUTEANGLE)
	ZMOK N 5 A_CustomMissile("StrongUtsuhoOrb",30,0,random(115,155),CMF_ABSOLUTEANGLE)
	Loop
  OrbsEnd:
	ZMOK OPQRS 5
	Goto See
  PlamexisLaser:
    ZMOK HIJKLM 7
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	ZMOK OPQRS 5
	Goto See
  BigOrb:
    ZMOK HIJKLM 5
	TNT1 A 0 A_Stop
	TNT1 A 0 ACS_NamedExecuteAlways("PlamexisWarning")
	TNT1 A 0 A_Playsound("Utsuho/alert",7,1,0,ATTN_NONE)
	TNT1 A 0 A_PlaySound("Arcradimus/BFGCharge")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging1",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging2",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging3",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging4",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging5",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_SpawnItemEx("ArcradimusBallCharging5",0,0,92)
	ZMOK NONONO 5
	TNT1 A 0 A_CustomMissile("ArcradimusBall",92,0,0,0)
	ZMOK NONONO 5
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	ZMOK PQRS 5
	Goto See
  Pyrocannon:
	ZMOK HIJKLM 5
	TNT1 A 0 A_Stop
	TNT1 A 0 ACS_NamedExecuteAlways("PlamexisWarning")
	TNT1 A 0 A_Playsound("Utsuho/alert",7,1,0,ATTN_NONE)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK NONONO 5 A_SpawnItemEx("HFCyberFlameSpawner")
	TNT1 A 0 A_FaceTarget
    TNT1 A 0 A_PlaySound("HFCyb/laugh2")	
	TNT1 A 0 A_SpawnItemEx("PlamHFCyberPyrocannon",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS)
	ZMOK NONONONONONO 5 A_SpawnItemEx("HFCyberFlameSpawner")
	TNT1 A 0 A_PlaySound("weapons/PCNNF",1)
	TNT1 A 0 A_CustomMissile("PyroShot",58,-26,0)
	ZMOK NONONO 5 A_SpawnItemEx("HFCyberFlameSpawner")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  FireRain:
	ZMOK HIJKLM 5
	TNT1 A 0 A_Stop
	TNT1 A 0 ACS_NamedExecuteAlways("PlamexisWarning")
	TNT1 A 0 A_Playsound("Utsuho/alert",7,1,0,ATTN_NONE)
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK NONONONONONO 5  
	TNT1 A 0 A_SetUserVar("user_missile",0)
  FireRainLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 8,"FireRainEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	ZMOK NONONO 5 A_SpawnItemEx("PlamexisFireRainSpawner",random(-1500,1500),random(-1500,1500),0,0,0,0,SXF_NOCHECKPOSITION)
	Loop
  FireRainEnd:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	ZMOK NONONONONONO 5
	Goto See
  MagicMissile:
    ZMOK HIJ 2
	ZMOK KL 4
	ZMOK M 0 A_CustomMissile("UroMagicMissile",30,0,0)
	ZMOK MN 5
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,20)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,-20)
	ZMOK NO 5
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,0)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,45)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,-45)
	ZMOK OP 5
	ZMOK O 0 A_CustomMissile("UroMagicMissile",30,0,20)
	ZMOK O 0 A_CustomMissile("UroMagicMissile",30,0,-20)
	ZMOK PQRS 6
	Goto See
  UroLasers:
    ZMOK HIJKLM 6
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK N 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK N 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK O 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK O 8
	ZMOK PQRS 5
	Goto See
  UroSuperLaser:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJLKM 4
    TNT1 A 0 A_Playsound("remsee",7,1,0,ATTN_NONE)
	ZMOK NONONOPQRS 4
	ZMOK HI 6
	TNT1 A 0 Thing_Stop(0)
	ZMOK JKLM 8
    TNT1 A 0 A_Playsound("superlaser",7,1,0,ATTN_NONE)
	TNT1 A 0 A_CustomMissile("UroSuperLaser",30)
	ZMOK N 175
	ZMOK OPQRS 8
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  MiniDTBFG:
	ZMOK HIJKLM 8
	ZMOK NONONO 8 A_CustomMissile("TatsuyaMiniDTBFG",32,0,random(-15,15))
	ZMOK NONONO 8 A_CustomMissile("TatsuyaMiniDTBFG",32,0,random(-15,15))
	Goto See
  KnifeIntensifies:
	ZMOK HIJKLM 5 A_Facetarget
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 3
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+192, 60, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 3
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 6
	Goto See
  ShinkiAttack4:
    ZMOK HIJK 7 A_Facetarget
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,40)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-40)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,40)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,60)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,80)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,100)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,120)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,140)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,160)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,180)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,200)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,220)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,240)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,260)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,280)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,300)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,320)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,340)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,40)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-40)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,40)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,60)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,80)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,100)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,120)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,140)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,160)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,180)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,200)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,220)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,240)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,260)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,280)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,300)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,320)
	ZMOK N 0 A_CustomMissile("ShinkiOrb2",30,0,340)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK LM 3 A_FaceTarget
	ZMOK N 0 A_Playsound("remishot",0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,20)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,0)
	ZMOK N 0 A_CustomMissile("ShinkiLightTunnel2",30,0,-20)
	ZMOK OPQRS 3
	Goto See
  Death:
	TNT1 A 0 A_ChangeFlag("LOWGRAVITY",1)
	TNT1 A 0 A_ChangeFlag("NOGRAVITY",0)
	TNT1 A 0 A_ChangeFlag("FLOAT",0)
	TNT1 A 0 A_PlaySound("uroboros/death",2,0.8,0,ATTN_NONE)
	TNT1 A 0 A_KillChildren
    ZMOK A 45
	TNT1 A 0 A_NoBlocking
	//TNT1 AA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)
	TNT1 A 0 A_Quake(4,50,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK A 60
	TNT1 A 0 A_Quake(4,50,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK A 60
	TNT1 A 0 A_Quake(4,30,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK A 30
	TNT1 A 0 A_Quake(5,15,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK A 15
	TNT1 A 0 A_Quake(7,7,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK A 7
	TNT1 A 0 A_RemoveChildren(1)
	TNT1 A 0 A_Quake(9,200,0,3000,0)
	TNT1 A 0 A_PlaySound("realdead",2,0.8,0,ATTN_NONE)
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisHealthBonusMax",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisArmorBonus64",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("NemesisOmegaSphere",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAAAA 0 A_SpawnItemEx("LegAmmoSphere",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 AAAAAA 0 A_SpawnItemEx("CapacityCombatPack",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("TrueLegendaryRune2",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("AgilityRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("LegendaryRune2",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("VitalityRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("NemesisRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("EnragedLegendaryRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	//TNT1 A 0 A_SpawnItemEx("DemonCustomRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	//TNT1 A 0 A_SpawnItemEx("DevilCustomRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	//TNT1 A 0 A_SpawnItemEx("SatanCustomRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	//TNT1 A 0 A_SpawnItemEx("RavenCustomRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("DistortionRune",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("DemonicChalice",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("SkullOfPower",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("NewNemesis",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Blackhole Generator",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("ArmageddonCannon",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Stingray",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Zen",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Nemesis BFG",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("BFG2704",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("D-BFG",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("BLG",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("SubliminationSword",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Vilestaff",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("Unmaker",0,0,8,random(0,8),random(0,8),2,random(0,360))
	TNT1 A 0 A_SpawnItemEx("SignetOfNecromancy",0,0,8,random(0,8),random(0,8),2,random(0,360),0,50)
	TNT1 A 0 A_SpawnItemEx("Deathwind",0,0,8,random(0,8),random(0,8),2,random(0,360),0,100)
	TNT1 A 0 ACS_NamedExecuteAlways("ResetSky",0)
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SpawnItemEx("RedBossDeathExplode",0,0,32)
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 0 A_SpawnItemEx("Red2huBossDeathFlame",0,0,20,random(-3,3),random(-3,3),random(-3,3))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	TNT1 AAAAAAAAAAA 1 A_SpawnItemEx("Red2huBossDeathFlame3",0,0,random(5,55),random(-15,15),random(-15,15),random(-15,30))
	ZMOK AAABBBCCCDDDEEE 1 A_FadeOut(0.1)
	Stop
  Null:
	TNT1 A 0 A_RemoveChildren(1)
	TNT1 A 0 ACS_NamedExecuteAlways("ResetSky",0)
	TNT1 A 1
	Stop
  }
}

Actor MokouClone : Mokou
{
Health 25000
+NOTARGET
-COUNTKILL
+THRUSPECIES
-BOSS
+FLOAT
+NOGRAVITY
-MISSILEMORE
DamageFactor 0.2
DamageFactor "Mokou", 0.0
PainChance "MokouDeath", 256
SeeSound " "
DeathSound " "
ActiveSound " "
Tag "\c[d7]Mokou \c[z5](Clone)\c-"
States
  {
  Spawn:
    ZMOK A 6
	TNT1 A 0 A_SpawnItemEx("MokouAura",0,0,0,0,0,0,0,SXF_SETMASTER)
    ZMOK HIJKLMNOPQRS 6
  Idle:
	TNT1 A 0 A_Stop
	TNT1 A 0 A_Look
    ZMOK AAA 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK BBB 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK CCC 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK DDD 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK EEE 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK FFF 1 A_Wander
	TNT1 A 0 A_Look
    ZMOK GGG 1 A_Wander
	Loop
  Teleport:
	ZMOK A 1 A_UnSetShootable
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeOut(0.5,0)
	ZMOK A 2
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	TNT1 A 0 A_PlaySound("boss/teleport",7)
	TNT1 AAAAAAAAA 0 A_SpawnItemEx("MReimuSmoke",0,0,32,random(-3,3),random(-3,3),random(-3,3),random(0, 360))
	ZMOK AA 1 A_FadeIn(0.5)
	ZMOK I 1 A_SetShootable
	Goto See
  See:
	//Goto See3
  //See3:
	TNT1 A 0 A_FadeIn(1.0)
	TNT1 A 0 A_Jump(30,"Teleport")
    ZMOK AAABBBCCCDDD 1 A_Chase
	TNT1 A 0 A_Jump(30,"Teleport")
	ZMOK EEEFFFGGG 1 A_Chase
    Loop
  Missile:
    //TNT1 A 0 A_Jump(256,"SkullShots","DarkMatter","SuperHomingBalls","CloseSwordSpawner","SpiralSwordSpawner","SuperBalls")
	TNT1 A 0 A_Jump(256,"SkullShots","DarkMatter","SuperHomingBalls","SuperBalls","Orbs1","PlamexisLaser","MagicMissile","UroLasers","MiniDTBFG","KnifeIntensifies")
    Goto SuperHomingBalls
  SkullShots:
    ZMOK HIJKLM 6
	TNT1 A 0 A_SetUserVar("user_missile",0)
  SkullShotLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 5,"SkullShotEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	ZMOK N 0 bright A_CustomMissile("MReimuSkullShot",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK N 4 bright A_CustomMissile("MReimuSkullShot",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK N 0 bright A_CustomMissile("MReimuSkullShot",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	ZMOK O 4 bright A_CustomMissile("MReimuSkullShot",30,0,random(-20,20),CMF_OFFSETPITCH,random(-4,4))
	Loop
  SkullShotEnd:
	ZMOK PQRS 6
	Goto See
  DarkMatter:
    ZMOK HIJKLM 6
	ZMOK N 0 bright A_CustomMissile("MReimuDarkMatter",30,0,0)
	ZMOK N 0 bright A_CustomMissile("MReimuDarkMatter",30,0,15)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatter",30,0,-15)
	ZMOK OPQRSHIJLKM 3
	ZMOK N 0 bright A_CustomMissile("MReimuDarkMatter",30,0,0)
	ZMOK N 0 bright A_CustomMissile("MReimuDarkMatter",30,0,5)
	ZMOK N 4 bright A_CustomMissile("MReimuDarkMatter",30,0,-5)
	ZMOK OPQRS 3
    ZMOK HIJKLM 5
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatter",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatter",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK NNN 0 A_CustomMissile("MReimuDarkMatter",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK N 2 bright A_CustomMissile("MReimuDarkMatter",30,0,random(-30,30),CMF_OFFSETPITCH,frandom(-4,4))
	ZMOK OPQRS 4
	Goto See
  SuperHomingBalls:
	TNT1 A 0 A_PlaySound("MreimuBall/Cast")
	ZMOK HIJKLM 3
	ZMOK NONONO 5 Bright A_CustomMissile("MReimuHomingSuperBall",30,0,random(-40,40),CMF_OFFSETPITCH,random(0,15))
	ZMOK PQRS 3
	Goto See
  CloseSwordSpawner:
	TNT1 A 0 A_PlaySound("MReimuSword/Cast")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJKLM 3
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= 360,"CloseSwordSpawnerContinue")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+60)
	TNT1 A 0 A_CustomMissile("MReimuSwordSpawner1",30,0,user_missile)
	Goto CloseSwordSpawner+10
  CloseSwordSpawnerContinue:
	ZMOK NONONONONONONONONONONONONONOPQRS 3
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	Goto See
  SpiralSwordSpawner:
	TNT1 A 0 A_PlaySound("MReimuSword/Cast")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	ZMOK HIJKLM 3
	TNT1 A 0 A_SetUserVar("user_missile",0)
	TNT1 A 0 A_JumpIf(user_missile >= 360,"SpiralSwordSpawnerContinue")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+60)
	TNT1 A 0 A_CustomMissile("MReimuSwordSpawnerSpiral",30,0,user_missile)
	Goto SpiralSwordSpawner+10
  SpiralSwordSpawnerContinue:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	ZMOK NONONONOPQRS 4
	Goto See
  SuperBalls:
    ZMOK HIJKLM 6
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRSHIJKLM 3
	ZMOK NNNNOOOO 1 bright A_CustomMissile("MReimuSuperBall",30,0,random(-15,15))
	ZMOK PQRS 3
	Goto See
  Orbs1:
    ZMOK HIJKLM 5
	TNT1 A 0 A_SetUserVar("user_missile",0)
  Orbs1Loop:
	TNT1 A 0 A_JumpIf(user_missile >= 14,"OrbsEnd")	 
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	TNT1 A 0 A_Playsound("remishot",0)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-20,20),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-20,20),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(70,110),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(70,110),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-110,-70),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-110,-70),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(160,200),CMF_ABSOLUTEANGLE)
	ZMOK N 8 A_CustomMissile("StrongUtsuhoOrb",30,0,random(160,200),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_Playsound("remishot",0)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(25,65),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(25,65),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-65,-25),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-65,-25),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-155,-115),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(-155,-115),CMF_ABSOLUTEANGLE)
	TNT1 A 0 A_CustomMissile("StrongUtsuhoOrb",30,0,random(115,155),CMF_ABSOLUTEANGLE)
	ZMOK N 5 A_CustomMissile("StrongUtsuhoOrb",30,0,random(115,155),CMF_ABSOLUTEANGLE)
	Loop
  OrbsEnd:
	ZMOK OPQRS 5
	Goto See
  PlamexisLaser:
    ZMOK HIJKLM 7
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	TNT1 A 0 A_PlaySound("Plamexis/Ding",1)
	ZMOK N 25 A_CustomMissile("PlamexisLaser",30)
	ZMOK OPQRS 5
	Goto See
  MagicMissile:
    ZMOK HIJ 2
	ZMOK KL 4
	ZMOK M 0 A_CustomMissile("UroMagicMissile",30,0,0)
	ZMOK MN 5
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,20)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,-20)
	ZMOK NO 5
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,0)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,45)
	ZMOK N 0 A_CustomMissile("UroMagicMissile",30,0,-45)
	ZMOK OP 5
	ZMOK O 0 A_CustomMissile("UroMagicMissile",30,0,20)
	ZMOK O 0 A_CustomMissile("UroMagicMissile",30,0,-20)
	ZMOK PQRS 6
	Goto See
  UroLasers:
    ZMOK HIJKLM 6
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK N 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK N 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK O 8
	ZMOK N 0 A_CustomMissile("UroLaser",30,0,0)
	ZMOK O 8
	ZMOK PQRS 5
	Goto See
  MiniDTBFG:
	ZMOK HIJKLM 8
	ZMOK NONONO 8 A_CustomMissile("TatsuyaMiniDTBFG",32,0,random(-15,15))
	Goto See
  KnifeIntensifies:
	ZMOK HIJKLM 5 A_Facetarget
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 3
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+192, 60, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 3
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,0,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak",30,0,-5,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-10,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak2",30,0,-15,CMF_OFFSETPITCH,-2)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeWeak3",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeWeak3",30,0,-20)
	TNT1 A 0 ThrustThing(angle*256/360+64, 31, 1, 0)
	ZMOK OPQRS 3
	TNT1 A 0 Thing_Stop(0)
	ZMOK HIJKLM 4
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,0)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-5)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-10)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,-15)
	ZMOK N 0 A_CustomMissile("LamiaRedKnifeStrong",30,0,20)
	ZMOK N 3 A_CustomMissile("LamiaRedKnifeStrong",30,0,-20)
	ZMOK OPQRS 6
	Goto See
  Pain.MokouDeath:
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_Die
	Goto Death
  Death:
    TNT1 A 0 A_RemoveChildren(1)
    ZMOK AAABBBCCCDDDEEE 1 A_FadeOut(0.1)
	TNT1 A 0 A_KillMaster
	Stop
	}
}

ACTOR MokouAura
{
  RenderStyle Add
  Scale 1.0
  +NOINTERACTION
  +CLIENTSIDEONLY
  +ISMONSTER
  States
  {
  Spawn:
    MOKA "AAABBBCCCDDDEEEFFFGGGHHHIII" 1 Bright A_Warp(AAPTR_MASTER,0,0,0,0,WARPF_ABSOLUTEANGLE|WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
    Loop
	}
}