ACTOR KaynBase : VoidAssassinVoidSouls 
{ //Kayn in his uncontrolled state, in which he succumbed to the corrupted power and lost control of his mind, entering a bloodthirsty state.
//Creator: Nolram
//Origin: Infinity Gods
//Sprite: KASA
//Title: "Kayn The GodSlayer" 
Health 16500
Speed 75
Scale 1
Radius 20
Height 56
+Boss
+noicedeath
+FASTMELEE
+NOFEAR
+NOTIMEFREEZE
+NORADIUSDMG
+NOEXTREMEDEATH
+LookAllAround
+DontHurtSpecies
+DONTHARMSPECIES
Species "GodSlayer"
Mass 1000
PainChance 7
MeleeDamage 450
MeleeRange 40
Damagefactor 0.12
DamageFactor "Ice", 0.045
DamageFactor "Explosion", 0.0001
DamageFactor "PlayerDTRG", 0.0001
DamageFactor "DTRailgun", 0.0001
DamageFactor "PDTPuff", 0.0001
DamageFactor "RailG", 0.0001
DamageFactor "PyroShot", 0.01
DamageFactor "PlayerPyro", 0.035
DamageFactor "PlayerBHole", 0.025
DamageFactor "PlayerDBFG", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "Legendary", 0.1
DamageFactor "LegendaryPlayer", 0.1
DamageFactor "LegendaryGuru", 0.05
DamageFactor "LegendaryGuruPlayer", 0.05
DamageFactor "PlayerNemesisPlasma", 0.1
DamageFactor "TrueLegendaryDamage", 0.1
DamageFactor "TrueLegendaryPlayer", 0.1
DamageFactor "Cursed", 0.1
DamageFactor "Hackroid", 0.14
DamageFactor "PlayerDevBall", 0.1
DamageFactor "PlayerDevTracer", 0.1
DropItem "MarineDBFGBeacon" 128
DropItem "CorruptedSphere"
DropItem "NemesisOmegaSphere" 256
Dropitem "DCellPack", 256, 32
Dropitem "DCellPack", 128, 30
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
DropItem "DivineContract" 256
DropItem "DarkDivineArmorItem" 256
DropItem "NexusHighJumpRune" 256
DropItem "ElusiveSphere", 180
Obituary "%o was Assassinated by \c[a4]Kayn The GodSlayer\c-."
SeeSound "CLC/see"
PainSound "CLC/Rage"
DeathSound "BlueCardinal/Death"
ActiveSound "CLC/active"
MeleeSound "deathassassin/melee"
Tag " \c[a4]Kayn The GodSlayer\c-"
var int user_music;
var int user_RageCombo;
var int user_CorruptedSyringeuse1;
var int user_CorruptedSyringeuse2;
var int user_CorruptedSyringeuse3;
var int user_CorruptedSyringeuse4;
States
	{
	Spawn:
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		Loop
	See:
		TNT1 A 0 A_JumpIf(user_music == 1,3)
	    TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1742,1011)
	    TNT1 A 0 A_SetUserVar("user_music",1)
		//TNT1 A 0 A_JumpIfInventory("RageActivated", 1, "SeePostRage")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse1 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(13500, "CorruptedSyringeuse1")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse2 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(10500, "CorruptedSyringeuse2")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse3 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(8500, "CorruptedSyringeuse3")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse4 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(3500, "CorruptedSyringeuse4")
		TNT1 A 0 A_JumpIf(user_RageCombo == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(7500, "RageCombo")
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(25,"Missile")
		TNT1 A 0 A_Jump(15,"Jump")
		Loop
		/*
	SeePostRage:
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(15,"Jump")
		Loop
		*/
	Strafing:
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 3 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA CCDD 3 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Pause:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA A 8 A_PlaySound("weapons/demontechsteam")
		Goto See
	PauseNoDTR:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Melee:
		KASA EE 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	    TNT1 A 0 ThrustThingZ(0,20,0,1)
	    KASA E 2 A_Recoil(-24)
        KASA E 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 3 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 5 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Missile:
		TNT1 A 0 A_SetShootable
		TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_JumpIfCloser(500,"CorruptedQuad")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		TNT1 A 0 A_Jump(35,"Corruptedsyringe")
		TNT1 A 0 A_Jump(40,"ShadowSummon")
	Normal: 
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_Jump(15,"Jump")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
	CorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("CorruptedLegCardiBLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_Jump(20,"Jump")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto CorruptedBalls+1
	AngryCorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		TNT1 A 0 A_Jump(25,"Jump")
		Goto see
	CorruptedSuperBallCombo:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("T3DBFGBall", 30, 0, 0)
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("CorruptedLegCardiBLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto See
	CorruptedQuad:
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgfire")
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 AAA 0 Bright A_CustomMissile("T3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		KASA E 5 Bright A_CustomMissile("T3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgopen")
		KASA E 4 A_PlaySound("weapons/qsgshellslide")	
		KASA E 4 A_GiveInventory("HellCloneStrafing",1)
		KASA E 6 A_PlaySound("weapons/qsgclose")	
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		Goto See
	Jump:
	    TNT1 A 0 A_Jump(120,"HighJump")
		TNT1 A 0 A_PlaySound("CLC/active", CHAN_AUTO, 1.0, False, ATTN_NONE)
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,70,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	HighJump:
	    TNT1 A 0 A_PlaySound("CLC/active", CHAN_AUTO, 1.0, False, ATTN_NONE)
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,100,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	Corruptedsyringe:
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("EvilKaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse1:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse1",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("EvilKaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse2:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse2",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("EvilKaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse3:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse3",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("EvilKaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse4:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse4",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("EvilKaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	RageCombo:
	    //TNT1 A 0 A_JumpIfInventory("RageActivated", 1, "SeePostRage")
        //TNT1 A 0 A_GiveInventory("RageActivated", 1)  
		TNT1 A 0 A_SetUserVar("user_RageCombo",1)
	    KASA E 4 A_FaceTarget
		TNT1 A 0 A_GiveInventory("EnemyDemonicChalice", 1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 A_PlaySound("dchalice/use",0,1.0,0)
		KASA E 15 A_FaceTarget
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("T3DBFG10KBall", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		GoTo See
	ShadowSummon:
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 A_SpawnItemEx("KaynShadow",0,0,64,random(1,8),0,2,random(0,360),0,0)
		TNT1 A 0 A_PlaySound("Summoner/Sight",0,1.0,0)
		GoTo See
	Pain:
		TNT1 A 0 A_Jump(87,"PainMissile")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA G 3 A_Pain
		Goto See
	PainMissile:
		KASA G 1
		KASA G 3 A_Pain
		Goto Missile
	Death:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("D-BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("AlliedKaynBeacon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		TNT1 A 0 A_Print("You freed Kayn the God Slayer from his bloodlust!")
		KASA L -1
		Stop
	XDeath:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("D-BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("AlliedKaynBeacon",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		TNT1 A 0 A_Print("You freed Kayn the God Slayer from his bloodlust!")
		KASA L -1
		Stop
		Raise:
		Stop
	}
}


ACTOR Kayn : KaynBase 
{ 
Health 5750
Speed 50
Species "GodSlayer"
Mass 1000
PainChance 7
MeleeDamage 450
MeleeRange 40
+DontHurtSpecies
+DONTHARMSPECIES
Damagefactor 0.25
DamageFactor "Explosion", 0.0001
DamageFactor "PlayerDTRG", 0.0001
DamageFactor "DTRailgun", 0.0001
DamageFactor "PDTPuff", 0.0001
DamageFactor "RailG", 0.0001
DamageFactor "PyroShot", 0.01
DamageFactor "PlayerPyro", 0.01
DamageFactor "PlayerBHole", 0.025
DamageFactor "PlayerDBFG", 0.015
DamageFactor "PlayerDBFG2", 0.015
DamageFactor "Legendary", 0.1
DamageFactor "LegendaryPlayer", 0.2
DamageFactor "LegendaryGuru", 0.15
DamageFactor "LegendaryGuruPlayer", 0.15
DamageFactor "PlayerNemesisPlasma", 0.15
DamageFactor "TrueLegendaryDamage", 0.3
DamageFactor "TrueLegendaryPlayer", 0.3
DamageFactor "PlayerDevBall", 0.2
DamageFactor "PlayerDevTracer", 0.2
DamageFactor "PyroShot", 0.03
DamageFactor "PlayerBHole", 0.03
Obituary "%o was Assassinated by \c[a4]Kayn\c-."
SeeSound "deathassassin/sight"
PainSound "deathassassin/pain"
DeathSound "deathassassin/death"
ActiveSound "superzombie/active"
MeleeSound "deathassassin/melee"
Tag " \c[a4]Kayn (Suppressed)\c-"
var int user_music;
var int user_deathtimer;
States
	{
	Spawn:
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		Loop
	See:
		TNT1 A 0 A_JumpIf(user_music == 1,3)
	    TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1741,1011)
	    TNT1 A 0 A_SetUserVar("user_music",1)
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_Jump(46,"Phase")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		Loop
	Strafing:
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 3 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA CCDD 3 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Phase:
        TNT1 A 0 A_PlaySound("phaseimp/teleport")
        KASA E 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 1 A_SetTranslucent(0.75)
        KASA E 1 A_SetTranslucent(0.55)
        KASA E 1 A_SetTranslucent(0.35)
		KASA E 1 A_SetTranslucent(0.15)
		KASA E 1 A_SetTranslucent(0)
        Goto Phased
	UnPhase:
        TNT1 A 0 A_PlaySound("phaseimp/teleport")
		KASA E 1 A_SetTranslucent(0)
		KASA E 1 A_SetTranslucent(0.15)
        KASA E 1 A_SetTranslucent(0.35)
        KASA E 1 A_SetTranslucent(0.55)
        KASA E 1 A_SetTranslucent(0.75)
		TNT1 A 0 A_SetTranslucent(1)
        KASA E 2 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Phased:
        KASA AABBCCDDAABBCCDDAABBCCDDAABBCCDD 1 A_ExtChase(0,0)
        KASA AABBCCDDAABBCCDD 1 A_Chase
		TNT1 A 0 A_Jump(24,"UnPhase")
        Goto Phased+32
	Melee:
		KASA EE 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	    TNT1 A 0 ThrustThingZ(0,20,0,1)
	    KASA E 2 A_Recoil(-24)
        KASA E 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 3 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 5 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Missile:
		TNT1 A 0 A_SetShootable
		TNT1 A 0 A_SetTranslucent(1)
	Normal: 
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 7 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 7 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
	RageCombo:        
		GoTo Missile
	XDeath:
	Death:
	    TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"TrueDeath")
		TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"TrueDeath")
		TNT1 A 0 A_JumpIfInTargetInventory("NexusSpread",1,"TrueDeath")
        TNT1 A 0
		KASA G 15 A_Scream
		KASA G 25 A_SpawnItemEx("Bluelightning")
		TNT1 A 0 A_SpawnItemEx("CorruptedSphere",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	    TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	    TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	    TNT1 A 0 A_SpawnItemEx("D-BFG",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
		TNT1 A 0 A_Print("You're still too weak To see the true power of the God Slayer Kayn!")
		Stop
	TrueDeath:
        TNT1 A 0
		KASA G 15 A_Scream
		KASA G 25 A_SpawnItemEx("Bluelightning")
		KASA G 15 A_SpawnItemEx("Bluelightning")
		KASA G 15 A_SpawnItemEx("Bluelightning")
		KASA G 15 A_SpawnItemEx("Bluelightning")
		KASA G 15 A_SpawnItemEx("KaynShadow",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
		TNT1 A 1 A_SpawnItemEx("KaynBase",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
		Stop
	}
}


ACTOR KaynShadow : KaynBase 
{ 
Health 1650
Speed 45
Species "GodSlayer"
Mass 500
PainChance 7
MeleeDamage 250
MeleeRange 40
Renderstyle Translucent
Alpha 0.4
+NOBLOCKMONST
+DontHurtSpecies
+DONTHARMSPECIES
Damagefactor 0.2
DamageFactor "Explosion", 0.0001
DamageFactor "PlayerDTRG", 0.0001
DamageFactor "DTRailgun", 0.0001
DamageFactor "PDTPuff", 0.0001
DamageFactor "RailG", 0.0001
DamageFactor "PyroShot", 0.01
DamageFactor "PlayerPyro", 0.01
DamageFactor "PlayerBHole", 0.025
DamageFactor "PlayerDBFG", 0.015
DamageFactor "PlayerDBFG2", 0.015
DamageFactor "Legendary", 0.1
DamageFactor "LegendaryPlayer", 0.1
DamageFactor "LegendaryGuru", 0.05
DamageFactor "LegendaryGuruPlayer", 0.05
DamageFactor "PlayerNemesisPlasma", 0.05
DamageFactor "TrueLegendaryDamage", 0.2
DamageFactor "TrueLegendaryPlayer", 0.2
DamageFactor "PlayerDevBall", 0.1
DamageFactor "PlayerDevTracer", 0.1
DamageFactor "PyroShot", 0.03
DamageFactor "PlayerBHole", 0.03
DropItem "NemesisHealthBonusMax" 256
DropItem "NemesisHealthBonusMax" 110
DropItem "NemesisArmorBonus32" 256 
DropItem "NemesisArmorBonus32" 110
Obituary "%o was Assassinated by \c[a4]Kayn Shadow\c-."
Tag " \c[a4]Kayn (Shadow)\c-"
States
    {
	See:
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		Loop
	Missile:
		TNT1 A 0 A_SetShootable
	Normal: 
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 7 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("T3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 7 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
   Phase:
        KASA E 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto Phased
	UnPhase:
        KASA E 2 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Melee:
		KASA EE 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	    TNT1 A 0 ThrustThingZ(0,20,0,1)
	    KASA E 2 A_Recoil(-24)
        KASA E 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 3 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 5 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Death:
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L 5 A_SpawnItemEx("Bluelightning")
		Stop
	XDeath:
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L 5 A_SpawnItemEx("Bluelightning")
		Stop
	}
}


ACTOR AlliedKaynGodSlayer : UACBaseMarine 
{ //Kayn in his stable state. After you defeat him, he regains control of his mind, regaining control of the corrupted power that was controlling him.
Health 7500
Speed 75
Mass 1000
PainChance 7
MeleeDamage 450
MeleeRange 40
+Friendly
+DONTHARMSPECIES
+DontHurtSpecies
+LookAllAround
Species "Player"
Damagefactor 0.25
DamageFactor "Player", 0.0
DamageFactor "Players", 0.0
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "PlayerDevTracer", 0.0
DamageFactor "PlayerExplosive", 0.0
DamageFactor "PlayerDTRG", 0.0
DamageFactor "DTRailgun", 0.0
DamageFactor "PDTBFGTracer", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "PlayerTear", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "PlayerDBFG10K2", 0.0
DamageFactor "PlayerDevBall", 0.0
DamageFactor "PlayerDevBall2", 0.0
DamageFactor "PDTBFG", 0.0
DamageFactor "DiscoBFG", 0.0
DropItem "CorruptedSphere"
DropItem "D-BFG" 256
Dropitem "DCellPack", 256, 32
Dropitem "DCellPack", 128, 30
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Obituary "%o was Assassinated by \c[a4]Kayn\c-."
SeeSound "CLC/see"
PainSound "CLC/Rage"
DeathSound "BlueCardinal/Death"
ActiveSound "CLC/active"
MeleeSound "deathassassin/melee"
Tag " \c[a4]Kayn The GodSlayer\c-"
var int user_music;
States
	{
	Spawn:
	    TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("FriendlyRedHeart",0,0,0,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION,0,56)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	SpawnLoop:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
	    TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 2 A_GiveInventory("AIPatroling",1)
		Loop
	See:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(15,"Jump")
		Loop
	Strafing:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 3 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA CCDD 3 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Pause:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA A 8 A_PlaySound("weapons/demontechsteam")
		Goto See
	PauseNoDTR:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Melee:
		KASA EE 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	    TNT1 A 0 ThrustThingZ(0,20,0,1)
	    KASA E 2 A_Recoil(-24)
        KASA E 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 3 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 5 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Missile:
		TNT1 A 0 A_SetShootable
		TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_JumpIfCloser(500,"CorruptedQuad")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		TNT1 A 0 A_Jump(35,"Corruptedsyringe")
	Normal: 
	    TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_Jump(15,"Jump")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
	CorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("BLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_Jump(20,"Jump")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto CorruptedBalls+1
	AngryCorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		TNT1 A 0 A_Jump(25,"Jump")
		Goto see
	CorruptedSuperBallCombo:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("MarineT3DBFGBall", 30, 0, 0)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("BLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto See
	CorruptedQuad:
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgfire")
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 AAAAA 0 Bright A_CustomMissile("MarineT3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		KASA E 5 Bright A_CustomMissile("MarineT3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgopen")
		KASA E 4 A_PlaySound("weapons/qsgshellslide")	
		KASA E 4 A_GiveInventory("HellCloneStrafing",1)
		KASA E 6 A_PlaySound("weapons/qsgclose")	
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		Goto See
	Jump:
	    TNT1 A 0 A_Jump(120,"HighJump")
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,70,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	HighJump:
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,100,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	Corruptedsyringe:
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Pain:
		TNT1 A 0 A_Jump(87,"PainMissile")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA G 3 A_Pain
		TNT1 A 0 A_Jump(95,"Corruptedsyringe")
		Goto See
	PainMissile:
		KASA G 1
		KASA G 3 A_Pain
		TNT1 A 0 A_Jump(110,"Corruptedsyringe")
		Goto Missile
	Death:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L -1
		Stop
	XDeath:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L -1
	    Stop
	}
}

ACTOR AlliedKaynShadow : KaynShadow 
{ 
Health 1650
+friendly
+DONTHARMSPECIES
+DontHurtSpecies
Species "Player"
Damagefactor 0.2
DamageFactor "Player", 0.0
DamageFactor "Players", 0.0
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "PlayerDevTracer", 0.0
DamageFactor "PlayerExplosive", 0.0
DamageFactor "PlayerDTRG", 0.0
DamageFactor "DTRailgun", 0.0
DamageFactor "PDTBFGTracer", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "PlayerTear", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "PlayerDBFG10K2", 0.0
DamageFactor "PlayerDevBall", 0.0
DamageFactor "PlayerDevBall2", 0.0
DamageFactor "PDTBFG", 0.0
DamageFactor "DiscoBFG", 0.0
States
	{
	Normal: 
	    TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_Jump(15,"Jump")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
		}
}

ACTOR AlliedKaynTrueGodSlayer : UACBaseMarine 
{ 
Health 16500
Speed 75
Mass 1000
PainChance 7
MeleeDamage 450
MeleeRange 40
+Friendly
+DONTHARMSPECIES
+DontHurtSpecies
+LookAllAround
Species "Player"
Damagefactor 0.17
DamageFactor "Player", 0.0
DamageFactor "Players", 0.0
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "PlayerDevTracer", 0.0
DamageFactor "PlayerExplosive", 0.0
DamageFactor "PlayerDTRG", 0.0
DamageFactor "DTRailgun", 0.0
DamageFactor "PDTBFGTracer", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "PlayerTear", 0.0
DamageFactor "PlayerDBFG2", 0.0
DamageFactor "PlayerDBFG10K2", 0.0
DamageFactor "PlayerDevBall", 0.0
DamageFactor "PlayerDevBall2", 0.0
DamageFactor "PDTBFG", 0.0
DamageFactor "DiscoBFG", 0.0
DropItem "CorruptedSphere"
DropItem "D-BFG" 256
Dropitem "DCellPack", 256, 32
Dropitem "DCellPack", 128, 30
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Dropitem "DCell", 256, 10
Obituary "%o was Assassinated by \c[a4]Kayn\c-."
SeeSound "CLC/see"
PainSound "CLC/Rage"
DeathSound "BlueCardinal/Death"
ActiveSound "CLC/active"
MeleeSound "deathassassin/melee"
Tag " \c[a4]Kayn The GodSlayer\c- \c[g5]Powers Recoveredy\c-"
var int user_music;
var int user_RageCombo;
var int user_CorruptedSyringeuse1;
var int user_CorruptedSyringeuse2;
var int user_CorruptedSyringeuse3;
var int user_CorruptedSyringeuse4;
States
	{
	Spawn:
	    TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("FriendlyRedHeart",0,0,0,0,0,0,0,SXF_SETMASTER|SXF_NOCHECKPOSITION,0,56)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	SpawnLoop:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
	    TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 2 A_GiveInventory("AIPatroling",1)
		Loop
	See:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
	    TNT1 A 0 A_GiveInventory("TrueLegendaryRuneDamageForEnemiesGiver",1)
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse1 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(13500, "CorruptedSyringeuse1")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse2 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(10500, "CorruptedSyringeuse2")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse3 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(8500, "CorruptedSyringeuse3")
		TNT1 A 0 A_JumpIf(user_CorruptedSyringeuse4 == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(3500, "CorruptedSyringeuse4")
		TNT1 A 0 A_JumpIf(user_RageCombo == 1,2)
		TNT1 A 0 A_JumpIfHealthLower(7500, "RageCombo")
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(15,"Jump")
		Loop
	SeePostRage:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
		KASA AABB 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_JumpIfTargetInLOS("Strafing")
		KASA CCDD 2 A_Chase
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(15,"Jump")
		loop
	Strafing:
	    TNT1 A 0 ACS_NamedExecuteAlways("Check For Master Player Calling Help",0,0,0,0)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA AABB 3 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA CCDD 3 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Pause:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA A 8 A_PlaySound("weapons/demontechsteam")
		Goto See
	PauseNoDTR:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		Goto See
	Melee:
		KASA EE 2 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	    TNT1 A 0 ThrustThingZ(0,20,0,1)
	    KASA E 2 A_Recoil(-24)
        KASA E 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 3 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        KASA E 5 A_FaceTarget	
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
        Goto See
	Missile:
		TNT1 A 0 A_SetShootable
		TNT1 A 0 A_SetTranslucent(1)
		TNT1 A 0 A_JumpIfCloser(500,"CorruptedQuad")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		TNT1 A 0 A_Jump(35,"Corruptedsyringe")
		TNT1 A 0 A_Jump(40,"ShadowSummon")
	Normal: 
	    TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(20,"Pause")
		TNT1 A 0 A_Jump(15,"Jump")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 Fast A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto Normal+1
	CorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("BLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_Jump(20,"Jump")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto CorruptedBalls+1
	AngryCorruptedBalls:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		TNT1 A 0 A_Jump(25,"Jump")
		Goto see
	CorruptedSuperBallCombo:
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("MarineT3DBFGBall", 30, 0, 0)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("BLGSuperLightningBall", 30, 0, 0)
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 10 A_PlaySound("legendarycannon/up")
		TNT1 A 0 A_Jump(30,"PauseNoDTR")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		TNT1 A 0 A_SpidRefire
		Goto See
	CorruptedQuad:
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(120,"CorruptedBalls","AngryCorruptedBalls","CorruptedSuperBallCombo")
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgfire")
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 AAAAA 0 Bright A_CustomMissile("MarineT3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		KASA E 5 Bright A_CustomMissile("MarineT3DBFG10kShot",Random(28,34),0,Random(6,-6),0)
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_PlaySound("weapons/qsgopen")
		KASA E 4 A_PlaySound("weapons/qsgshellslide")	
		KASA E 4 A_GiveInventory("HellCloneStrafing",1)
		KASA E 6 A_PlaySound("weapons/qsgclose")	
		TNT1 A 0 A_GiveInventory("HellCloneStrafing",1)
		Goto See
	Jump:
	    TNT1 A 0 A_Jump(120,"HighJump")
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,70,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	HighJump:
	    KASA E 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,100,0,1)
		KASA E 5 A_FaceTarget
		KASA E 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	RageCombo:
	    //TNT1 A 0 A_JumpIfInventory("RageActivated", 1, "SeePostRage") 
        //TNT1 A 0 A_GiveInventory("RageActivated", 1)   
		TNT1 A 0 A_SetUserVar("user_RageCombo",1)
	    KASA E 4 A_FaceTarget
		TNT1 A 0 A_GiveInventory("EnemyDemonicChalice", 1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 A_PlaySound("dchalice/use",0,1.0,0)
		KASA E 15 A_FaceTarget
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 3 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_CustomMissile("MarineT3DBFG10kShot",35,0,random(-8,8),0)
		KASA E 3 Bright A_PlaySound("Weapons/dbfgfire2",CHAN_WEAPON)
		KASA E 12 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA E 6 Bright A_CustomMissile("AlliedKaynBFG3500Ball", 30, 0, 0)
		KASA E 17 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		GoTo See
	Corruptedsyringe:
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse1:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse1",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse2:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse2",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse3:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse3",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	Corruptedsyringeuse4:
	    TNT1 A 0 A_SetUserVar("user_CorruptedSyringeuse4",1)
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 HealThing(275)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeResistanceGiver",1)
		TNT1 A 0 A_GiveInventory("KaynCorruptedSyringeDamageGiver",1)
		TNT1 A 0 A_PlaySound("items/powerstim",0,1.0,0)
		GoTo See
	ShadowSummon:
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		KASA E 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
		TNT1 A 0 A_SpawnItemEx("AlliedKaynShadow",0,0,64,random(1,8),0,2,random(0,360),0,0)
		TNT1 A 0 A_PlaySound("Summoner/Sight",0,1.0,0)
		GoTo See
	Pain:
		TNT1 A 0 A_Jump(87,"PainMissile")
		TNT1 A 0 A_GiveInventory("DTZombieStrafing",1)
		KASA G 3 A_Pain
		TNT1 A 0 A_Jump(95,"Corruptedsyringe")
		Goto See
	PainMissile:
		KASA G 1
		KASA G 3 A_Pain
		TNT1 A 0 A_Jump(110,"Corruptedsyringe")
		Goto Missile
	Death:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L -1
		Stop
	XDeath:
	TNT1 A 0 A_SpawnItemEx("NemesispowerShard",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("BackPack",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("CorruptedSyringe",0,0,12,random(0,8),random(0,8),2,random(0,360),0,32)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,128)
	TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,0)
		TNT1 A 0
		KASA H 5 A_Scream
		KASA I 5 A_Fall
		KASA J 5 A_SpawnItem("BodyCrash",0,0,0,0)
		KASA J 5
		KASA L -1
	    Stop
	}
}

Actor AlliedKaynBFG3500Ball : BFG3500Ball
{
  Radius 13
  Height 8 
  Speed 25
  PROJECTILE
  Damage (1200)
  +RANDOMIZE
  +FORCERADIUSDMG
  +NODAMAGETHRUST
  +FORCEPAIN
  +NOEXTREMEDEATH
  +MTHRUSPECIES
  DamageType "AllyDBFG"
  Species "player"
  Renderstyle Add
  Alpha 0.8
  DeathSound ""
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_AlertMonsters
    TNT1 A 0 A_PlaySoundEx("weapons/dtech10kball","Voice",1)
    BFS9 ABCD 1 Bright A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    Loop
  Death:	
    TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)	
	TNT1 A 0 A_RadiusGive("BFG3500BallEffect",584,RGF_MONSTERS,1) //TNT1 A 0 A_RadiusGive("BFG3500BallEffect",584,RGF_MONSTERS|RGF_PLAYERS,1)
	TNT1 A 0 A_Explode((500),584,0)
	TNT1 A 0 A_SpawnItemEx("BFG3500ShockWave",0,0,24,0,0,0,0,128)
	BFS9 ABCDABCDABCDABCDABCDABCDABCDABCDABCD 1 Bright A_SpawnItemEx("BFGTrailParticleBlue",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
	//TNT1 A 0 A_Explode(8,512,0)
	TNT1 A 0 A_Explode((250),584,0)
	TNT1 A 0 Radius_Quake(3,35,0,10,0)
	TNT1 A 0 A_RadiusGive("BFG3500BallEffect",584,RGF_MONSTERS,1)
	TNT1 A 0 A_SpawnItemEx("BFG3500ShockWave",0,0,24,0,0,0,0,128)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(20,12,0,12,0)
	TNT1 A 0 A_PlaySound("bfg3500/explode")
	BFE9 A 8 Bright A_SpawnItem("BFG3500BallEx",0,-10)
	BFE9 BCD 8 Bright
    Stop 
    }
}

Actor RageActivated : PowerDamage
{
  DamageFactor "Notarealdamagetype", 1.0
  Powerup.Duration -65
}

Actor KaynCorruptedSyringeResistance : PowerProtection
{
  DamageFactor "Normal", 0.75
}

Actor KaynCorruptedSyringeResistanceGiver : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -50
  Powerup.Type "KaynCorruptedSyringeResistance"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor EvilKaynCorruptedSyringeResistanceGiver : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -6 //he succumbed to the corrupted power, causing the corrupted power to already be naturally impregnated in him,
  //which is why the duration of the resistance powerup is shorter, the resistance is already naturally in him
  Powerup.Type "KaynCorruptedSyringeResistance"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor KaynCorruptedSyringeDamage : PowerDamage
{
  DamageFactor "Normal", 1.25
}

Actor KaynCorruptedSyringeDamageGiver : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -50
  Powerup.Type "KaynCorruptedSyringeDamage"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor KaynGodSlayerTrueDamage : PowerDamage
{
  DamageFactor "Normal", 4.5
}

Actor KaynGodSlayerTrueDamageGiver : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -0x7FFFFFFD
  Powerup.Type "KaynGodSlayerTrueDamage"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor EnemyDemonicChalice : PowerupGiver
{
  Inventory.MaxAmount 1
  Powerup.Duration -15
  Powerup.Type "Invulnerable"
  Powerup.Mode Reflective
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
}

Actor INFKayn : Kayn
{
Tag " \c[a4]Kayn (Suppressed)\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(130,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
		KASA A 10 A_Look
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("TrueLegendarySphereFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("BaronOfHell",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}