ACTOR ZamasuBehemoth
{
  Health 14500
  PainChance 20
  Speed 24
  Monster
  Scale 1
  Radius 48
  Height 64
  Scale 1.15
  Mass 9999
  DamageFactor 0.1
  BloodColor "Black"
  SeeSound "Blackannihilation/Sight"
  ActiveSound " "
  PainSound "Blackannihilation/Pain"
  DeathSound "Blackannihilation/Death"
  DropItem "1337 Big Fucking Gun!" 265
  DropItem "NemesisHealthBonusMax", 265, 65
  DropItem "NemesisArmorBonus32", 265, 65
  DropItem "NemesisHealthBonusMax", 265, 65
  DropItem "NemesisArmorBonus32", 265, 65
  DropItem "NemesisSphere", 265, 65
  DropItem "NLDemonAmmo", 265, 65
  DropItem "NLDemonAmmoBox", 265, 65
  DropItem "Nemesis Plasmatic Cannon", 265, 65
  DropItem "LegendaryPowerSphere", 265, 65
  DropItem "TrueLegendaryRune2", 265, 65
  DropItem "DoomSphereDust", 265, 65
  DropItem "SkullOfpower", 265, 65
  DropItem "Unbelieveabilitysphere", 265, 65
  DropItem "Unstabilitysphere", 265, 65
  DropItem "EnragedLegendaryRune", 265, 65
  DropItem "Spreadrune", 265, 65
  DropItem "Barbatos Cannon", 265, 65
  DropItem "LegDemonRune", 265, 65
  DropItem "NemesisBFG", 265, 65
  DropItem "PyroCannon", 265, 65
  DropItem "Demon tech Devastator", 265, 65
  DropItem "Demon tech BFG10k", 265, 65
  DropItem "ZamasuAgilityRune", 128, 1 
  DropItem "ZamasuWeakRune", 128, 1
  DropItem "ZamasuVitalityRune", 256, 1
  DamageFactor "UltimateLegendary", 0.0
 DamageFactor 0.1
DamageFactor "PDTBFG", 0.05
DamageFactor "PDTBFGTracer", 0.05
DamageFactor "BFGSplash", 0.25
DamageFactor "BFGSpray", 0.25
DamageFactor "PlayerDevBall", 0.025
DamageFactor "PlayerDevBall2", 0.025
DamageFactor "PlayerDTBFGRailgunSlug", 0.025
DamageFactor "PlayerDevTracer", 0.025
DamageFactor "ImpComet", 0.0
DamageFactor "Cyber10K", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "CadaverRocket", 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 "NobleCOmet", 0.0
DamageFactor "CacoComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "HellComet", 0.0
DamageFactor "Legendary1", 0.0
DamageFactor "T3rm", 0.0
DamageFactor "C0mm4nder", 0.0
DamageFactor "DBFG10K2", 0.0
DamageFactor "HFCyb3r", 0.0
DamageFactor "PlayerDBFG10K2", 0.0
DamageFactor "PlayerDTRG", 0.3
DamageFactor "DBFG2", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "PyroShot", 0.0
DamageFactor "PlayerPyro", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "Touhou", 0.0
DamageFactor "Hell", 0.0
DamageFactor "PlayerBHole", 0.0
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "SatanGuard", 0.0
DamageFactor "Explosion", 0.01
DamageFactor "NemesisBall", 0
DamageFactor "NemesisBeam", 0.3
  Obituary "%o didn't stand a chance against the Black Annihilation."
  Tag "\c[s5]Zamasu Behemoth\c-" 
  +SOLID
  +FLOORCLIP
  +MISSILEMORE
  +MISSILEEVENMORE
  +NORADIUSDMG
  +BOSS
  +QUICKTORETALIATE
  +DONTMORPH
  +FULLVOLACTIVE
  +DONTHURTSPECIES
  Var Int user_music;
  States
  {
Spawn:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	TNT1 A 0 A_PlaySoundEx("NDemonHeart/Pickup","Voice",0,2)
Idle:
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 C 8 A_Look
	Loop
Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("cyberdemon",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonstermusic",0,6712)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_Jump(100,"Rush") 
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AA 2 A_Chase
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 BB 2 A_Chase
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 CC 2 A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryBeefyStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 DD 2 A_Chase
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 EE 2 A_Chase
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 FF 2 A_Chase
	TNT1 A 0 A_Jump(35,"Teleport")
	Loop
  Rush:
	TNT1 A 0 A_SpawnItem("LegendaryBeefyStep",0,0,0,0)   
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 A 2 Bright
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 B 2 Bright
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 C 2 Bright
	TNT1 A 0 A_SpawnItem("LegendaryBeefyStep",0,0,0,0)
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 D 2 Bright
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 E 2 Bright
	TNT1 AAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAA 0 A_Chase
	ZMB2 F 2 Bright
	TNT1 A 0 A_Jump(30,"Teleport")
	TNT1 A 0 A_Jump(75,"See")
	Loop   
  Teleport:
	ZMB2 A 1 A_UnSetShootable
	TNT1 AAAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAAAAAAA 1  A_FadeOut(0.1,0)
	ZMB2 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZMB2 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	ZMB2 A 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAA 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner",random(-24,24),random(-24,24),0)
	ZMB2 AAAAAAAAAA 1 A_FadeIn(0.1)
	ZMB2 A 1 A_SetShootable
	Goto See	
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(128,2)
	TNT1 A 0 A_Jump(130,"BFG10K","IMYOURWORSTNIGHTMARE","NemesisCannonBouncers")
  Normal:
	TNT1 A 0 A_PlaySound("SZMSIT9")
	ZMB2 GG 1 A_FaceTarget
	TNT1 A 0 A_FaceTarget 
	TNT1 A 0 A_CustomMissile("NBehemothBFG9500Ball", 30, -30, Random(0, 6))
	ZMB2 H 2 A_CustomMissile("NBehemothBFG9500Ball", 30, 30, Random(0, -6))	
	TNT1 A 0 A_CustomMissile("NBehemothBFG9500Ball", 30, 30, Random(-7, -12))
	ZMB2 H 4 A_CustomMissile("NBehemothBFG9500Ball", 30, -30, Random(7, 12))
	ZMB2 IG 6 A_FaceTarget
	TNT1 A 0 A_CustomMissile("NBehemothBFG9500Ball", 30, -30, Random(0, 6))
	ZMB2 H 2 A_CustomMissile("NBehemothBFG9500Ball", 30, 30, Random(0, -6))	
	TNT1 A 0 A_CustomMissile("NBehemothBFG9500Ball", 30, 30, Random(-7, -12))
	ZMB2 H 4 A_CustomMissile("NBehemothBFG9500Ball", 30, -30, Random(7, 12))
	ZMB2 IG 6 A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonBall", 30, -30, Random(0, 6))
	ZMB2 H 2 A_CustomMissile("NemesisBehemothCannonBall", 30, 30, Random(0, -6))	
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonBall", 30, 30, Random(-7, -12))
	ZMB2 H 4 A_CustomMissile("NemesisBehemothCannonBall", 30, -30, Random(7, 12))
	ZMB2 IG 6 A_FaceTarget
	ZMB2 IG 6 A_Jump(102,"BFG10K","IMYOURWORSTNIGHTMARE","NemesisCannonBouncers")
	Goto See
  BFG10K:
	TNT1 A 0 A_PlaySound("SZMSIT8")
	ZMB2 F 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("star/fire",1)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonLaser",30,30,0,CMF_AIMOFFSET)
	ZMB2 H 8 A_CustomMissile("NemesisBehemothCannonLaser",30,-30,0,CMF_AIMOFFSET)
	ZMB2 IG 3 A_FaceTarget
	TNT1 A 0 A_PlaySound("star/fire",1)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonLaser",30,30,0,CMF_AIMOFFSET)
	ZMB2 H 8 A_CustomMissile("NemesisBehemothCannonLaser",30,-30,0,CMF_AIMOFFSET)
	ZMB2 IG 3 A_FaceTarget
	TNT1 A 0 A_PlaySound("star/fire",1)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonLaser",30,30,0,CMF_AIMOFFSET)
	ZMB2 H 8 A_CustomMissile("NemesisBehemothCannonLaser",30,-30,0,CMF_AIMOFFSET)
	ZMB2 IG 3 A_FaceTarget
    Goto See
  IMYOURWORSTNIGHTMARE:
	TNT1 A 0 A_PlaySound("SZMSIT6")
	ZMB2 GG 1 A_FaceTarget
	TNT1 A 0 A_FaceTarget 
	TNT1 A 0 A_CustomMissile("PyroShot", 30, -30, Random(0, 6))
	ZMB2 H 2 A_CustomMissile("Bomb", 30, 30, Random(0, -6))	
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser", 30, 30, Random(-7, -12))
	ZMB2 H 4 A_CustomMissile("HFCyber10K", 30, -30, Random(7, 12))
	ZMB2 IG 6 A_FaceTarget
    Goto See
  NemesisCannonBouncers:
	TNT1 A 0 A_PlaySound("NemesisCannon/Mode1",1)
	TNT1 A 0 A_PlaySound("NemesisBehemoth/Attack",2)
	ZMB2 DDDD 5 A_FaceTarget
	TNT1 A 0 A_FaceTarget 
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(0, 6))
	ZMB2 E 2 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(0, -6))
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)	
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(-7, -12))
	ZMB2 E 3 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(7, 12))
	ZMB2 DD 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(0, 6))
	ZMB2 E 2 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(0, -6))
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)	
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(-7, -12))
	ZMB2 E 3 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(7, 12))
	ZMB2 DD 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(0, 6))
	ZMB2 E 2 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(0, -6))
	TNT1 A 0 A_PlaySound("NemesisCannon/Fire",0)	
	TNT1 A 0 A_CustomMissile("NemesisBehemothCannonProj", 55, 30, Random(-7, -12))
	ZMB2 E 3 A_CustomMissile("NemesisBehemothCannonProj", 55, -30, Random(7, 12))
	ZMB2 DD 10 A_Jump(48,"BFG9K")
	Goto See
  Pain:	
	TNT1 A 0 A_Jump(45,"Teleport")
	ZMB2 J 6 A_Pain
	TNT1 A 0 A_Jump(156,"Missile")
	Goto See
  Death:
	ZMB2 G 6 A_StopSound(6)
	ZMB2 H 6 A_Scream
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	ZMB2 I 6 A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 AAAAA 0 A_CustomMissile("NBehemothLightning2",57,0,random(0,360),CMF_AIMDIRECTION)
	ZMB2 JKLMN 6
	ZMB2 N 100 A_KillMaster
	TNT1 A 0 A_Jump(100,"MoreStuff")
	TNT1 A 0 A_JumpIfInTargetInventory("NemesisFragmentToken",1,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NemesisFragment") == 0,2)
	TNT1 A 0 A_SpawnItemEx("NemesisFragmentSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,192)
	TNT1 A 0 A_BossDeath
	ZMB2 N -1
	Stop
	}
}

Actor INFZamasuBehemoth : ZamasuBehemoth
{
Tag "\c[s5]Zamasu Behemoth\c-" 
States
{
  Spawn:
    TNT1 A 0 A_Jump(140,"Remove")
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0
	TNT1 A 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	9S7D A 10 Bright A_Look
	Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("LegendaryBehemoth",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}