ACTOR ZamasuHellKnight
{
  Monster
  Health 12500
  Radius 18
  Height 48
  Speed 12
  BloodColor "Black"
  PainChance 45 
  PainChance "Explosion", 128
  MeleeDamage 16
  DamageFactor 0.1
Damagefactor "Acid", 2.5
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
  DropItem "Zamasu Plasmatic Cannon", 256, 33
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisHealthBonusMax", 256, 32
  DropItem "NemesisArmorBonus32", 256
  DropItem "NemesisSphere", 100, 1
  DropItem "LegendaryRune", 128, 1
  DropItem "ZamasuDemonAmmoBox", 200 
  DropItem "ZamasuDemonAmmo", 250 
  DropItem "Nemesis Rifle", 200, 1
  DropItem "ZamasuArmor", 256, 1
  DropItem "ZamasuAgilityRune", 128, 1 
  DropItem "ZamasuWeakRune", 128, 1
  DropItem "ZamasuVitalityRune", 256, 1
  SeeSound "ZamasuHellKnightSee"
  PainSound "ZamasuHellKnightPain"
  DeathSound "ZamasuHellKnightDeath"
  ActiveSound "NemesisHK/active"
  Obituary "%o couldn't comprehend the dark powers of the Zamasu Hell Knight!"
  HitObituary "%o got a Zamasu Hell Knight's fist stuck in their skull."
  Tag "\c[s5]Zamasu Hell Knight\c-"
  +BOSS
  var int user_portal;
  var int user_delay;
  var int user_missile;
  var int user_music;
  States
  {
Spawn:
	TNT1 A 0
	TNT1 A 0 A_PlaySoundEx("NDemonHeart/Pickup","Voice",0,2)
Idle:
	TNT1 A 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK AB 10 Bright A_Look
	Loop
Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("HellKnight",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,6736)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_Jump(100,"Rush")
	ZAHK AA 3 Bright A_Chase
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("WhiteWalkFire",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	ZAHK BB 3 Bright A_Chase
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("WhiteWalkFire",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	ZAHK CC 3 Bright A_Chase
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("WhiteWalkFire",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	ZAHK DD 3 Bright A_Chase
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("WhiteWalkFire",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 A 0 A_Jump(32,"Teleport")
	Loop
  Rush:
	ZAHK A 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK A 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase  
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK B 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK B 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK C 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK C 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase  
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK D 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	ZAHK D 2 Bright A_SpawnItemEx("NLNGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TNT1 AAAA 0 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 AAA 0 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryHoofStep",0,0,0,0)
	TNT1 A 0 A_Jump(24,"Teleport")
	TNT1 A 0 A_Jump(75,"See")
	Loop
  Teleport:
	ZAHK P 1 Bright A_UnSetShootable
	TNT1 AAAA 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK PPPPPPPPPP 1 Bright A_FadeOut(0.1,0)
	ZAHK P 2 Bright
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 Bright A_Wander
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 Bright A_Wander
	ZAHK P 1 Bright A_PlayWeaponSound("boss/teleport")
	TNT1 AAAA 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK PPPPPPPPPP 1 Bright A_FadeIn(0.1)
	ZAHK P 1 Bright A_SetShootable
	TNT1 A 0 A_Jump(64,"See")
	TNT1 A 0 A_JumpIfTargetInLOS("Missile")
	Goto See	
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(127,"Spread","Hugger","Rage","BestAttack","Rain")
	TNT1 A 0 A_Jump(20,"Portal")
	TNT1 A 0 A_Jump(100,"9Comets","WhiteComet")
  Normal:
	ZAHK EF 3 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall",32,0,-8)
	TNT1 A 0 A_CustomMissile("NemesisRocket",32,0,-4)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket",32,0,4)
	ZAHK G 3 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)
	ZAHK ST 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall",32,0,8)
	TNT1 A 0 A_CustomMissile("NemesisRocket",32,0,4)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket",32,0,-4)
	ZAHK U 2 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)  
	ZAHK ST 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall",32,0,8)
	TNT1 A 0 A_CustomMissile("NemesisRocket",32,0,4)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket",32,0,-4)
	ZAHK U 1 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)
	ZAHK ST 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall",32,0,8)
	TNT1 A 0 A_CustomMissile("NemesisRocket",32,0,4)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket",32,0,-4)
	ZAHK U 1 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)
	ZAHK ST 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall",32,0,8)
	TNT1 A 0 A_CustomMissile("NemesisRocket",32,0,4)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket",32,0,-4)
	ZAHK U 1 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)
	TNT1 A 0 A_Jump(127,"Spread")
	Goto See
  Spread:
	ZAHK PQ 9 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,18)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-18)
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,15)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-15)
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,12)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-12)
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,9)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-9)
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,6)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-6)  
	TNT1 A 0 A_CustomMissile("NemesisLegNobleBall2",32,0,3)  
	TNT1 A 0 A_CustomMissile("Nemesis10kProjectile",32,0,-3)
	ZAHK R 8 Bright A_CustomMissile("NemesisLegNobleBall2",32,0,0)
	TNT1 A 0 A_Jump(127,"Hugger")
	Goto See
  Hugger:
	ZAHK RQ 9 Bright A_FaceTarget
	ZAHK PPPP 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK P 0 A_CustomMissile("NemesisLegNobleBall3",32,20,0)
	ZAHK P 0 Bright A_CustomMissile("NemesisCyberBFG9500Ball",32,-20,0)
	ZAHK PPPP 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(80,"WhiteComet")
	Goto See  
  WhiteComet:
	ZAHK EF 7 Bright A_FaceTarget
	ZAHK G 2 Bright A_CustomMissile("NemesisHKComet",32,0,0)
	TNT1 A 0 A_CustomMissile("NemCyberProjectile",32,0,6)
	ZAHK G 4 Bright A_CustomMissile("Nemesis10kProjectile",32,0,-6)
	ZAHK ST 7 Bright A_FaceTarget
	ZAHK U 2 Bright A_CustomMissile("NemesisHKComet",32,0,0)
	TNT1 A 0 A_CustomMissile("NemCyberProjectile",32,0,6)
	ZAHK U 4 Bright A_CustomMissile("Nemesis10kProjectile",32,0,-6)
	TNT1 A 0 A_Jump(80,"9Comets")
	Goto See
  9Comets:
	ZAHK PQ 8 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisHKComet", 32, 0, -5)
	TNT1 A 0 A_CustomMissile("NemesisRocket", 32, 0, 5)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket", 32, 0, -10)
	TNT1 A 0 A_CustomMissile("NemesisHKComet", 32, 0, 10)
	TNT1 A 0 A_CustomMissile("NemesisRocket", 32, 0, -15)
	TNT1 A 0 A_CustomMissile("NemesisCyberHomingRocket", 32, 0, 15)
	TNT1 A 0 A_CustomMissile("NemesisHKComet", 32, 0, -20)
	TNT1 A 0 A_CustomMissile("NemesisRocket", 32, 0, 20)
	ZAHK R 7 Bright A_CustomMissile("NemesisCyberHomingRocket", 32, 0, 0)
	TNT1 A 0 A_Jump(127,"Rage")
	Goto See
  Rage:
	ZAHK Q 1 Bright A_PlaySound("NemesisHK/sight")
	ZAHK Q 1 Bright A_FaceTarget
	ZAHK Q 1 Bright A_SetUserVar("user_missile",0)
	ZAHK RRRR 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK QQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
  Raging:
	TNT1 A 0 A_JumpIf(user_missile >= 28,"See")   
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	ZAHK QQ 0 Bright A_CustomMissile("NemesisLegNobleBall3Small",0,0,random(0,359))
	ZAHK QQ 3 Bright A_FaceTarget
	ZAHK QQ 0 Bright A_CustomMissile("NemesisLegNobleBall3Small",0,0,random(0,359)) 
	ZAHK QQ 3 Bright A_FaceTarget
	ZAHK QQ 0 Bright A_CustomMissile("NemesisLegNobleBall3Small",0,0,random(0,359))  
	ZAHK QQ 3 Bright A_FaceTarget
	ZAHK QQ 0 Bright A_CustomMissile("NemesisLegNobleBall3Small",0,0,random(0,359)) 
	ZAHK QQ 3 Bright A_FaceTarget
	ZAHK QQ 0 Bright A_CustomMissile("NemesisLegNobleBall3Small",0,0,random(0,359))  
	ZAHK Q 4 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  SuperRage:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_SetInvulnerable
	ZAHK Q 1 Bright A_PlaySound("NemesisHK/sight")
	ZAHK Q 1 Bright A_FaceTarget
	ZAHK Q 1 Bright A_SetUserVar("user_missile",0)
	ZAHK RRRRRRRRRRRRRRRRRRR 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK QQQQQQQQQQQQQQQQQQQ 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
  SuperRaging:
	TNT1 A 0 A_JumpIf(user_missile >= 14,"See")   
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	ZAHK Q 0 Bright A_CustomMissile("NemesisHKSuperBall",32,0,random(0,359))  
	ZAHK Q 8 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  BestAttack:
	ZAHK Q 1 Bright A_PlaySound("NemesisHK/sight")
	ZAHK P 2 Bright A_FaceTarget
	TNT1 A 0 A_SetInvulnerable
	ZAHK PPPPPPPPPPPPPPPPP 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQQQQQQQQQQ 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK R 2 Bright A_FaceTarget
	TNT1 A 0 A_UnSetInvulnerable
	ZAHK R 8 Bright A_CustomMissile("NemesisGuruBall",32,0,0)
	Goto See
  Rain:
	ZAHK P 2 Bright A_FaceTarget
	ZAHK PPPPPPP 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,180)
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,90)
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,-90)
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,45)  
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,-45)
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,135)  
	TNT1 A 0 A_CustomMissile("NemesisCyberRailLaser",32,0,-135)
	ZAHK Q 8 Bright A_CustomMissile("NemesisCyberRailLaser",32,0,0)
	TNT1 A 0 A_SetInvulnerable
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 2 Bright A_FaceTarget
	ZAHK QQQQQQQQ 2 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  Portal:
	ZAHK Q 3 Bright A_JumpIf(user_portal >= 1,"BestAttack")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_PlaySound("brain/spit")
	TNT1 A 0 Radius_Quake(8,60,0,20,0)
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK R 3 Bright A_FaceTarget
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK R 3 Bright A_FaceTarget
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK R 3 Bright A_FaceTarget
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	ZAHK Q 3 Bright A_FaceTarget
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SetUserVar("user_delay",0)
	TNT1 A 0 A_Stop
	ZAHK Q 3 Bright A_SpawnItemEx("NemesisHKPortal",64,0,0,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION)
  PortalCharge:
	TNT1 AAA 0 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_JumpIf(user_delay >= 315,"PortalDone")
	TNT1 A 0 A_SetUserVar("user_delay",user_delay+1)
	//LRED G 0 HealThing(10)
	ZAHK P 3 Bright A_Stop
	Loop
  PortalDone:
	ZAHK P 3 Bright A_FaceTarget
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_UnSetInvulnerable
	TNT1 A 0 A_SetUserVar("user_portal",user_portal+1)
	TNT1 A 0 A_Jump(127,"Teleport")
	Goto See
  Melee:
	ZAHK EF 6 Bright A_FaceTarget
	ZAHK G 6 Bright A_MeleeAttack
	ZAHK ST 6 Bright A_FaceTarget
	ZAHK U 6 Bright A_MeleeAttack
	Goto See
  Pain:
	TNT1 A 0 A_Jump(2,"SuperRage")
	TNT1 A 0 A_Jump(8,"Rage")
	TNT1 A 0 A_Jump(70,"Teleport")
	TNT1 A 0 A_Jump(128,"PainMissile")
	ZAHK H 2
	ZAHK H 2 A_Pain
	Goto See
  Pain.Explosion:
  Pain.Mine:
	TNT1 A 0 A_Jump(32,"SuperRage")
	Goto Teleport
  PainMissile:
	TNT1 A 0 A_JumpIfHealthLower(600,"Portal")
	ZAHK H 2 Bright
	ZAHK H 2 Bright A_Pain
	Goto Missile
  Death:
	TNT1 A 0 A_StopSound(6)
	ZAHK I 8
	ZAHK J 8 A_Scream
	ZAHK K 8
	ZAHK L 8 A_NoBlocking
	ZAHK MN 8
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillChildren
	TNT1 A 0 A_KillMaster
	TNT1 A 0 A_Jump(100,"MoreStuff")
	ZAHK O -1
	Stop
  MoreStuff:
	ZAHK O 100
	TNT1 A 0 A_SpawnItem("HellionSmokeAttack")
	ZAHK OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 1 A_SpawnItem("NemesisHKItemRandomizer")
	ZAHK OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 1 A_SpawnItem("NemesisHKItemRandomizer")
	ZAHK O 1 A_SpawnItem("NemesisHKSuperItemRandomizer")
	ZAHK O -1
	Stop
  XDeath: 
	TNT1 A 0 A_StopSound(6)
	ZAHZ AB 5
	ZAHZ C 4 A_XScream
	ZAHZ D 4 A_SpawnItemEx("NemesisGibbedGenerator",0,0,0,0,0,0,0,128,0)
	ZAHZ E 3 A_Fall
	ZAHZ F 3 A_SpawnItem("BodyCrash",0,0,0,0)
	ZAHZ GH 3
	TNT1 A 0 A_BossDeath
	TNT1 A 0 A_KillChildren
	TNT1 A 0 A_KillMaster
	TNT1 A 0 A_Jump(100,"MoreStuff2")
	ZAHZ I -1
	Stop 
  MoreStuff2:
	ZAHZ I 100
	TNT1 A 0 A_SpawnItem("HellionSmokeAttack")
	ZAHZ IIIIIIIIIIIIIIIIIIIIIIIIIIIIII 1 A_SpawnItem("NemesisHKItemRandomizer")
	ZAHZ IIIIIIIIIIIIIIIIIIIIIIIIIIIIII 1 A_SpawnItem("NemesisHKItemRandomizer")
	ZAHZ I 1 A_SpawnItem("NemesisHKSuperItemRandomizer")
	ZAHZ I -1
	Stop  
  }
}