ACTOR Freezemotaur2 : Freezemotaur Replaces Freezemotaur
{
Tag "\c[N0]Frozen Apprentice\c-"
Obituary "%o Was frozen By the Frozen Apprentice."
HitObituary "%o got crushed by the Frozen Apprentice."
	Health 6000
	Radius 40 
	Height 110 
	Mass 1000 
	Speed 35 
	PainChance 20 
	MONSTER
	species "Cybers"
    +NOFEAR
    +BOSS
    +DEFLECT
    +FIRERESIST
    +NORADIUSDMG
    +BOSSDEATH
    +DONTBLAST
    +DONTMORPH
    +DONTRIP
    +FLOORCLIP
    +FASTMELEE
    +MISSILEMORE
    +MISSILEEVENMORE
    +QUICKTORETALIATE
    +DONTHURTSPECIES
    +DONTHARMSPECIES
    +NODAMAGETHRUST
    +NOTIMEFREEZE
	+LOOKALLAROUND
	DropItem "Freezer Rifle", 255
//DropItem "FreezerBFG", 255 //DJB
DropItem "VitalityRune", 255
DropItem "NewCellPack", 255
DropItem "NewCellPack", 192
DropItem "BossLifeEssence", 256, 150
DropItem "HEMBossArmorBonusMax50", 256
DropItem "DemonAmmoBox", 196, 200
DropItem "DemonicChalice", 90, 1
DropItem "SkullOfPower", 90, 1
DropItem "LegendaryRandomSphere", 120
DropItem "ArmorSphere", 96
DropItem "FuelCore" 256 1
DropItem "FuelCore" 256 1
DropItem "HellFrostSphere", 256
DropItem "WeaponEnhancerModuleGiver" 128
	Damage 0
	MeleeRange 86
    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.001
    DamageFactor "PlayerPyro", 0.01
    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.0
    DamageFactor "DBFG10K2", 0.0
    DamageFactor "DBFGSplash2", 0.0
    DamageFactor "PlayerDBFG2", 0.65
    DamageFactor "PlayerDBFG10K2", 0.65
    DamageFactor "PlayerDBFGSplash2", 0.65
    DamageFactor "Legendary", 0.2
    DamageFactor "LegendaryPlayer", 0.015
    DamageFactor "PlayerHellfire", 0.1
    DamageFactor "SuperWeapon", 0.0
    DamageFactor "LegendaryGuruPlayer", 0.015
    DamageFactor "Ice", 0.0
    DamageFactor 0.3
	DamageFactor "MinotaurDamage", 0.0
	DamageType "MinotaurDamage"
	SeeSound "Freezemotaur/See"
	PainSound "monster/smithp" 
	DeathSound "monster/smithd" 
	ActiveSound "monster/smitha"
	MeleeSound "monster/hamhit"
	States 
	{    
	Spawn: 
		TNT1 A 0
		TNT1 A 0 ACS_NamedExecuteAlways("FreezemotaurAura",0)
	SpawnLoop:
		FREZ AB 10 A_Look
		Loop
	See: 
		FREZ A 3 A_Hoof 
		FREZ ABB 3 A_Chase 
		FREZ C 3 A_Hoof
		FREZ CDD 3 A_Chase
		TNT1 A 0 A_Jump(100,"Rush")
		Loop
		Rush:
		TNT1 A 0 A_SetShootable
		TNT1 A 0 A_UnSetInvulnerable
		TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_Hoof
		FREZ A 2 Bright A_Chase
		FREZ A 2 Bright A_Chase
		FREZ A 2 Bright A_Chase
		FREZ B 2 Bright A_Chase
		FREZ C 2 Bright A_Chase
		FREZ C 2 Bright A_Chase
		TNT1 A 0 A_Hoof
		FREZ D 2 Bright A_Chase
		FREZ D 2 Bright A_Chase
		//TNT1 A 0 A_Jump(25,"Teleport")
		TNT1 A 0 A_Jump(75,"See")	
		Loop 
	Melee:
		FREZ E 6 A_FaceTarget
		FREZ F 1 A_Playsound ("monster/hamswg")
		FREZ F 5 A_FaceTarget
		FREZ G 10 A_CustomMeleeAttack (15*Random(1,8),"monster/hamhit","monster/hamflr","MinotaurDamage")
		FREZ B 0 A_Jump (192,1)
		Goto See
		FREZ J 6 A_FaceTarget
		FREZ K 1 A_Playsound ("monster/hamswg")
		FREZ K 5 A_FaceTarget
		FREZ L 10 A_CustomMeleeAttack (15*Random(1,8),"monster/hamhit","monster/hamflr","MinotaurDamage")
		Goto See       
	Missile:
		FREZ A 0 A_Jump(128,3)
		FREZ A 0 A_Jump(128,3)
		FREZ A 0
		FREZ A 0
		FREZ A 0
		TNT1 A 0 A_Jump(100,"IceJail","BigComets","Charge","Comet","Spikes")
		TNT1 A 0 A_Jump(128,"Charge", "Spikeshots","IceTracer1","IceTracer2")
		TNT1 A 0 A_Jump(192,"IceJail","BigComets","Comet","Spikes","Charge")
		goto see
	BigComets:
		FREZ A 0 A_Jump (128,16)
		FREZ E 6 Bright A_FaceTarget
		FREZ H 6 A_PlaySound ("monster/hamswg")
		FREZ N 0 A_PLaySound ("weapons/crtrail") 
		FREZ I 1 Bright A_CustomMissile("HMOFComet",64,0,0)  
		FREZ I 0 A_CustomMissile("HMOFComet",64,0,-4)
		FREZ I 1 Bright A_CustomMissile("HMOFComet",64,0,4)
		FREZ I 0 A_CustomMissile("HMOFComet",64,0,-8)
		FREZ I 1 Bright A_CustomMissile("HMOFComet",64,0,8)
		FREZ I 0 A_CustomMissile("HMOFComet",64,0,-12)
		FREZ I 7 Bright A_CustomMissile("HMOFComet",64,0,12)
		FREZ J 6 A_FaceTarget
		FREZ M 6 A_PlaySound ("monster/hamswg")
		FREZ N 1 A_PLaySound ("weapons/crtrail") 
		FREZ I 0 A_Jump (128,8)
		FREZ B 6
		FREZ N 0 Bright A_CustomMissile("HMOFComet",64,0,0)  
		FREZ N 0 A_CustomMissile("HMOFComet",64,0,-4)
		FREZ N 1 Bright A_CustomMissile("HMOFComet",64,0,4)
		FREZ N 0 A_CustomMissile("HMOFComet",64,0,-8)
		FREZ N 1 Bright A_CustomMissile("HMOFComet",64,0,8)
		FREZ N 0 A_CustomMissile("HMOFComet",64,0,-12)
		FREZ N 5 Bright A_CustomMissile("HMOFComet",64,0,12)   
		FREZ MN 6 Bright A_FaceTarget
		FREZ N 0 A_Jump (128,1)
		TNT1 A 0 A_Jump(192,"Charge", "IceJail","Spikeshots","IceTracer1","IceTracer2","Charge","Comet","Spikes")
		Goto See 	   

	Spikes:
		FREZ JK 8 A_FaceTarget
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 0)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -5)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 5)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 10)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 15)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -15)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -20)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 20)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 25)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -25)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 30)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -30)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 35)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -35)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -40)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 40)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 45)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 0 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, -45)
		TNT1 A 0 A_Playsound ("monster/hamswg")
		TNT1 A 0 A_Playsound ("monster/hamswg")
		FREZ L 7 Bright A_CustomMissile("CorruptionIceSpikeSpawner", 66, 0, 50)
		TNT1 A 0 A_Jump(100,"IceJail","BigComets","Spikeshots","IceTracer1","IceTracer2","Charge","Comet")
	Comet:
		FREZ A 0 A_Jump (128,16)
		FREZ E 6 Bright A_FaceTarget
		FREZ H 6 A_PlaySound ("monster/hamswg")
		FREZ N 0 A_PLaySound ("weapons/crtrail") 
		FREZ M 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_FaceTarget
		FREZ NNNNNN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_FaceTarget
		FREZ NN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		FREZ I 0 A_Custommissile("FreezmoComet",32,0,0)
		TNT1 A 0 A_FaceTarget
		FREZ NN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		FREZ I 0 A_Custommissile("FreezmoComet",32,0,0)
		TNT1 A 0 A_FaceTarget
		FREZ I 0 A_Jump (128,8)
		FREZ B 6
		FREZ J 6 A_FaceTarget
		FREZ M 6 A_PlaySound ("monster/hamswg")
		FREZ N 1 A_PLaySound ("weapons/crtrail") 
		FREZ NN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		FREZ N 0 A_Custommissile("FreezmoComet",32,0,0)
		FREZ NN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		FREZ N 0 A_Custommissile("FreezmoComet",32,0,0)
		FREZ NNNNN 1 Bright// A_SpawnItemEx("HPBlueFire2Spawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_Jump(100,"Charge", "IceJail","Spikeshots","Spikes","IceTracer1","IceTracer2","Charge","BigComets")
		Goto See
	IceJail:
		FREZ JKL 11 A_FaceTarget
		FREZ JKL 11 A_FaceTarget
		FREZ L 1 Bright A_GiveToTarget("IceSpikeInventory",1)
		TNT1 A 0 A_Jump(100,"Spikeshots","IceTracer1","IceTracer2","Charge","Comet")
		Goto see
	Charge:
		FREZ O 1 A_Playsound ("weapons/suldth")
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 4 A_SkullAttack
		FREZ O 0 A_Explode(60,64,0)
		FREZ O 0 A_SpawnItemEx("IceGhost1",0,0,0,0,0,0,0,128,0)
		FREZ O 0 A_Stop
		TNT1 A 0 A_Jump(100,"Spikeshots","IceTracer1","IceTracer2")
		FREZ O 1	   
		Goto See
	Spikeshots:
		FREZ A 0 A_Jump (128,16)
		FREZ E 6 A_FaceTarget
		FREZ H 6 A_PlaySound ("monster/hamswg")
		FREZ N 0 A_PLaySound ("weapons/crtrail") 
		FREZ I 0 A_CustomMissile ("Iceshot",52,0,0)
		FREZ I 0 A_CustomMissile ("Iceshot",52,0,8)
		FREZ I 12 A_CustomMissile ("Iceshot",52,0,-8)
		FREZ I 0 A_Jump (128,8)
		FREZ B 6
		FREZ J 6 A_FaceTarget
		FREZ M 6 A_PlaySound ("monster/hamswg")
		FREZ N 1 A_PLaySound ("weapons/crtrail") 
		FREZ N 0 A_CustomMissile ("Iceshot",52,0,0)
		FREZ N 0 A_CustomMissile ("Iceshot",52,0,8)
		FREZ N 11 A_CustomMissile ("Iceshot",52,0,-8)
		FREZ N 0 A_Jump (128,1)
		TNT1 A 0 A_Jump(100,"IceTracer1","IceTracer2","Charge","Comet")
		FREZ N 0
		Goto See
	IceTracer1:
		FREZ E 6 A_FaceTarget
		FREZ F 1 A_Playsound ("monster/hamswg")
		FREZ F 5 A_FaceTarget
		FREZ G 0 A_CustomMissile("IceTracer",0,0,30,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,60,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,90,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,120,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,150,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,180,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,210,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,240,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,270,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,300,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,330,0)
		FREZ G 0 A_CustomMissile("IceTracer",0,0,0,0)
		FREZ G 10 A_Playsound("monster/hamflr")
		FREZ B 0 A_Jump (128,1)
		FREZ N 0
		TNT1 A 0 A_Jump(100,"Spikeshots","Charge")
		Goto See
	IceTracer2:
		FREZ J 6 A_FaceTarget
		FREZ K 1 A_Playsound ("monster/hamswg")
		FREZ K 5 A_FaceTarget
		FREZ L 0 A_CustomMissile("IceTracer",0,0,30,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,60,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,90,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,120,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,150,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,180,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,210,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,240,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,270,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,300,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,330,0)
		FREZ L 0 A_CustomMissile("IceTracer",0,0,0,0)
		FREZ L 10 A_Playsound("monster/hamflr")
		Goto See
	Pain: 
		FREZ P 10 A_Pain 
		Goto See 
	Death: 
		TNT1 A 0 A_CustomMissile("FreezeSmithHammer",128,-40,-30,0)
		TNT1 A 0 A_Scream
		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)
		TNT1 A 0 A_SpawnItemEx("FreezerBFG",0,0,8,random(0,8),random(0,8),2,random(0,360),0,0)
		FREZ A 5 A_IceGuyDie
		stop
	} 
}//Freezemotaur