Actor CorruptedKrieger
{
//Creator: Nemesiscaptain(uwu)and Makarov
//Origin: Infinity Gods
//Sprite: CDKR
//Title: "Corrupted Krieger"
Health 3200
Mass 5000
PainChance 7
Height 64
Radius 30
Speed 40
MaxStepHeight 32
MaxDropOffHeight 32
Reactiontime 24
MeleeRange 150
Species "SS"
BloodColor "Blue"
SeeSound "NemNazi/Sight"
PainSound "NemNazi/Pain"
DeathSound "NemNazi/death"
ActiveSound "NemNazi/Active"
Obituary "Corrupted Krieger laughed as he ended %o."
HitObituary "%o was shattered like glass by Corrupted Krieger."
Tag "\c[o7]Corrupted Krieger\c-"
//Corrupted Sent Damage Factors
DamageFactor 0.5
DamageFactor "PyroShot",0.25
DamageFactor "PlayerPyro",0.25
DamageFactor "PlayerBHole",0.25
DamageFactor "Player",0.05
DamageFactor "DBFG10K2",0.0
DamageFactor "PlayerDBFG10K2",0.05
DamageFactor "DBFG2",0.0
DamageFactor "PlayerDBFG2",0.10
DamageFactor "Ice",0.0
DamageFactor "Legendary",0.75
DamageFactor "LegendaryPlayer",0.75
DamageFactor "LegendaryGuruPlayer",0.75
DamageFactor "PlayerDevBall",0.65
DamageFactor "PlayerDevTracer",0.15
DamageFactor "BFG10K",0.65
DamageFactor "BFG9500Ball",0.1
DamageFactor "UpBFG9500Ball",0.1
DamageFactor "BFGSplash",0.1
DamageFactor "UpBFGSplash",0.1
DamageFactor "Explosion",0.1
DamageFactor "PDTBFG",0.1
DamageFactor "PDTBFGTracer",0.1
DamageFactor "PDTPuff",0.1
DamageFactor "Cyber10K",0.0
DamageFactor "CerChainguns",0.0	
DamageFactor "CerEnergyBall",0.0
DamageFactor "DemolisherEx",0.0
DamageFactor "DarkDemoEx",0.0
DamageFactor "Legendary1",0.0
DamageFactor "VileFires",0.0
DamageFactor "NobleComet",0.0
DamageFactor "ZombieDev",0.0
DamageFactor "BeheComet",0.0
+BOSS
+BOSSDEATH
+NOICEDEATH
+NOTIMEFREEZE
+DONTMORPH
+DONTRIP
+NORADIUSDMG
-NOINFIGHTING
-NOPAIN
+NoFear
+NOBLOOD
+FLOORCLIP
+NOTARGET
+LOOKALLAROUND
//+ALWAYSFAST
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
DropItem "BossLifeEssence", 192
DropItem "BossArmorBonusMax", 192
DropItem "SkullOfPower", 120, 1
DropItem "CorruptedSphere", 256, 1
DropItem "Randomcorrupteditem", 256, 1
Dropitem "D-BFG", 256
Dropitem "GreaterCorruptedEnergy", 256, 32
Dropitem "GreaterCorruptedEnergy", 128, 24
Dropitem "CorruptedEnergy", 256, 10
Dropitem "CorruptedEnergy", 256, 10
Dropitem "CorruptedEnergy", 256, 10
Dropitem "MarineDBFGBeacon", 64, 1 
var int user_music;
States
	{
	Spawn:
	    TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR A 3 Bright A_Look
		Loop
	Idle:
		TNT1 A 0 A_GiveInventory("ResetMonsterInvul",1)
		TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
		TNT1 A 0 A_ChangeFlag("NOFEAR",1)
		TNT1 A 0 A_ChangeFlag("NOPAIN",0)
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR AAAA 3 Bright A_Wander
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		TNT1 A 0 A_Look
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR BBBB 3 Bright A_Wander
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		TNT1 A 0 A_Look
		TNT1 A 0 A_SpawnItemEx("DeathKnightStep",0,0,5,0,0,-20)
		CDKR CCCC 3 Bright A_Wander
		TNT1 A 0 A_Look
		CDKR DDDD 3 Bright A_Wander
		TNT1 A 0 A_Look
		TNT1 A 0 A_SpawnItemEx("DeathKnightStep",0,0,5,0,0,-20)
		Loop
	See:
		TNT1 A 0 A_GiveInventory("ResetMonsterInvul",1)
		TNT1 A 0 A_ChangeFlag("FRIGHTENED",0)
		TNT1 A 0 A_ChangeFlag("NOFEAR",1)
		//TNT1 A 0 A_ChangeFlag("FRIENDLY",0)
		TNT1 A 0 A_ChangeFlag("NOPAIN",0)
		TNT1 A 0 A_JumpIf(user_music == 1,3)
		TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1779,400)
		TNT1 A 0 A_SetUserVar("user_music",1)
		CDKR AAAA 3 Bright A_Chase
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR BBBB 3 Bright A_Chase
		TNT1 A 0 A_SpawnItemEx("DeathKnightStep",0,0,5,0,0,-20)
		CDKR CCCC 3 Bright A_Chase
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR DDDD 3 Bright A_Chase
		TNT1 A 0 A_SpawnItemEx("DeathKnightStep",0,0,5,0,0,-20)
		Loop
	Melee:
		TNT1 A 0 A_ChangeFlag(NOPAIN,1)
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR FF 2 Bright A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR G 4 Bright A_PlaySound("Weapons/pulasshotgun/fire",7,1.0,0)
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",Random(36,44),24,Random(6,-6),0)
		TNT1 AAAAAAAAAAAA 0 Bright A_CustomMissile("PulsePlasmaBallEnemy",Random(36,44),-24,Random(6,-6),0)
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR I 1 Bright A_CustomMissile("PulseFlareSpawn",Random(28,34),0,-5,0)
		CDKR FF 5 Bright A_FaceTarget
		TNT1 AAAAAA 0 A_SpawnItemEx("CorruptShellCasing",10,24,40,Random(2,4),Random(-3,-6),Random(3,6),0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		CDKR FFFFF 1 A_Facetarget
		Goto See
	Missile:
	    TNT1 A 0 A_Jump(105,"CorruptedSuperBalls","CorruptedStarCombo")
		TNT1 A 0 A_ChangeFlag(NOPAIN,1)
		TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON)
		CDKR FFFFF 7 Bright A_Facetarget
	Refire:
		TNT1 A 0 A_PlaySound("weapons/bfg15kfire",5)
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		TNT1 A 2 A_CustomMissile("CChainExplosiveTracer",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 1 A_CustomMissile("T3DBFG10kShot",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 2 A_CustomMissile("CChainExplosiveTracer",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 0 A_SpawnItemEx("RifleCasing",10,24,40,Random(2,6),0,Random(1,3),Random(80,90),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR H 2 Bright A_Facetarget
		TNT1 A 0 A_PlaySound("weapons/bfg15kfire",6)
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		TNT1 A 1 A_CustomMissile("CChainExplosiveTracer",62,18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 2 A_CustomMissile("T3DBFG10kShot",random(36,44),0,Random(5,-5),0)
		TNT1 A 1 A_CustomMissile("CChainExplosiveTracer",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 0 A_SpawnItemEx("RifleCasing",10,-24,40,Random(2,6),0,Random(1,3),Random(-80,-90),SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
		CDKR J 2 Bright A_Facetarget
		TNT1 A 0 A_MonsterRefire(230,"MissileEnd")
		TNT1 A 0 A_JumpIfCloser(400,"Melee")
		Loop
	MissileEnd:
		CDKR FFFFF 4 Bright A_Facetarget
		Goto See
	CorruptedSuperBalls:
	    TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON)
		CDKR FFFFF 7 Bright A_Facetarget
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		TNT1 A 0 A_CustomMissile("BFG3500Ball",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 0 A_CustomMissile("BFG3500Ball",62,-18,random(4,-8),CMF_TRACKOWNER)
		CDKR H 2 Bright A_Facetarget
		CDKR FFF 4 Bright A_Facetarget
		Goto See
	CorruptedStarCombo:
	    TNT1 A 0 A_PlaySound("weapons/charge15k",CHAN_WEAPON)
		CDKR FFFFF 7 Bright A_Facetarget
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		TNT1 A 0 A_CustomMissile("CorruptedTerminatorStar",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 0 A_CustomMissile("CorruptedTerminatorStar",62,-18,random(4,-8),CMF_TRACKOWNER)
		CDKR H 2 Bright A_Facetarget
		CDKR FFFFF 7 Bright A_Facetarget
		TNT1 A 0 A_PlaySound("hitler/fire",CHAN_WEAPON,1.0,0)
		TNT1 A 0 A_CustomMissile("CorruptedTerminatorStar",62,-18,random(4,-8),CMF_TRACKOWNER)
		TNT1 A 0 A_CustomMissile("CorruptedTerminatorStar",62,-18,random(4,-8),CMF_TRACKOWNER)
		CDKR H 2 Bright A_Facetarget
		CDKR FFF 4 Bright A_Facetarget
		Goto See
	Pain:
		TNT1 A 0 A_ChangeFlag("NOPAIN",1)
		TNT1 A 0 A_Pain
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		TNT1 A 0 A_SpawnItemEx("CBoysFireSpawner")
		CDKR E 6 Bright
		Goto See
	Death:
	    TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"Death3")
		TNT1 A 0
		TNT1 A 0 A_TakeInventory("Tic",999999)
		TNT1 A 0 A_SpawnItemEx("T3DBFGBoltExp",0,0,40)
		TNT1 AAA 0 A_CustomMissile("T3DBFGBallExp", random(10,80), 0, random(0,360), 2, random(0,360))	
		CDKR A 35 A_CustomMissile("BlueCardRocketExplosion", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
	    TNT1 AAA 0 A_CustomMissile("T3DBFGBallExp", random(10,80), 0, random(0,360), 2, random(0,360))	
		CDKR A 35 A_CustomMissile("BlueCardRocketExplosion", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
		TNT1 AAA 0 A_CustomMissile("T3DBFGBallExp", random(10,80), 0, random(0,360), 2, random(0,360))
		CDKR E 105 A_Scream
		TNT1 A 0 A_SpawnItemEx("T3DBFGBoltExp",0,0,40)
		CDKR K 4 A_CustomMissile("BlueCardRocketExplosion", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
		TNT1 AAA 0 A_CustomMissile("T3DBFGBallExp", random(10,80), 0, random(0,360), 2, random(0,360))	
		CDKR L 4 A_CustomMissile("BlueCardRocketExplosion", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
		CDKR M 4 A_Fall
		TNT1 A 0 A_BossDeath
		TNT1 A 0 A_RemoveChildren
		TNT1 A 0 A_SpawnItemEx("AmmoSphere",0,0,8,random(0,8),random(0,8),2,random(0,360),0,32)
		CDKR N -1
		Stop
	}
}		