Actor HellfrostTerminator
{
//Creator: Nemesiscaptain(uwu)and Makarov
//Origin: Infinity Gods
//Sprite: HFTM
//Title: "HellfrostTerminator"
Monster
Health  9800
Radius 28 
Height 86 
Mass 0x7FFFFFFF
Speed 40
PainChance 1
Scale 1.4
Species "Cybers"
+NOTIMEFREEZE
+DONTHARMSPECIES
+MISSILEMORE
+FLOORCLIP
+NOTARGET
+FireResist
+NORADIUSDMG
+NOICEDEATH
+BOSS
+MISSILEEVENMORE
+CANTSEEK
+NOFEAR
+DONTSPLASH
+LOOKALLAROUND
+NOEXTREMEDEATH
+BOSSDEATH
+NOTELEFRAG
+DONTGIB
+DONTMORPH
+QUICKTORETALIATE
+NoDropOff
//-COUNTKILL
+DONTRIP
//Hellfrost Cyber Damage Factors
Damagefactor "Acid", 0.01
Damagefactor "Fire", 0.1
Damagefactor "Electric", 0.01
Damagefactor "Disintegrate", 0.001
DamageFactor "BFG9500Ball", 0.5
DamageFactor "BFGSplash", 0.5
Damagefactor "Poison", 0.0
Damagefactor "PoisonCloud", 0.0
Damagefactor "Explosion", 0.3
Damagefactor "Mine", 0.3
DamageFactor "Extreme", 0.0
DamageFactor "Player", 0.01
DamageFactor "PDTPuff", 0.0
DamageFactor "PyroShot", 0.05
DamageFactor "PlayerPyro", 0.05
DamageFactor "PDTBFG", 0.03
DamageFactor "PDTBFGTracer", 0.03
DamageFactor "Players", 0.02
DamageFactor "PlayerDevBall", 0.02
DamageFactor "PlayerDevBall2", 0.02
DamageFactor "PlayerDevTracer", 0.02
DamageFactor "PlayerBHole", 0.025
DamageFactor "DBFG2", 0.015
DamageFactor "DBFG10K2", 0.015
DamageFactor "DBFGSplash2", 0.015
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "PlayerDBFGSplash2", 0.65
DamageFactor "Legendary", 0.05
DamageFactor "LegendaryPlayer", 0.05
DamageFactor "PlayerHellfire", 0.1
DamageFactor "SuperWeapon", 0.0
DamageFactor "LegendaryGuruPlayer", 0.015
DamageFactor 0.45
//Terminator Damage Factors
DamageFactor "PlayerFireSword", 0.8
DamageFactor "CustomSpray", 0.0
DamageFactor "Extreme", 0.0
DamageFactor "HellComet", 0.0
DamageFactor "T3rm", 0.0
DamageFactor "PDTBFG", 0.03
DamageFactor "PDTBFGTracer", 0.03
DamageFactor "PlayerRailPuff", 0.0
DamageFactor "FreezerBurn", 0.0
DamageFactor "DemolisherEx", 0.0
DamageFactor "DarkDemoEx", 0.0
DamageFactor "CerChainguns", 0.0	
DamageFactor "CerEnergyBall", 0.0
DamageFactor "C0mm4nder", 0.0
DamageFactor "HFCyb3r", 0.3
DamageFactor "BFG10K", 0.65
DamageFactor "BFGSplash", 0.0
DamageFactor "BFGSpray", 0.0
DamageFactor "PlayerDevBall", 0.020
DamageFactor "PlayerDTBFGRailgunSlug", 0.020
DamageFactor "PlayerDevTracer", 0.020
DamageFactor "SuperWeapon", 0.0
// Drops
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "DemonicChalice" 128
DropItem "SkullOfPower" 128
DropItem "FreezerBFG" 256
DropItem "Freezer Rifle" 256
DropItem "HellFrostSphere" 256
DropItem "LegendaryRandomSphere", 110
DropItem "LegendaryRune" 256
DropItem "D-BFG" 256
Dropitem "GreaterCorruptedEnergy" 256 32
Dropitem "GreaterCorruptedEnergy" 128 24
Dropitem "CorruptedEnergy" 256 10
Dropitem "CorruptedEnergy" 256 10
Dropitem "CorruptedEnergy" 256 10
Bloodcolor "Blue"
Obituary "%o tried to run, but became an ice cube thanks to the Hellfrost Terminator."
Tag "\c[o7]HellFrost Terminator\c-"
var int user_amount;
var int user_music;
var int user_tier;
var int user_missile;
States
	{
  Spawn:
  	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM A 4 A_Look
	Loop
  Idle:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM AA 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM BB 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("Terminator/terstepA")
	HFTM CC 3 A_Wander
	TNT1 A 0 A_Look
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM DD 3 A_Wander
	TNT1 A 0 A_PlaySound("Terminator/terstepA")
	TNT1 A 0 A_Look
	TNT1 A 0 A_Jump(52,"Teleport")
	Loop
  See:
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_ChangeFlag("NODAMAGE",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1775,950)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_Jump(100,"Rush")
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM AA 3 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM BB 3 A_Chase
	TNT1 A 0 A_PlaySound("Terminator/terstepA")
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM CC 3 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM DD 3 A_Chase
	TNT1 A 0 A_PlaySound("Terminator/terstepA")
	TNT1 A 0 A_Jump(52,"Teleport")
	Loop
  Rush:
	HFTM A 0 A_PlaySound("Terminator/terstepA")
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM A 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM A 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM B 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM B 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)     
	HFTM A 0 A_PlaySound("Terminator/terstepA")
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM C 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM C 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM D 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)
	HFTM AA 0 A_Chase
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM D 2 A_SpawnItemEx("HellfrostTerminatorGhost",0,0,0,0,0,0,0,128)     
	TNT1 A 0 A_Jump(38,"Teleport")
	TNT1 A 0 A_Jump(75,"See")   
    Loop
  Teleport:
	HFTM E 1 A_UnSetShootable
	TNT1 AAAAAA 0 A_SpawnItemEx("FreezedCyberFlameSpawner")
	TNT1 AAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	HFTM EEEEEEEEEEE 1 A_FadeOut(0.1,0)
	HFTM EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	HFTM EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 0 A_Wander
	HFTM E 1 A_PlayWeaponSound("boss/teleport")
	TNT1 AAAAAA 0 A_SpawnItemEx("FreezedCyberFlameSpawner")
	TNT1 AAAAAAA 0 A_SpawnItemEx("BlueCardLineSpawner")
	HFTM EEEEEEEEEEE 1 A_FadeIn(0.1)
	HFTM E 1 A_SetShootable
	Goto See
  Missile:
	TNT1 A 0
	TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	TNT1 A 0 A_SetShootable
	TNT1 A 0 A_UnsetInvulnerable
	TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_Jump(156,2)
	TNT1 A 0 A_JumpIfTargetInLOS("UberHexaExplosiveShotgun",90,JLOSF_DEADNOJUMP|JLOSF_TARGETLOS,600,0)
	TNT1 A 0 A_Jump(156,"Railgun","BFG10K","BFG15K","Froststar","UberHexaExplosiveShotgun")
	TNT1 A 0 A_Jump(108,"CryoRockets","Seekers","DTDevastator","FreezeBFG","CryoShot")
  Normal:
	TNT1 A 0 A_JumpIfCloser(1500,1)
	Goto Railgun
	HFTM G 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	HFTM I 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("sentient/fire")
	HFTM H 0 A_CustomMissile("CTerminatorExplosiveTracer",50,20,Random(-4,4))
	TNT1 A 0 A_Jump(12,"See","Missile")
	TNT1 A 0 A_SpidRefire
	Loop
  UberHexaExplosiveShotgun:
	HFTM G 5 A_FaceTarget
	HFTM EEEEEE 0 A_SpawnItemEx("BlueShellCasing",25,-2,25,Random(2,4),Random(-3,-6),Random(3,6),0)
	TNT1 A 0 A_PlaySound("Weapons/pulasshotgun/fire",7)
	TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",50,-20,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	HFTM I 5 Bright A_CustomBulletAttack(22.5,18.3,30,Random(1,5)*6,"TerminatorPuff")
	TNT1 A 0 A_StopSoundEx("Weapon")
	HFTM G 5 A_FaceTarget
	HFTM EEEEEE 0 A_SpawnItemEx("BlueShellCasing",25,-2,25,Random(2,4),Random(-3,-6),Random(3,6),0)
	TNT1 A 0 A_PlaySound("Weapons/pulasshotgun/fire",7)
	TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",50,-20,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	HFTM I 5 Bright A_CustomBulletAttack(22.5,18.3,30,Random(1,5)*6,"TerminatorPuff")
	TNT1 A 0 A_StopSoundEx("Weapon")
	HFTM G 5 A_FaceTarget
	HFTM EEEEEE 0 A_SpawnItemEx("BlueShellCasing",25,-2,25,Random(2,4),Random(-3,-6),Random(3,6),0)
	TNT1 A 0 A_PlaySound("Weapons/pulasshotgun/fire",7)
	TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",50,-20,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	HFTM I 5 Bright A_CustomBulletAttack(22.5,18.3,30,Random(1,5)*6,"TerminatorPuff")
	TNT1 A 0 A_StopSoundEx("Weapon")
	HFTM G 5 A_FaceTarget
	HFTM EEEEEE 0 A_SpawnItemEx("BlueShellCasing",25,-2,25,Random(2,4),Random(-3,-6),Random(3,6),0)
	TNT1 A 0 A_PlaySound("Weapons/pulasshotgun/fire",7)
	TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",50,-20,frandom(-10,10),CMF_OFFSETPITCH,frandom(-6,6))
	HFTM I 5 Bright A_CustomBulletAttack(22.5,18.3,30,Random(1,5)*6,"TerminatorPuff")
	TNT1 A 0 A_StopSoundEx("Weapon")
	Goto See 
  Railgun:
	TNT1 A 0 A_PlaySound("weapons/rgcharge")
	TNT1 A 0 A_Changeflag(REFLECTIVE,1)
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	HFTM GGGG 10 A_FaceTarget
  RailgunLoop:
	TNT1 A 0 A_JumpIf(user_missile > 20,"RailgunEnd")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	HFTM K 1 Bright A_FaceTarget
	HFTM G 2 Bright A_CustomMissile("BlueAnniRail",60,28,random(-4,2))
	HFTM G 2 Bright A_CustomMissile("BlueAnniRail",60,28,random(-4,2))
	HFTM K 1 Bright A_FaceTarget
	HFTM G 2 Bright A_CustomMissile("BlueAnniRail",60,-28,random(-2,4))
	HFTM G 2 Bright A_CustomMissile("BlueAnniRail",60,-28,random(-2,4))
	Loop
  RailgunEnd:
	HFTM G 15 Bright
	TNT1 A 0 A_Changeflag(REFLECTIVE,0)
	TNT1 A 0 A_Jump(128,"BFG10K","BFG15K","Froststar","CryoShot")
	Goto See		
  BFG10K:
	TNT1 A 0 A_Changeflag(REFLECTIVE,1)
	TNT1 A 0 A_PlaySound("weapons/charge15k")
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	HF3M AAAAAA 6 A_FaceTarget
  BFG10KLoop:
	TNT1 A 0 A_JumpIf(user_missile > 15,"BFG10KLoop2")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	HF3M D 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	HF3M E 1 Bright A_CustomMissile("T3DBFG10kShot",55,26,random(-5,5))
	HF3M D 2 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	HF3M E 1 Bright A_CustomMissile("T3DBFG10kShot",55,-26,random(-5,5))
	Loop
   BFG10KLoop2:
	TNT1 A 0 A_JumpIf(user_missile > 25,"BFG10KEnd")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	HF3M D 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	HF3M E 0 A_CustomMissile("T3DBFG10kShot",55,26,random(-30,30))
	HF3M E 1 Bright A_CustomMissile("T3DBFG10kShot",55,26,random(-10,10))
	HF3M D 1 A_FaceTarget
	TNT1 A 0 A_PlaySound("Weapons/dbfgfire2")
	HF3M E 0 A_CustomMissile("T3DBFG10kShot",55,-26,random(-30,30))
	HF3M E 1 Bright A_CustomMissile("T3DBFG10kShot",55,-26,random(-10,10))
	Loop
  BFG10KEnd:
	HF3M A 3 Bright A_PlaySound("weapons/bfg15kcooldown",CHAN_AUTO)
	HF3M AAAAA 3 A_FaceTarget		
	HF3M A 4 A_FaceTarget
	TNT1 A 0 A_Changeflag(REFLECTIVE,0)
	TNT1 A 0 A_Jump(96,"Froststar","DTDevastator")
	Goto See
  BFG15K:
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	HF3M AAAAAAAAAAAA 2 A_FaceTarget
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-4,4))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-4,4))
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-4,4))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-8,8))
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-8,8))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,15,random(-8,8))
	HF3M A 0 A_FaceTarget
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-4,4))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-4,4))
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-4,4))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-8,8))
	HF3M D 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-8,8))
	HF3M E 1 Bright A_CustomMissile("FreezedCyber15K",48,-15,random(-8,8))
	HF3M A 4 A_FaceTarget   
	TNT1 A 0 A_Jump(128,"BFG15K","Froststar","DTDevastator","CryoShot")
	Goto See
  Seekers:
	HFTM EEEEEEEE 1 A_FaceTarget(45)
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	HFTM E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	HFTM E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	HFTM E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	HFTM E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
	HFTM E 6 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberHomer",56,26,0)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberHomer",56,-26,0)
    HFTM E 6 A_FaceTarget
	TNT1 A 0 A_Jump(128,"Railgun","BFG15K","CryoRockets","BFG10K")
	TNT1 A 0
    Goto See
  CryoRockets:
	TNT1 A 0
	TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON,1.0,0)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget(45)
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
	HFTM EEEEEEEEEEEE 1 A_FaceTarget
    TNT1 A 0 A_CustomMissile("FreezedCyberCryoRocket",56,26,0,CMF_TRACKOWNER)
    HFTM F 6 Bright A_CustomMissile("FreezedCyberCryoRocket",56,-26,0,CMF_TRACKOWNER)
    HFTM E 8 A_FaceTarget
    Goto See
  Froststar:
	TNT1 A 0 A_PlaySoundEx("monster/dtermsit","TSIGHT")
	TNT1 A 0 A_SetInvulnerable
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load1")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	TNT1 A 0 A_PlayWeaponSound("star/load2")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner") 
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	HFTM J 0 A_FaceTarget
	TNT1 A 0 A_PlayWeaponSound("star/load3")
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")
	HFTM J 0 A_FaceTarget
	HFTM JJJJ 2 Bright A_SpawnItemEx("BlueCardLineSpawner")  		
	TNT1 A 0 A_UnSetInvulnerable
	HFTM J 0 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,20,random(-10,10))
	HFTM J 6 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,-20,random(-10,10))
	HFTM J 0 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,20,random(-10,10))
	HFTM J 6 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,-20,random(-10,10))
	HFTM J 0 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,20,random(-10,10))
	HFTM J 6 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,-20,random(-10,10))
	HFTM J 0 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,20,random(-10,10))
	HFTM J 6 A_FaceTarget
	HFTM J 0 A_PlayWeaponSound("star/fire")
	HFTM K 4 Bright A_CustomMissile("FrostTerminatorStar",55,-20,random(-10,10))
	HFTM J 6 A_FaceTarget
	HFTM J 6 A_Jump(128,"DTDevastator","FreezeBFG")
	Goto See
  CryoShot:
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
	HFTM EEEEEEE 4 A_FaceTarget
	HFTM E 4 A_FaceTarget
	TNT1 A 0 A_PlaySound("weapons/PCNNF",CHAN_WEAPON)
	HFTM F 4 Bright A_CustomMissile("ZombieCryoShot",40,20,0,CMF_TRACKOWNER)
	TNT1 A 0 A_PlaySound("weapons/dtech10ksteam",6)
	TNT1 AAA 0 A_ChangeFlag(NOPAIN,0)
	Goto See
  FreezeBFG:
    TNT1 A 0 A_PlaySound("devastator/charge")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	HFTM EEEEEEEEEEEEEEEEEEE 5 A_FaceTarget
	TNT1 A 0 A_PlaySound("devastator/fire",1)
	TNT1 A 0 A_CustomMissile("MonsterFreezerBall",45,-26,0,CMF_AIMOFFSET)
	HFTM F 8 A_CustomMissile("MonsterFreezerBall",45,26,0,CMF_AIMOFFSET)
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	HFTM FFFFF 4
	Goto See
  DTDevastator:
	TNT1 A 0 A_PlaySoundEx("monster/dtermsit","TSIGHT")
	TNT1 A 0 A_SetInvulnerable
	HFTM E 0 A_Facetarget
	TNT1 A 0 A_SetUserVar("user_missile", 0)
	TNT1 A 0 Bright A_SpawnItemEx("FreezedCyberFlameSpawner")
	HFTM E 0 Bright A_PlaySound ("weapons/dbfgcharge")
  DevCharge:
	TNT1 A 0 A_JumpIf(user_missile > 60,"DevFire")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	HFTM E 2 A_Facetarget
	TNT1 A 0 Bright A_SpawnItemEx("FreezedCyberFlameSpawner")
	Loop
  DevFire:
	CTER F 0 A_PlaySound ("Weapons/dbfgfire")
	HFTM G 1 Bright A_CustomMissile("T3DBFGBall",50,20,random(7,-7))
	HFTM E 0 A_Facetarget
	HFTM G 1 Bright A_CustomMissile("T3DBFGBall",50,20,random(7,-7))
	HFTM E 10
	TNT1 A 0 A_UnSetInvulnerable
	goto See
  Pain:	
	TNT1 A 0 A_Jump(128,"Summon")
	HFTM L 3 	
	HFTM L 3 A_Pain
	Goto See
  Summon:
	TNT1 A 0 A_SetInvulnerable
	TNT1 A 0 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_Jump(100,"CryoDemons","FreezerBehemoths")
	HFTM E 1 A_CustomMissile("CryoImpSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoImpSummoner",58,-26,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoImpSummoner",58,-26,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoImpSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  CryoDemons:
	HFTM E 1 A_CustomMissile("CryoDemonSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoDemonSummoner",58,-26,-22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoDemonSummoner",58,-26,22,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("CryoDemonSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  FreezerBehemoths:
	HFTM E 1 A_CustomMissile("FreezerBehemothSummoner",58,-26,-45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 3 A_FaceTarget
	HFTM E 1 A_CustomMissile("FreezerBehemothSummoner",58,-26,45,CMF_AIMDIRECTION|CMF_TRACKOWNER)
	HFTM E 25 A_SpawnItemEx("FreezedCyberInvilFlameSpawner")
	TNT1 A 0 A_UnSetInvulnerable
	Goto See
  Pain.Legendary:
  Pain.LegendaryPlayer:
  Pain.LegendaryGuruPlayer:
	HFTM L 3
	HFTM L 3 A_Pain
	TNT1 A 0 A_Jump(200,"Teleport")	
	Goto Summon
  Death:
	HFTM M 10 A_Scream
	HFTM M 10 A_NoBlocking
	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("BigBlueBloodCloud1", random(10,80), 0, random(0,360), 2, random(0,360))
	HFTM NNNOOO 5 A_CustomMissile("KaboomCyan", 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("BigBlueBloodCloud1", random(10,80), 0, random(0,360), 2, random(0,360))
	HFTM PPPQQQ 2 A_CustomMissile("KaboomCyan", 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("BigBlueBloodCloud1", random(10,80), 0, random(0,360), 2, random(0,360))
	HFTM SSSTTT 2 A_CustomMissile("KaboomCyan", 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("BigBlueBloodCloud1", random(10,80), 0, random(0,360), 2, random(0,360))
	HFTM UUUVVV 2 A_CustomMissile("KaboomCyan", 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("BigBlueBloodCloud1", 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))	
	HFTM W 4
	HFTM "X" 6 A_Fall
	HFTM "Y" 6
	HFTM "Z" 1 A_Playsound("Terminator/terstepA",CHAN_BODY)
	HFTM "Z" 5 A_Bossdeath
	TNT1 A 0 A_KillMaster
	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)
	HFTM "[" -1
	Stop
	}
}

Actor INFHellfrostTerminator : HellfrostTerminator
{
Tag "\c[o7]HellFrost Terminator\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SimpleProgSys") == 0,2)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("RuneTier3SpawnCheck") == 2,1)
	Goto Remove
  Idle:
	TNT1 A 0 A_SpawnItem("FreezedCyberFlameSpawner",0,0,0,0)
	HFTM A 4 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 HellfrostTerminatorGhost
{
Scale 1.4
RENDERSTYLE Translucent
Alpha 0.75
+NOTIMEFREEZE
+NONSHOOTABLE
+NOINTERACTION
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
	HFTM A 2 A_FadeOut(0.18,1)
	Wait
	}
}

Actor FrostTerminatorStar
{
    Radius 12
    Height 12
    Speed 28
    Damage 300
    Scale 3.2
	Damagetype "Cyber10K"
    DeathType "Ice"
    PROJECTILE
    RENDERSTYLE ADD
	+SEEKERMISSILE
    +EXTREMEDEATH
    +SPAWNSOUNDSOURCE
    +DONTREFLECT
    +PIERCEARMOR
    +FOILINVUL
    +FORCERADIUSDMG
    Species "Cybers"
    +BRIGHT
    ALPHA 0.8
    DeathSound "star/explode"
    Obituary "%o was liquidated by the Terminator !"
    States
    {
    Spawn:
        HFST ABCD 2 Bright A_CustomMissile("FrostTerminatorStarFX",0,0,0,0)
        Loop
    Death:
	    TNT1 A 0 A_Explode(192,384,0)
	    TNT1 A 0 Radius_Quake(15,20,0,20,0)
	    TNT1 A 0 A_SpawnItemEx("FreezeBFGShockWave", 0, 0, 15, 0, 0, 0, 0, 128)
        TNT1 A 20 A_SpawnItem("BlueParticleSpawner",0,-10)
		HFST E 3 Bright A_BFGSpray("CustomSprayFreeze2")
        HFST FGHIJKLMNO 3 Bright
        Stop
    }
}

ACTOR FrostTerminatorStarFX
{   
   Radius 2
   Height 2
   Speed 0
   PROJECTILE
   RENDERSTYLE ADD
   +CLIENTSIDEONLY
   Scale 2.0
   ALPHA 0.67
   States
   {
   Spawn:
	  TNT1 A 1
      HF4R PQ 3 Bright A_FadeOut(0.1)
      Loop
   }
}
