ACTOR DivineHellsmith : Hellsmith
{
//Creator: Nolram
//Origin: Infinity Gods
//Sprite: DSMT
//Title: "Divine God Hellsmith" 
Health 37666
+NOFEAR
+noicedeath
+NOTIMEFREEZE
+NORADIUSDMG
+NOEXTREMEDEATH
+LookAllAround
Species "Divine"
Scale 0.95
Speed 70
PainChance 4
MeleeDamage 750
MeleeRange 120
DamageFactor 0.18
DamageFactor "TrueLegendaryDamage", 0.23
DamageFactor "TrueLegendaryPlayer", 0.23
DamageFactor "PlayerNemesisPlasma", 0.2
DamageFactor "Cursed", 0.145
DamageFactor "Hackroid", 0.235
DamageFactor "Explosion", 0.05
DamageFactor "DTRailgun", 0.1
DamageFactor "PDTPuff", 0.1
DamageFactor "RailG", 0.1
DamageFactor "T3rm", 0.0
DamageFactor "MinotaurDamage", 0.0
DamageFactor "DBFG10K2", 0.15
DamageFactor "PlayerDBFG10K2", 0.15
DamageFactor "PlayerDTRG", 0.07
DamageFactor "DBFG2", 0.15
DamageFactor "PlayerDBFG2", 0.15
DamageFactor "PyroShot", 0.0
DamageFactor "Legendary", 0.0
	DropItem "NemesisHealthBonusMax", 256, 64
	DropItem "NemesisArmorBonus64", 256
	DropItem "NemesisHealthBonusMax", 256, 64
	DropItem "NemesisArmorBonus64", 256
    DropItem "NLDemonAmmo", 256
    DropItem "NLDemonAmmoBox", 256
	DropItem "Terminator", 90, 1
    DropItem "NemesisShell", 256
    DropItem "NemesisShellBox", 130
	DropItem "AncientRecall", 256, 1
	DropItem "FuelCore" 256 1
	DropItem "FuelCore" 256 1
	DropItem "FuelCore" 256 1
	Tag "\c[d8]Divine God\c- \c[G2]Hellsmith\c-"
	var int user_Healing1;
	var int user_Healing2;
    var int user_Healing3;
States 
   {    
   Spawn: 
       TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT A 10 A_Look 
       Loop 
     See: 
       TNT1 A 0 A_JumpIf(user_music == 1,4)
       TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1756,1011)
	   TNT1 A 0 A_SetUserVar("user_music",1)
       DSMT A 0 A_UnSetReflectiveInvulnerable 
	   TNT1 A 0 A_JumpIf(user_Healing1 == 1,2)
	   TNT1 A 0 A_JumpIfHealthLower(30000, "Healing1")
	   TNT1 A 0 A_JumpIf(user_Healing2 == 1,2)
	   TNT1 A 0 A_JumpIfHealthLower(20000, "Healing2")
	   TNT1 A 0 A_JumpIf(user_Healing3 == 1,2)
	   TNT1 A 0 A_JumpIfHealthLower(10000, "Healing3")
       DSMT A 2 A_Playsound ("hellsmith/move") 
       DSMT ABB 2 A_Chase 
       DSMT C 2 A_Playsound ("hellsmith/move") 
       DSMT CDD 2 A_Chase
	   DSMT C 0 A_Jump(64,"Rush")
	   TNT1 A 0 A_Jump(32,"Teleport")
       Loop
  Teleport:
       DSMT P 1 Bright A_UnSetShootable
	   DSMT PAAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	   DSMT PPPPPPPPP 1 A_FadeOut(0.1,0)
	   DSMT P 2
	   DSMT PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   DSMT PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA  0 A_Wander
       DSMT P 1 A_PlayWeaponSound("boss/teleport")
	   DSMT PAAAAAAAAAAAA 0 A_SpawnItemEx("HFireSpawner",random(-64,64),random(-64,64),random(0,64),0,0,0,0,32)
	   DSMT PPPPPPPPP 1 A_FadeIn(0.1)
       DSMT P 1 Bright A_SetShootable
       Goto See
  Rush:
       TNT1 A 0 A_SetTranslucent(1)
       DSMT O 1 A_Playsound ("hellsmith/dash")
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 2 Bright A_Chase
       DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 2 Bright A_Chase
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 0 A_Stop
       DSMT O 1
	   TNT1 A 0 A_Jump(40,"See")
	   TNT1 A 0 A_Jump(40,"Jump")
       Loop
	   Jump:
	    DSMT O 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,80,0,1)
		DSMT O 5 A_FaceTarget
		DSMT O 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
   Melee:
       //DSMT A 0 A_UnSetReflectiveInvulnerable 
       DSMT E 6 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")
       DSMT F 5 A_FaceTarget
       DSMT G 10 A_MeleeAttack
       DSMT J 6 A_FaceTarget
       DSMT K 1 A_Playsound ("monster/hamswg")
       DSMT K 5 A_FaceTarget
       DSMT L 10 A_MeleeAttack
	   //DSMT A 0 A_SetReflectiveInvulnerable
       Goto See       
   Missile:
       DSMT A 0 A_Jump(128,"Normal","DivineBlastshots","Tracers","DivineBrainWaveshots")
	   DSMT A 0 A_Jump(64,"RagePyroFlares")
       DSMT A 0
       goto Charge
   RagePyroFlares:
       TNT1 A 0 A_SetTranslucent(1)
	   DSMT E 8 A_PlaySound("HellSm/Laugh",0,1,false,ATTN_NONE)
	   DSMT EEEEEEE 6 A_FaceTarget
	   DSMT H 6 A_PlaySound ("monster/hamswg")
       DSMT N 0 A_PLaySound ("weapons/hellfi")
	   DSMT I 4 A_Custommissile("PyroShot",100,-14)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT BJM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   DSMT M 1 A_PlaySound ("monster/hamswg")
	   DSMT N 1 A_PLaySound ("weapons/hellfi") 
	   DSMT N 4 A_Custommissile("PyroShot",120,random(-28,8))
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT EHN 2 A_FaceTarget
	   DSMT I 0 A_PlaySound ("monster/hamswg")
       DSMT I 0 A_PLaySound ("weapons/hellfi")
	   DSMT I 4 A_Custommissile("PyroShot",135,random(-28,8))
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT BJM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   DSMT N 0 A_PlaySound ("monster/hamswg")
       DSMT N 0 A_PLaySound ("weapons/hellfi")
	   DSMT N 4 A_Custommissile("PyroShot",135,random(-28,8))
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT H 6 A_PlaySound ("monster/hamswg")
       DSMT N 0 A_PLaySound ("weapons/hellfi")
	   DSMT I 4 A_Custommissile("PyroShot",100,-14)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT BJM 2 A_FaceTarget
	   TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
	   DSMT M 1 A_PlaySound ("monster/hamswg")
	   DSMT N 1 A_PLaySound ("weapons/hellfi") 
	   DSMT N 4 A_Custommissile("PyroShot",120,random(-28,8))
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
	   DSMT EHN 2 A_FaceTarget
	   Goto See
   Charge:
       TNT1 A 0 A_SetTranslucent(1)
       DSMT O 1 A_Playsound ("weapons/suldth")
       //DSMT O 2 A_SetReflectiveInvulnerable 
       DSMT O 2 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
       DSMT O 4 A_SkullAttack
	   DSMT O 0 A_Explode(80,64,0)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT O 0 A_SpawnItemEx("SmithGhost2",0,0,0,0,0,0,0,128,0)
	   //DSMT A 0 A_UnSetReflectiveInvulnerable
       DSMT O 0 A_Stop
       DSMT O 1
       Goto See
   Normal:
       TNT1 A 0 A_SetTranslucent(1)
       DSMT E 6 A_FaceTarget
       DSMT H 6 A_PlaySound ("monster/hamswg")
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT N 0 A_PLaySound ("weapons/hellfi") 
       DSMT I 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,0)
       DSMT I 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,8)
       DSMT I 12 A_CustomMissile ("MiniNemesisBFGBall",52,0,-8)
       DSMT I 0 A_Jump (128,8)
       DSMT B 6
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT J 6 A_FaceTarget
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT M 6 A_PlaySound ("monster/hamswg")
       DSMT N 1 A_PLaySound ("weapons/hellfi") 
       DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,0)
       DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,8)
	   DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,16)
	   DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,24)
       DSMT N 11 A_CustomMissile ("MiniNemesisBFGBall",52,0,-8)
	   DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,-16)
	   DSMT N 0 A_CustomMissile ("MiniNemesisBFGBall",52,0,-24)
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT N 0 A_Jump (128,"Tracers")
       Goto See
	DivineBlastshots: 
	    TNT1 A 0 A_SetTranslucent(1)
	    DSMT E 8 A_PlaySound("HellSm/Laugh",0,1,false,ATTN_NONE)
		DSMT E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT H 12 A_PlaySound ("monster/hamswg")
		DSMT N 0 A_PLaySound ("weapons/hellfi") 
		DSMT I 0 A_CustomMissile ("Hellshot2",52,0,0)
		DSMT I 0 A_CustomMissile ("NemesisGuruBall",52,0,8)
		DSMT I 12 A_CustomMissile ("NemesisGuruBall",52,0,-8)
		DSMT I 0 A_Jump (128,8)
		DSMT B 15
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT J 12 A_FaceTarget
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT M 12 A_PlaySound ("monster/hamswg")
		DSMT N 1 A_PLaySound ("weapons/hellfi") 
		DSMT N 0 A_CustomMissile ("NemesisGuruBall",52,0,0)
		DSMT N 0 A_CustomMissile ("NemesisGuruBall",52,0,8)
		DSMT N 11 A_CustomMissile ("NemesisGuruBall",52,0,-8)
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT N 0 A_Jump (128,1)
		Goto See
		DivineBrainWaveshots: 
	    DSMT E 8 A_PlaySound("HellSm/Laugh",0,1,false,ATTN_NONE)
		DSMT E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT H 12 A_PlaySound ("monster/hamswg")
		DSMT N 0 A_PLaySound ("weapons/hellfi") 
		DSMT I 0 A_CustomMissile ("NemesisSentientBrainwave",52,0,8)
		DSMT I 12 A_CustomMissile ("NemesisSentientBrainwave",52,0,-8)
		DSMT I 0 A_Jump (128,8)
		DSMT B 15
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT J 12 A_FaceTarget
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT M 12 A_PlaySound ("monster/hamswg")
		DSMT N 1 A_PLaySound ("weapons/hellfi") 
		DSMT N 11 A_CustomMissile ("NemesisSentientBrainwave",52,0,-8)
		TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
		DSMT N 0 A_Jump (128,1)
		Goto See
   Tracers:
       TNT1 A 0 A_SetTranslucent(1)
       DSMT E 6 A_FaceTarget
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT F 1 A_Playsound ("monster/hamswg")
       DSMT F 5 A_FaceTarget
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,15,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,30,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,45,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,60,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,75,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,90,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,105,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,120,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,135,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,150,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,165,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,180,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,195,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,210,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,225,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,240,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,255,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,270,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,285,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,300,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,315,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,330,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,345,0)
       DSMT G 0 A_CustomMissile("NemesisRifleShotEnemy",0,0,0,0)
       DSMT G 10 A_Playsound("monster/hamswg")
       DSMT B 0 A_Jump (128,"Tracers2")
       Goto See
   Tracers2:
       TNT1 A 0 A_SetTranslucent(1)
       DSMT J 6 A_FaceTarget
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT K 1 A_Playsound ("monster/hamswg")
       DSMT K 5 A_FaceTarget
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,15,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,30,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,45,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,60,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,75,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,90,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,105,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,120,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,135,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,150,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,165,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,180,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,195,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,210,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,225,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,240,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,255,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,270,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,285,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,300,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,315,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,330,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,345,0)
       DSMT L 0 A_CustomMissile("HFCyberTracer",0,0,0,0)
       DSMT L 10 A_Playsound("monster/hamswg")
       Goto See           
   Pain: 
       DSMT P 10 A_Pain
       DSMT P 0 A_Jump (65,"Heal")
       Goto See
   Heal:
       TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"EmpoweredHeal")
       DSMT E 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       DSMT B 0 A_UnSetReflectiveInvulnerable
       DSMT B 1 A_GiveInventory("Health",1750)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
	EmpoweredHeal:
	   TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"TrueEmpoweredHeal")
       TNT1 A 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       TNT1 A 0 A_UnSetReflectiveInvulnerable
	   TNT1 A 0 A_GiveInventory("GodsFullImunityGiver2",1)
	   TNT1 A 0 A_GiveInventory("GodsFinalBattleShield2",1)
       DSMT B 1 A_GiveInventory("Health",4750)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
	TrueEmpoweredHeal:
       TNT1 A 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       TNT1 A 0 A_UnSetReflectiveInvulnerable
	   TNT1 A 0 A_GiveInventory("GodsFullImunityGiver2",1)
	   TNT1 A 0 A_GiveInventory("GodsFinalBattleShield2",1)
       DSMT B 1 A_GiveInventory("Health",6250)
	   TNT1 A 0 A_GiveInventory("GodFinalBattleResistanceGiver",1)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
	Healing1:
	   TNT1 A 0 A_SetUserVar("user_Healing1",1)
       TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"EmpoweredHeal")
       DSMT E 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       DSMT B 0 A_UnSetReflectiveInvulnerable
       DSMT B 1 A_GiveInventory("Health",1750)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
   Healing2:
	   TNT1 A 0 A_SetUserVar("user_Healing2",1)
       TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"EmpoweredHeal")
       DSMT E 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       DSMT B 0 A_UnSetReflectiveInvulnerable
       DSMT B 1 A_GiveInventory("Health",1750)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
  Healing3:
	   TNT1 A 0 A_SetUserVar("user_Healing3",1)
       TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"EmpoweredHeal")
       DSMT E 0 A_SetReflectiveInvulnerable
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       DSMT E 25 A_FaceTarget
       DSMT F 1 A_Playsound ("monster/hamswg")       
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine1",0,0,0,2)
	   DSMT F 25 A_FaceTarget
       DSMT G 70 A_Playsound ("monster/hamswg")
       DSMT B 0 A_UnSetReflectiveInvulnerable
       DSMT B 1 A_GiveInventory("Health",1750)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       Goto See
	   Death:
	   DSMT P 30
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   DSMT F 0 A_CustomMissile("PentaLine3",0,0,-72,2)
       DSMT F 0 A_CustomMissile("PentaLine3",0,0,-144,2)
       DSMT F 0 A_CustomMissile("PentaLine3",0,0,-216,2)
       DSMT F 0 A_CustomMissile("PentaLine3",0,0,-288,2)
       DSMT F 0 A_CustomMissile("PentaLine3",0,0,0,2)
	   DSMT F 0 Radius_Quake(6,250,2,64,8)
	   DSMT P 70
	   TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
	   DSMT P 80
	   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	   DSMT P 90
	   TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	   TNT1 A 0 A_PlaySound("Nemesis/BallExplode",1,1.0,0,0.2)
	   TNT1 A 0 A_SpawnItemEx("VexedNemesisHugeExplosion")
		TNT1 A 0 A_SpawnItemEx("VexedNemesisAltBallEx")
		TNT1 A 0 A_Quake(9,100,0,2000,0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAA 2 A_Explode(1000,3000,XF_NOTMISSILE,0,6000)
       DSMT P 10 A_CustomMissile("SmithDFSpawner",0,0,0,0)
	   TNT1 A 0 Bright A_Mushroom("HFCyberMushroomFireballs2",8)
	   TNT1 A 0 A_SpawnItemEx("HFCyberPyroBoom2")
	   TNT1 A 0 A_SpawnItemEx("RandomSuperPowerUp",0,0,64,random(1,8),0,2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("DivineorDarkdivineArmor",0,0,64,random(1,8),0,2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("NemesisOmegaSphere",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("LegAmmoSphere",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("LegendaryRune",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("TrueLegendaryRune",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("LegDemonRune",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("AncientRecall",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("TalismanOfChaos",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("Nemesis Rifle",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("Nemesis Plasmatic Cannon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("Nemesis Assault Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("Nemesis Sawed-Off Shotgun",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("DivineContract",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
	   TNT1 A 0 A_SpawnItemEx("Nemesis BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
       DSMT Q 6 A_CustomMissile("SmithHammer",128,-40,-30,0)
       DSMT Q 0 A_CustomMissile("SmithFire",0,0,0,2)
       DSMT R 6 A_Scream
       DSMT R 0 A_CustomMissile("SmithFire",0,0,0,2)
       DSMT STU 6
       DSMT V 0 A_CustomMissile("SmithFire",0,0,0,2)
       DSMT V 6 A_NoBlocking 
       DSMT V 6 
       BSMT X 6
	   TNT1 A 0 A_Print("GOD SLAIN!")
       BSMT X 0 A_CustomMissile("SmithFire",0,0,0,2)
       BSMT Y -1 A_BossDeath 
	   }
}

Actor INFDivineHellsmith : DivineHellsmith
{
Tag "\c[d8]Divine God\c- \c[G2]Hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(135,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT A 10 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
	}
}

Actor INF2DivineHellsmith : DivineHellsmith
{
Tag "\c[d8]Divine God\c- \c[G2]Hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(150,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT A 10 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
	}
}

Actor PMCDivineHellsmith : DivineHellsmith
{
Tag "\c[d8]Divine God\c- \c[G2]Hellsmith\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
	   TNT1 A 0 A_SpawnItem("NemesisCyberFlameSpawner3",0,0,0,0)
       DSMT A 10 A_Look	
	   Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("CybersStrongSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}