ACTOR HellfrostAnnihilator : HellfrostCyberdemon //Replaces CorruptedCyberLord
{
//Creator: High Councilor
//Origin: Nexus Infinity
//Sprite: 4NII
//Title: "Hellfrost Annihilator"
  Health 7000
  BloodColor "DarkBlue"
  DropItem "BossLifeEssence", 256, 150
  DropItem "HEMBossArmorBonusMax25", 256
  DropItem "D-BFG", 100
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HEMArmorBonusMax5", 256
  DropItem "HellFrostSphere", 256
  DropItem "DemonAmmoBox", 196, 200
  DropItem "DemonicChalice", 90, 1
  DropItem "SkullOfPower", 90, 1
  DropItem "ArmorSphere", 96
  DropItem "FreezerBFG" 192 //DJB
  Dropitem "MarineDBFGBeacon", 64, 1
  Dropitem "WeaponEnhancerModuleGiver", 100, 1
  SeeSound "FreezedCyberDemon/See"
  ActiveSound "cyber/active"
  PainSound "monsters/cyberlordpain"
  DeathSound "monsters/darkcyberdie"
  Obituary "%o was exterminated by the \c[o7]HellFrost Annihilator\c-."
  Tag "\c[o7]HellFrost Annihilator\c-"
  var int user_currenthp;
  var int user_taunt;
  States
  {
  Spawn:
	4NNI A 1
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
  Spawnloop:
	TNT1 A 0 A_SpawnItemEx("FreezedCyberFlameSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	4NNI A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("FreezedCyberFlameSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	4NNI A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("FreezedCyberFlameSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	4NII A 10 A_Look
	TNT1 A 0 A_SpawnItemEx("FreezedCyberFlameSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	4NII A 10 A_Look
	TNT1 A 0 A_JumpIf(user_currenthp > ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"),"Idle")
	Loop
  Idle:
	TNT1 A 0 A_UnHideThing
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_GiveInventory("ResetMonsterReflectInvul",1)
  Idleloop:
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI A 3 A_Hoof
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI A 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI BB 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI CC 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI D 3 A_Metal
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI D 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	Loop
  See:
	TNT1 A 0 A_UnHideThing
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	//TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,2125,932) //InsaneWritheQueen
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2125)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_GiveInventory("ResetMonsterReflectInvul",1)
	TNT1 A 0 A_JumpIf(user_taunt == 0,"Seeloop")
	TNT1 A 0 A_PlaySound("FreezedCyberDemon/Active",CHAN_VOICE,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SetUserVar("user_taunt",0)
  Seeloop:
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_Jump(87,"Rush")
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI A 3 A_Hoof
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI A 3 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI BB 3 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI CC 3 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI D 3 A_Metal
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	4NNI D 3 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	Loop
  Rush:
	TNT1 A 0 A_Hoof
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI A 2 A_SpawnItemEx("BlueCyberGhostA",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI A 2 A_SpawnItemEx("BlueCyberGhostA",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI B 2 A_SpawnItemEx("BlueCyberGhostB",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI B 2 A_SpawnItemEx("BlueCyberGhostB",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI C 2 A_SpawnItemEx("BlueCyberGhostC",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI C 2 A_SpawnItemEx("BlueCyberGhostC",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 A 0 A_Metal
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI D 2 A_SpawnItemEx("BlueCyberGhostD",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 AA 0 A_Chase("Missile","Missile",CHF_NOPLAYACTIVE)
    4NNI D 2 A_SpawnItemEx("BlueCyberGhostD",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_CLIENTSIDE)
	TNT1 A 0 A_Explode(100,120,0,0,100)
	TNT1 A 0 A_Jump(87,"See")
	TNT1 A 0
	Loop
  Missile:
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(128,"Seekers","CryoRockets","Railgun","BFG10K","BFG15K","DTBFG10K","FreezeRifle")
	TNT1 A 0 A_Jump(64,"DBFG","FreezeBFG")
  Normal:
	4NNI EEEEEEEE 1 A_FaceTarget(45)
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
    4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
    4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
    4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
    4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
    4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberRocket",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberRocket",56,-26,0)
	4NNI E 6
	TNT1 A 0 A_Jump(128,1)
	TNT1 A 0 A_JumpIfTargetInLOS("Railgun",90.0,JLOSF_CLOSENOJUMP|JLOSF_DEADNOJUMP|JLOSF_TARGETLOS,0,1000)
	TNT1 A 0 A_Jump(128,"Seekers","FloorStomp")
    Goto See
  Seekers:
	4NNI EEEEEEEE 1 A_FaceTarget(45)
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	4NNI E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
    4NNI E 6 A_FaceTarget
	TNT1 A 0 A_Jump(128,"FloorStomp","Railgun","BFG15K","CryoRockets","BFG10k","FreezeRifle")
	TNT1 A 0
    Goto See
  CryoRockets:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON,1.0,0)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget(45)
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	4NNI EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    4NNI F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
    4NNI E 8 A_FaceTarget
	Goto see
  Railgun:
	TNT1 A 0 A_PlaySound("weapons/rgcharge",CHAN_WEAPON,1.0,0)
    4NNI EEEE 5 A_FaceTarget
	4NNI EE 5 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueAnniRail",56,26,0)
    4NNI F 10 Bright A_CustomMissile("BlueAnniRail",56,-26,0)
	4NNI EE 5 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("BlueAnniRail",56,26,0)
    4NNI F 10 Bright A_CustomMissile("BlueAnniRail",56,-26,0)
	4NNI E 15
	TNT1 A 0 A_Jump(128,"BFG15K","CryoRockets")
	TNT1 A 0
	Goto See
  BFG15K:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON,1.0,0)
	4NNI EEEEEEEEEEEEEEEEEE 1 Bright A_FaceTarget(45)
	4NNI EEEEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_CustomMissile("FreezedCyber15K",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("FreezedCyber15K",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI E 20 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	TNT1 A 0 A_Jump(87,"CryoRockets","BFG10K")
	TNT1 A 0
	Goto See
   BFG10K:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("Weapons/dbfgcharge2")
	4NNI EEEEEEEEEEEEEEEEEE 1 Bright A_FaceTarget(45)
	4NNI EEEEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	4NNI F 0 Bright A_CustomMissile("T3DBFG10kShot",56,26,Random(-4,4),CMF_TRACKOWNER)
	4NNI F 4 Bright A_CustomMissile("T3DBFG10kShot",56,-26,Random(-4,4),CMF_TRACKOWNER)
	4NNI EEEE 1 Bright A_FaceTarget
	4NNI E 20 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	TNT1 A 0 A_Jump(87,"DTBFG10K")
	TNT1 A 0
	Goto See
  FreezeRifle:
	4NNI EE 5 A_FaceTarget
	4NNI F 0 A_CustomMissile("FrozenCardinalFreezeBlast",56,26,Random(-6,6),CMF_TRACKOWNER)
	4NNI F 3 A_CustomMissile("FrozenCardinalFreezeBlast",56,-26,Random(-6,6),CMF_TRACKOWNER)	
	4NNI E 3 A_FaceTarget
	TNT1 A 0 A_Jump(6,"See")
	TNT1 A 0 A_MonsterRefire(200,"See")
	Goto FreezeRifle+2
  FloorStomp:
    4NNI GGGGG 2 A_FaceTarget(45)
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	4NMA A 3 Bright A_PlaySound("monsters/clsee",CHAN_VOICE,1.0,0)
	TNT1 A 0 A_FaceTarget
	4NMA A 3 Bright A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	4NMA A 3 Bright A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	4NMA A 3 Bright A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	4NMA A 3 Bright A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	4NMA A 3 Bright A_SpawnItem("FreezedCyberInvilFlameSpawner",0,0,0,0)
	TNT1 A 0 A_UnsetInvulnerable
	4NMA A 7 A_FaceTarget
	4NMA A 5 A_FaceTarget
	TNT1 A 0 Radius_Quake(10,8,0,24,0)	
	4NMA B 6 A_PlaySound("monsters/Darkcyberstomp",CHAN_AUTO,1.0,0)
	4NMA B 2 Bright A_GiveToTarget("IceSpikeInventory",1)
	4NMA B 20
	TNT1 A 0 A_SetUserVar("user_taunt",1)
	TNT1 A 0 A_Jump(128,"Railgun","BFG15K","CryoRockets")
	TNT1 A 0
    Goto See
  DTBFG10K:
  	TNT1 A 0 A_PlaySound("Cardinal/9k")
	4NNI EEEEEE 5 A_FaceTarget
	TNT1 A 0 A_CustomMissile("T3DBFG10KBall",56,-26,0)
	4NNI F 8 A_CustomMissile("T3DBFG10KBall",56,26,0)
  	TNT1 A 0 A_PlaySound("Cardinal/9k")
	4NNI EEEEEE 5 A_FaceTarget
	TNT1 A 0 A_CustomMissile("T3DBFG10KBall",56,-26,0)
	4NNI F 8 A_CustomMissile("T3DBFG10KBall",56,26,0)
	4NNI EE 4
	Goto See
  DBFG:
    TNT1 A 0 A_PlaySound("Weapons/dbfgcharge")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	4NNI EEEEEEEEEEEEEEEEEEEEEEE 6 A_FaceTarget
    TNT1 A 0 A_PlaySound("Weapons/dbfgfire", CHAN_AUTO)
	4NNI F 0 A_CustomMissile("T3DBFGBall",56,26,0,CMF_AIMOFFSET)
	4NNI F 8 A_CustomMissile("T3DBFGBall",56,-26,0,CMF_AIMOFFSET)
    TNT1 A 0 A_PlaySound("Weapons/dbfgcooldown")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	4NNI EEEEE 4
	Goto See
  FreezeBFG:
    TNT1 A 0 A_PlaySound("devastator/charge")
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	4NNI EEEEEEEEEEEEEEEEEEE 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("devastator/fire",1)
	TNT1 A 0 A_CustomMissile("MonsterFreezerBall",50,-26,0,CMF_AIMOFFSET)
	4NNI F 8 A_CustomMissile("MonsterFreezerBall",50,26,0,CMF_AIMOFFSET)
	TNT1 A 0 A_SetUserVar("user_taunt",1)
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	4NNI EEEEE 4
	Goto See
  Pain.Crush:
  Pain.Mine:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	TNT1 A 0 A_JumpIfTargetInLOS("Rush",0,JLOSF_TARGETLOS)
	Goto Idle
  Pain:
	"####" "#" 0
	"####" "#" 0 A_ChangeFlag(NOPAIN,1)
	"####" "#" 0 A_JumpIf((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")) <= 0,2)
	"####" "#" 1 HealThing(((user_currenthp - ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))*0.75)+1)
	TNT1 A 0 A_SetUserVar("user_currenthp",ACS_NamedExecuteWithResult("Hem_GetCurrentHealth"))
	TNT1 A 0 A_Jump(128,"PainMissile")
	4NNI G 10 A_Pain
	TNT1 A 0 A_JumpIfCloser(1500,"CryoSummoner")
	TNT1 A 0 A_Jump(128,"FloorStomp")
	TNT1 A 0
	Goto See
  PainMissile:
	4NNI G 1 A_Pain
	4NNI GGGGGGGGGG 1 Bright A_CustomMissile("PaladinTrail",0,0,random(0,360),2)
	TNT1 A 0 A_JumpIfTargetInLOS("Missile",90.0,JLOSF_DEADNOJUMP|JLOSF_TARGETLOS)
    Goto Rush
  CryoSummoner:
	TNT1 A 0
	TNT1 A 0 A_Jump(128,"CryoDemons")
	TNT1 A 0 A_Jump(64,"Behemoths")
  CryoImps:
	4NNI E 1 A_GiveInventory("SetMonsterReflectInvul",1)
	TNT1 A 0 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	4NNI EEE 4 A_FaceTarget(45)
	4NNI G 1 Bright A_CustomMissile("CryoImpSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoImpSummoner",58,-26,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoImpSummoner",58,-26,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoImpSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_GiveInventory("ResetMonsterReflectInvul",1)
	GoTo See
  CryoDemons:
	4NNI E 1 A_GiveInventory("SetMonsterReflectInvul",1)
	TNT1 A 0 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	4NNI EEE 4 A_FaceTarget(45)
	4NNI G 1 Bright A_CustomMissile("CryoDemonSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoDemonSummoner",58,-26,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoDemonSummoner",58,-26,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("CryoDemonSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_GiveInventory("ResetMonsterReflectInvul",1)
	GoTo See
  Behemoths:
	4NNI E 1 A_GiveInventory("SetMonsterReflectInvul",1)
	TNT1 A 0 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	4NNI EEE 4 A_FaceTarget(45)
	4NNI G 1 Bright A_CustomMissile("FreezerBehemothSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 3 A_FaceTarget
	4NNI G 1 Bright A_CustomMissile("FreezerBehemothSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	4NNI G 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_GiveInventory("ResetMonsterReflectInvul",1)
	Goto See
  Death:
	TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(298) == 1, "AlwaysDrop")
	TNT1 A 0 A_SpawnItemEx("Freezer Rifle",0,0,8,random(0,8),random(0,8),2,random(0,360),0,128)
	Goto Death1
  AlwaysDrop:
	TNT1 A 0 A_SpawnItemEx("Freezer Rifle",0,0,8,random(0,8),random(0,8),2,random(0,360),0,0)
	Goto Death1
  Death1:
	4NNI G 10 A_Scream
	4NNI H 10 A_Fall
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    4NNI IIIII 2 Bright A_CustomMissile("BlueKaboom",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    4NNI JJJJJ 2 Bright A_CustomMissile("BlueKaboom",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
    4NNI KKKKK 2 Bright A_CustomMissile("BlueKaboom",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 A 0 A_Jump(96,"Death2")
	Goto Death3
  Death2:
	TNT1 AAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("CyberIceSpike",random(-256,256),random(-256,256),0,0,0,0,0,SXF_ABSOLUTEPOSITION|SXF_NOCHECKPOSITION,0)
    TNT1 AAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("CyberIceSpike",random(-256,256),random(-256,256),0,0,0,0,0,SXF_ABSOLUTEPOSITION|SXF_NOCHECKPOSITION,0)
    TNT1 AAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("CyberIceSpike",random(-256,256),random(-256,256),0,0,0,0,0,SXF_ABSOLUTEPOSITION|SXF_NOCHECKPOSITION,0)
  Death3:
    4NNI LLLLL 1 Bright A_CustomMissile("BlueKaboom",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 AA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	4NNI MMMMM 1 Bright A_CustomMissile("BlueKaboom",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("BlueGibbedGenerator",random(10,-10),Random(10,-10),random(20,60),0,0,0,0,128,0)
	TNT1 AAAAAA 0 A_CustomMissile("BigBlueBloodCloud",random(10,80),0,random(0,360),2,random(0,360))
	TNT1 AAAAAAAA 0 A_CustomMissile("SmokeFX3",random(20,80),0,random(0,360),2,random(0,360))
	4NNI N 5 A_RemoveChildren
	4NNI O 5 A_KillChildren
	TNT1 A 0 A_BossDeath
	4NNI P 63000 CanRaise
	"####" "#" 5 A_FadeOut(0.1,1)
	Wait
	}
}