Actor GodKingDarius
{
//Creator: Nolram
//Origin: Infinity Gods (League Of Legends Skin)
//Sprite: GKDA - GKDB - GKDC - GKDD - GKDR
//Title: "God King Darius" 
Monster
Health 50000
Height 64
Radius 24
Speed 20
Mass 5000
Painchance 1
MeleeRange 120
MeleeDamage 650
Scale 0.25
BloodColor "Red"
+Boss
+LookAllAround
+NoFear
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+NOTIMEFREEZE
+NOEXTREMEDEATH
-NODROPOFF
+FLOORCLIP
Species "God"
Damagefactor "God", 0.0 
DropItem "NemesispowerShard" 130
DropItem "DarkVoidArmor" 256
DropItem "DivinePowerSphere" 256
DropItem "NexusHighJumpRune" 256
DropItem "TrueLegendaryrune" 256
DropItem "Terminator" 256
DropItem "Legendaryrune" 256
DropItem "RandomSuperPowerUp" 256
DropItem "RandomSuperPowerSphere" 256
DropItem "SuperChargedWeaponEnhancerModuleGiver" 256
Damagefactor 0.3
DamageFactor "PlayerDTRG", 0.085
DamageFactor "TechBlast", 0.0
DamageFactor "Legendary", 0.15
DamageFactor "LegendaryPlayer", 0.15
DamageFactor "LegendaryGuru", 0.15
DamageFactor "LegendaryGuruPlayer", 0.18
DamageFactor "PlayerNemesisPlasma", 0.34
DamageFactor "TrueLegendaryDamage", 0.375
DamageFactor "TrueLegendaryPlayer", 0.375
DamageFactor "PlayerDevBall", 0.15
DamageFactor "Cursed", 0.22
DamageFactor "Hackroid", 0.3
DamageFactor "UpBFG9500Ball", 0.15
DamageFactor "Extreme", 0.0
DamageFactor "PDTPuff", 0.0
DamageFactor "FreezerBurn", 0.0
DamageFactor "Fire", 0.0
DamageFactor "Crush", 0.0
DamageFactor "Suicide", 0.0
DamageFactor "Telefrag", 0.0
DamageFactor "Massacre", 0.0
DamageFactor "Ice", 0.0
DamageFactor "CDTBFG", 0.0
DamageFactor "DBFG10K", 0
DamageFactor "C0mm4nder", 0.0
DamageFactor "DBFG2",0.0
DamageFactor "PyroShot", 0.08
DamageFactor "Explosion", 0.05
DamageFactor "PlayerBHole", 0.03
DamageFactor "Fire", 0.15
SeeSound "darius/taunt1"
PainSound "lcbruiser/pain"
DeathSound "lcbruiser/death"
ActiveSound "darius/taunt"
MeleeSound "baron/melee"
Obituary "%o Was Destroyed By The \c[s0]God King Darius\c-."
HitObituary "%o Was Destroyed By The \c[s0]God King Darius\c-."
Tag "\c[s0]God King Darius\c-"
var int user_music;
var int user_Healing1;
var int user_CheckPower;
States
	{
	Spawn:
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA A 8 A_Look
		GKDA B 8 A_Look
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDA C 8 A_Look
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA B 8 A_Look
		GKDA A 8 A_Look
		Loop
	See:
	    TNT1 A 0 A_JumpIf(user_music == 1,3)
	    TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1755,1006)
	    TNT1 A 0 A_SetUserVar("user_music",1)
		TNT1 A 0 A_JumpIf(user_CheckPower == 1,2)
	    TNT1 A 0 A_JumpIfHealthLower(39500, "CheckPower")
		TNT1 A 0 A_JumpIf(user_Healing1 == 1,2)
	    TNT1 A 0 A_JumpIfHealthLower(20000, "Healing1")
		TNT1 A 0 A_ChangeFlag(SHIELDREFLECT,0)
		TNT1 A 0 A_ChangeFlag(REFLECTIVE,0)
	SeeLoop:
		TNT1 A 0 A_ChangeFlag(NOPAIN,0)
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDR A 1 A_Chase
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDR AABB 1 A_Chase("","")
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDR B 1 A_Chase
		GKDR BBCC 1 A_Chase("","")
		TNT1 A 0 A_SpawnItemEx("HoofStep2",0,0,2,0,0,-20)
		GKDR C 1 A_Chase
		GKDR DDEE 1 A_Chase("","")
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDR D 1 A_Chase
		GKDR EEFF 1 A_Chase("","")
		TNT1 A 0 A_Jump(30,"Jump")
		TNT1 A 0 A_SpawnItemEx("HoofStep2",0,0,2,0,0,-20)
		Loop
	Jump:
	    GKDR A 10 A_FaceTarget
		TNT1 A 0 ThrustThingZ(0,80,0,1)
		GKDR B 5 A_FaceTarget
		GKDR C 10 A_FaceTarget
		TNT1 A 0 A_Recoil(-50)
		GoTo See
	Melee:
	    TNT1 A 0 A_Jump(256,"MeleeAttack")
	MeleeAttack:
	    TNT1 A 0 A_Jump(128,"MeleeAttack2")
	    GKDB A 4 A_FaceTarget
		GKDB B 3 A_FaceTarget
		GKDB C 3 A_FaceTarget
		GKDB D 2 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("CommanderAntiMatterBoomFlash",0,0,0, 0,0,0) 
		TNT1 AA 0 A_SpawnItemEx("CommanderAntiMatterBoom2",0,0,0, 0,0,0)
		GKDB E 4
		Goto See
	MeleeAttack2:
	    GKDC A 4 A_FaceTarget
		GKDC B 3 A_FaceTarget
		GKDC C 3 A_FaceTarget
		GKDC D 2 A_MeleeAttack
		TNT1 A 0 A_SpawnItemEx("CommanderAntiMatterBoomFlash",0,0,0, 0,0,0) 
		TNT1 AA 0 A_SpawnItemEx("CommanderAntiMatterBoom2",0,0,0, 0,0,0)
		GKDC E 4
		Goto See
	Missile:
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA AB 5 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		TNT1 A 0 A_Jump(130,"RedBlastsAttack","ArchonBlastsAttack")
		TNT1 A 0 A_Jump(90,"BlastsCombo","DoomsdayBlastsAttack","PurpleBfgBlastsAttack")
		GKDB BB 5 A_FaceTarget
		GoTo SeeLoop
	RedBlastsAttack:
	    GKDC A 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDC B 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDC C 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDC D 5 A_FaceTarget
		GKDC A 0 Bright A_CustomMissile("CardinalDTBFG10KBall",63,15,0)
	    GKDC A 0 Bright A_CustomMissile("CardinalDTBFG10KBall",63,15,30)
	    GKDC A 0 Bright A_CustomMissile("CardinalDTBFG10KBall",63,15,-30)
		GKDC E 15
		Goto See
	ArchonBlastsAttack:
	    GKDB A 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDB B 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDB C 15 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,-30)
		GKDB E 15
		Goto See
	PurpleBfgBlastsAttack:
	    GKDB A 15 A_FaceTarget
		GKDB B 15 A_FaceTarget
		GKDB C 15 A_FaceTarget
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,-30)
		GKDB E 15
		GKDC A 10 A_FaceTarget
		GKDC B 10 A_FaceTarget
		GKDC C 10 A_FaceTarget
		GKDC D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,-30)
		GKDC E 10
		GKDB A 10 A_FaceTarget
		GKDB B 10 A_FaceTarget
		GKDB C 10 A_FaceTarget
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("CyberCommanderBFG9500Ball",63,15,-30)
		GKDB E 10
		GKDC A 10 A_FaceTarget
		GKDC B 10 A_FaceTarget
		GKDC C 10 A_FaceTarget
		GKDC D 5 A_FaceTarget
		GKDC A 0 Bright A_CustomMissile("CorruptedLegCardiBLGSuperLightningBall",63,15,0)
	    GKDC A 0 Bright A_CustomMissile("CorruptedLegCardiBLGSuperLightningBall",63,15,30)
	    GKDC A 0 Bright A_CustomMissile("CorruptedLegCardiBLGSuperLightningBall",63,15,-30)
		GKDC E 15
		GKDB A 20 A_FaceTarget
		GKDB B 15 A_FaceTarget
		GKDB C 15 A_FaceTarget
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("PurpleBFG3500Ball",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("PurpleBFG3500Ball",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("PurpleBFG3500Ball",63,15,-30)
		GKDB E 15
		Goto See
	BlastsCombo:
	    GKDB A 20 A_FaceTarget
		GKDB B 15 A_FaceTarget
		GKDB C 15 A_FaceTarget
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("PyroShot",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("PyroShot",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("PyroShot",63,15,-30)
		GKDB E 15
		GKDC A 15 A_FaceTarget
		GKDC B 15 A_FaceTarget
		GKDC C 15 A_FaceTarget
		GKDC D 5 A_FaceTarget
		GKDC A 0 Bright A_CustomMissile("PyroShot",63,15,0)
	    GKDC A 0 Bright A_CustomMissile("PyroShot",63,15,30)
	    GKDC A 0 Bright A_CustomMissile("PyroShot",63,15,-30)
		GKDC E 15
		GKDB A 15 A_FaceTarget
		GKDB B 15 A_FaceTarget
		GKDB C 15 A_FaceTarget
		GKDB D 5 A_FaceTarget
		GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,0)
	    GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,30)
	    GKDB A 0 Bright A_CustomMissile("ArchonLordMegaBall",63,15,-30)
		GKDB E 15
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA A 8 A_FaceTarget
		GKDA B 8 A_FaceTarget
		GKDA C 8 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA B 8 A_FaceTarget
		GKDA A 8 A_FaceTarget
		Goto See
	 DoomsdayBlastsAttack:
	    TNT1 A 0 A_PlaySound("darius/taunt",2,1.0,0,ATTN_NONE)
	    TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
	    GKDC A 35 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDC B 30 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDC C 20 A_FaceTarget
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDC D 5 A_FaceTarget
		GKDC A 0 Bright A_CustomMissile("CyberCommanderDoomsdayCannon",63,15,0)
	    GKDC A 0 Bright A_CustomMissile("CyberCommanderDoomsdayCannon",63,15,30)
	    GKDC A 0 Bright A_CustomMissile("CyberCommanderDoomsdayCannon",63,15,-30)
		GKDC E 15
		Goto See
	Healing1:
      TNT1 A 0 A_SetUserVar("user_Healing1",1)
      TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"EmpoweredHeal")
      GKDC E 5 Bright 
      GKDC E 1 A_GiveInventory("Health",1500)
	  Goto See 
   EmpoweredHeal:
      GKDC E 5 Bright 
	  TNT1 A 0 A_GiveInventory("GodsFullImunityGiver2",1)
	  TNT1 A 0 A_GiveInventory("GodsFinalBattleShield2",1)
      GKDC E 1 A_GiveInventory("Health",12500)
	  Goto See
	CheckPower:
	   TNT1 A 0 A_SetUserVar("user_CheckPower",1)
       TNT1 A 0 A_JumpIfInTargetInventory("NexusStrength",1,"CheckPower2")
       Goto See
    CheckPower2:
       TNT1 A 0 A_JumpIfInTargetInventory("TerminatorDamage2",1,"TruePower")
       Goto See
    TruePower:
       TNT1 A 0 A_GiveInventory("GodFinalBattleResistanceGiver",1)
       Goto See
	Death:
	    GKDD A 8
		GKDD B 8
		GKDD C 8
		GKDD D 8
		TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,100)
	    TNT1 A 0 A_SpawnItemEx("SuperArmorBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,100)
	    TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,100)
	    TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,100)
	    TNT1 A 0 A_SpawnItemEx("SuperHealthBonus",0,0,12,random(0,8),random(0,8),2,random(0,360),0,100)
		TNT1 A 0 A_PlaySound("DMBall/Impact",0,1.0,0,ATTN_NONE)
	    TNT1 A 0 A_SpawnItemEx("BlackDeathSequence")
		GKDD D 2 A_NoBlocking
		GKDD D 2 A_BossDeath
		TNT1 A 0 A_Print("GOD SLAIN!")
		GKDD D 1
		Stop
		}
}

Actor INFGodKingDarius : GodKingDarius
{
Tag "\c[s0]God King Darius\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(135,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA A 8 A_Look
		GKDA B 8 A_Look
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDA C 8 A_Look
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA B 8 A_Look
		GKDA A 8 A_Look
		Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("CybersStrongSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor PMCGodKingDarius : GodKingDarius
{
Tag "\c[s0]God King Darius\c-"
States
{
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA A 8 A_Look
		GKDA B 8 A_Look
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDA C 8 A_Look
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA B 8 A_Look
		GKDA A 8 A_Look
		Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("CybersStrongSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}

Actor INF2GodKingDarius : GodKingDarius
{
Tag "\c[s0]God King Darius\c-"
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_Jump(160,"Remove")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("TrueLegendaryRuneSpawnCheck") == 2,1)
	Goto Remove
	Idle:
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA A 8 A_Look
		GKDA B 8 A_Look
		TNT1 A 0 A_SpawnItemEx("InsanityFlameSpawner")
		GKDA C 8 A_Look
		TNT1 A 0 A_SpawnItemEx("CyberCommanderFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("NemesisCyberFlameSpawner")
		GKDA B 8 A_Look
		GKDA A 8 A_Look
		Loop
  Remove:
	TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("CybersStrongSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
	}
}