Actor INFHellFireCyHunter : HellFireCyHunter Replaces HellFireCyHunter
{
DropItem "BossLifeEssence" 128 25
DropItem "BossArmorBonusMax" 128 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "GreaterFireEnergy" 128 200
DropItem "HomingRocketLauncher" 100
DropItem "BFG10K " 100 
DropItem "CannongunSphere" 32
Tag "\c[z4]HellFire \c[v9]Cyhunter\c-"
States
{
  Spawn: 
	TNT1 A 0
	TNT1 A 0 ACS_NamedExecuteAlways("LesserCardinalFireEffect",0)
	TNT1 A 0 A_PlaySound("monster/ambientfire",7,1.0,1)
	Goto Idle
  Idle:
    CYHU AB 2 A_Look
    Loop 
	}
}

ACTOR INFHFQHellFireCyHunter : INFHellFireCyHunter Replaces HFQHellFireCyHunter
{
Species "Masterminds"
DamageFactor "HFCyber", 0.0
DamageFactor "Cyber10K", 0.0
DamageFactor "VileFires", 0.0
DamageFactor "NobleComet", 0.0
DamageFactor "CadaverRocket", 0.0
DamageFactor "C0mm4nder", 0.0
+THRUSPECIES
Tag "\c[z4]Hellfire \c[v9]CyHunter\c-"
}

ACTOR INFEmpoweredBFGCommando : EmpoweredBFGCommando Replaces EmpoweredBFGCommando
{
DamageFactor "Traps", 0.0
Tag "\c[x9]Empowered BFG Commando\c-"
var int user_trap;
var int user_trapcount;
States
{
  See:
    BF0Z AABB 2 A_Chase
    BF0Z B 0 A_SpawnItem("FootStep",0,0,0,0)
    BF0Z CCDD 2 A_Chase
	TNT1 A 0 A_JumpIf(user_trap == 0,3)
	TNT1 A 0 A_JumpIf(user_trapcount == 0,2)
	TNT1 A 0 A_Jump(10,"ThrowTrap")
    BF0Z D 0 A_SpawnItem("FootStep",0,0,0,0)
	Loop
  ThrowTrap:
	TNT1 A 0 A_SetAngle(Angle+Random(0,360))
    TNT1 A 0 A_PlaySound("weapons/hgrenadethrow",4)
	TNT1 A 0 A_SetUserVar(user_trapcount,user_trapcount-1)
    BF0Z E 12 A_CustomMissile("ThrownEmPowFlameTrap",32,0,0,2,15)
	Goto See
  Missile:
	TNT1 A 0 A_JumpIf(user_trap == 1,3)
	TNT1 A 0 A_SetUserVar(user_trapcount,Random(0,3))
	TNT1 A 0 A_SetUserVar(user_trap,1)
	TNT1 A 0 A_Jump(128,"BFG15K")
	TNT1 A 0 A_Jump(64,"DTechBFG10K")
  BFG9500:
	TNT1 A 0 A_PlaySound("weapons/bfgf")
	BF0Z EEEEE 5 A_FaceTarget
	BF0Z F 10 Bright A_CustomMissile("EmpoweredZombieBFG9500Ball",30,0)
	BF0Z E 20
    Goto See
	}
}

ACTOR INFEmpoweredDarkCydestroyer : EmpoweredDarkCydestroyer Replaces EmpoweredDarkCydestroyer
{
DropItem "NemesisHealthBonusMax" 200 25
DropItem "NemesisArmorBonus16" 200
DropItem "NemesisHealthBonusMax" 200 25
DropItem "NemesisArmorBonus16" 200
DropItem "BerserkSphere" 120
DropItem "GreaterDemonicEnergy" 220 200
DropItem "Demon Tech Rifle" 256
DropItem "Demon Tech Railgun" 256
DropItem "SuperArmorSphere" 60 
DropItem "CannongunSphere" 128
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "GreaterPlasmaEnergy" 186 300
DropItem "SphereOfPower" 200
DropItem "BFG10K " 128
DropItem "BFG9500" 64
DropItem "DarkArmor" 140
DamageFactor 0.35
  DamageFactor "Legendary", 0.2
  DamageFactor "LegendaryPlayer", 0.2
  DamageFactor "LegendaryGuru", 0.2
  DamageFactor "LegendaryGuruPlayer", 0.2
  DamageFactor "PlayerNemesisPlasma", 0.2
  DamageFactor "TrueLegendaryDamage", 0.2
  DamageFactor "TrueLegendaryPlayer", 0.2
  DamageFactor "PlayerDevBall", 0.1
  DamageFactor "PlayerDevTracer", 0.1
Tag "\c[x9]Empowered Dark Cydestroyer\c-"
}

ACTOR INFEmpoweredDarkAnnihilator : EmpoweredDarkAnnihilator Replaces EmpoweredDarkAnnihilator
{
DropItem "NemesisHealthBonusMax" 200 25
DropItem "NemesisArmorBonus16" 200
DropItem "NemesisHealthBonusMax" 200 25
DropItem "NemesisArmorBonus16" 200
DropItem "SphereOfPower" 256
DropItem "ModdedGreenArmor" 128
DropItem "ModdedInvulnerabilitySphere" 32
DropItem "SuperArmorSphere" 60 
DropItem "DemonicEnergy" 256 60
DropItem "GreaterDemonicEnergy" 200
DropItem "PlasmaEnergy" 256 60
DropItem "GreaterPlasmaEnergy" 300
DropItem "BFG10K " 190 1
DropItem "BFG9500" 190 1
DropItem "Railgun " 190 1
DropItem "Demon Tech Railgun" 256
DropItem "Demon Tech BFG10K" 128
DropItem "DarkArmor" 140
 DamageFactor 0.45
  DamageFactor "Legendary", 0.4
  DamageFactor "LegendaryPlayer", 0.4
  DamageFactor "LegendaryGuru", 0.4
  DamageFactor "LegendaryGuruPlayer", 0.4
  DamageFactor "PlayerNemesisPlasma", 0.35
  DamageFactor "TrueLegendaryDamage", 0.35
  DamageFactor "TrueLegendaryPlayer", 0.35
  DamageFactor "PlayerDevBall", 0.1
  DamageFactor "PlayerDevTracer", 0.1
Tag "\c[x9]Empowered Dark Annihilator\c-"
}

ACTOR INFHellFireInfernoDemon : HellFireInfernoDemon Replaces HellFireInfernoDemon
{
DropItem "HellfireUltrasphere" 256 1
DropItem "GreaterDemonicEnergy" 256 200
DropItem "GreaterFireEnergy" 256 200
DropItem "LegendaryRune" 128 1
DropItem "PyroCannon", 128 1
DropItem "DemonicChalice" 96
DropItem "HellsFurySphere", 256
Tag "\c[z4]Hellfire \c[v9]Inferno Demon\c-"
}

ACTOR INFInsanitySkellyKing : InsanitySkellyKing Replaces InsanitySkellyKing
{
DropItem "GreaterDemonicEnergy", 256 200
DropItem "BossLifeEssence" 256 25
DropItem "BossArmorBonusMax" 256 1
DropItem "SkullOfPower" 64
DropItem "DemonicChalice" 64
DropItem "GreaterPlasmaEnergy", 256 300
DropItem "HellfireUltrasphere", 160
DropItem "BFG10K " 178 1
DropItem "Railgun " 184 1
Tag "\c[i7]Insanity Skelly King\c-"
}

ACTOR INFPhasePestilence : PhasePestilence Replaces PhasePestilence
{
Tag "\ctPhase Pestilence\c-"
States
{
  Death:
	TNT1 A 0 A_SpawnItemEx("PurpleKaboom",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
	PS3V LLLLLLLLLL 1 Bright A_SpawnItemEx("PurpleKaboom",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    PS3V MM 1 Bright A_SpawnItemEx("PurpleKaboom",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    PS3V MMM 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AAA 0 A_SpawnItemEx("GreenParticleSpawner",0,0,40,0,0,0,0,SXF_CLIENTSIDE,0)
    PS3V N 0 Bright A_Scream
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V N 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V N 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V N 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V N 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V N 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    PS3V N 0 Bright A_NoBlocking
	TNT1 A 0 A_SpawnItemEx("DemonicEnergy",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("GreaterDemonicEnergy",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_SpawnItemEx("Demon Tech Rifle",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_SpawnItemEx("BossLifeEssence",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("BossArmorBonusMax",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_SpawnItemEx("PhaseSphere",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION,128)
	TNT1 A 0 A_SpawnItemEx("UltraSphere",0,0,12,Frandom(4,-4),Frandom(4,-4),Frandom(1,2),0,SXF_NOCHECKPOSITION,128)
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V O 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V O 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V O 1 Bright A_SpawnItemEx("PhasePestilencePoison",0,0,10,Random(5,-5),Random(5,-5),Random(6,-3))
    TNT1 A 0 A_ChangeFlag(NoGravity,0)
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V P 1 Bright
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V P 1 Bright
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V P 1 Bright
    TNT1 AA 0 A_SpawnItem("PhasePestilenceGasSpawner",0,0,0,0)
    PS3V P 1 Bright
    PS3V QRS 3 Bright
    PS3V T 3 Bright A_FadeOut(0.1,1)
    Wait
	}
}

ACTOR INFNewHellsBattery : NewHellsBattery Replaces NewHellsBattery
{
Tag "\c[d9]Hell's Battery\c-"
States
{
   Death:
    HELB E 5 A_Pain
	HELB EEEEEEEEEEEEEEEEE 2 Bright A_SpawnItemEx("Kaboom",Random(-64,64),Random(-64,64),Random(12,96))
	HELB E 0 A_SpawnItemEx("ShockWave",0,0,0,0,0,0,0,128)
	HELB E 0 A_CustomMissile("BigExplosion",0,0,random(80,100),2,random(80,100))
    HELB E 1 A_NoBlocking
	TNT1 AAAAAAAAAAAAAAAA 0 A_CustomMissile("SmokeFX3", random(10,60), random(30,-30), random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("M79GrenadeKaBoom",random(-80,80),random(-80,80),0,0,0,0,0,128)
	TNT1 AAAAAAAAAAAAAAA 0 A_CustomMissile("HellFireExplode",random(20,80),random(20,-20),random(0,360),2,random(0,360))
	HELB E 1 A_CustomMissile("BigExplosion",0,0,random(80,100),2,random(80,100))
    TNT1 AAAA 0 A_SpawnItemEx("GibbedGenerator",Random(10,-10),Random(10,-10),Random(20,60),0,0,0,0,128,0)	
	TNT1 AAAAAA 0 A_CustomMissile("BigRedBloodCloud", random(10,80), 0, random(0,360), 2, random(0,360))
    TNT1 E 0 A_CustomMissile("HellsBatteryArm1",96,16,-90)
    TNT1 E 0 A_CustomMissile("HellsBatteryArm2",64,-32,90)
	TNT1 A 0 A_SpawnItemEx("INFDamagedHellsBattery",0,0,16,0,0,0,0,32)
    TNT1 A 0
    Stop
	}
}

ACTOR INFDamagedHellsBattery : DamagedHellsBattery
{
DropItem "GreaterDemonicEnergy", 256 200
DropItem "BossLifeEssence", 256
DropItem "BossArmorBonusMax", 256
DropItem "GreaterPlasmaEnergy", 186 300
DropItem "HellfireUltrasphere", 160
DropItem "DemonicEnergy" 256
DropItem "BFG10K " 150
DropItem "Grenade Launcher" 184
DropItem "Railgun " 200 1
DropItem "Rocket Launcher" 256
DropItem "Legendary Plasmatic Cannon" 120
DropItem "Demon Tech Railgun", 200
DropItem "SphereOfPower" 64
DropItem "HomingRocketLauncher" 96
DropItem "EFG9000", 32
Tag "\c[d9]Hell's Battery\c-"
}

ACTOR INFBossTimeImp : BossTimeImp Replaces BossTimeImp
{
DropItem "BossLifeEssence" 256
DropItem "BossArmorBonusMax" 256
DropItem "LegendaryRune" 15 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "BigDustMana" 128 100
DropItem "DustMana" 256 30
DropItem "LegTimeFreezeSphere" 256 1
Tag "\c[x5]Time\c- \c[y9]Imp\c-"
}

ACTOR INFAugmentedBabySentient : AugmentedBabySentient Replaces AugmentedBabySentient
{
DropItem "BossLifeEssence" 128 25
DropItem "BossArmorBonusMax" 128 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "Explosive Minigun" 96
Tag "\c[m6]Augmented Baby Sentient\c-"
}

ACTOR INFCrownedOne : NewCFCrownedOne Replaces NewCFCrownedOne
{
DropItem "BFG10K " 128
DropItem "GreaterDemonicEnergy" 256 200
DropItem "Demon Tech BFG10K" 64
DropItem "NemesisHealthBonusMax" 250
DropItem "NemesisArmorBonusMax" 250
DropItem "NemesisHealthBonusMax" 200
DropItem "NemesisArmorBonusMax" 200
DropItem "NemesisHealthBonusMax" 100
DropItem "NemesisArmorBonusMax" 100
DropItem "HellstormBFG" 50
Tag "\c[e8]Crowned One\c-"
}

ACTOR INFBabyDDemolisher : BabyDarkDemolisher Replaces BabyDDemolisher
{
DropItem "Demon Tech Rifle" 256 1
DropItem "LifeEssence" 140
DropItem "ArmorBonusMax" 140
DropItem "GreaterDemonicEnergy" 128 200
Tag "\cqBaby Dark Demolisher\c-"
}

ACTOR INFDarkDemolisher : NewDarkDemolisher Replaces NexusDarkDemolisher
{
DropItem "BossLifeEssence" 162 25
DropItem "BossArmorBonusMax" 162 1
DropItem "GreaterPlasmaEnergy" 186 300
DropItem "Demon Tech Rifle" 256 1
DropItem "GreaterDemonicEnergy" 128 200
Tag "\cqDark Demolisher\c-"
States
{
Missile:
    TNT1 A 0 A_Jump(128,"BFG9K","BFG10K","BFG2704","Railgun","DTechRifle","OverseerPlasma")
Normal:
	TNT1 A 0 A_JumpIfCloser(2000,1)
	Goto BFG9K
    TNT1 A 0 A_PlaySound("monsters/darkmasterwind")
    DEM2 A 10 A_FaceTarget
	TNT1 A 0 A_SpawnItemEx("ShellCasing",10,12,36,Random(2,6),0,Random(1,3),Random(80,90),128)
	TNT1 A 0 A_PlaySound("weapons/12gaugefire")
	TNT1 A 0 A_CustomMissile("GreenMonsterTracer",Random(24,34),0,Random(10,-10),0)
	DEM2 G 3 Bright A_SPosAttackUseAtkSound
    TNT1 A 0 A_SpawnItemEx("ShellCasing",10,-12,36,Random(2,6),0,Random(1,3),Random(-80,-90),128)
	TNT1 A 0 A_PlaySound("weapons/12gaugefire")
	TNT1 A 0 A_CustomMissile("GreenMonsterTracer",Random(24,34),0,Random(10,-10),0)
	DEM2 H 4 Bright A_SPosAttackUseAtkSound
	TNT1 A 0 A_PlaySound("monsters/darkmasterwind2")		
	TNT1 A 0 A_Jump(3,"Pause","BFG9K","BFG10K","Railgun")
    TNT1 A 0 A_SpidRefire
    Goto Normal+3
  OverseerPlasma:
	TNT1 A 0 A_JumpIfCloser(2000,1)
	Goto BFG9K
	DEM2 A 6 A_FaceTarget
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("OverseerPlasma",20,-16,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	DEM2 G 3 Bright A_CustomMissile("OverseerPlasma",20,16,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	TNT1 A 0 A_FaceTarget
	TNT1 A 0 A_CustomMissile("OverseerPlasma",20,-16,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	DEM2 H 3 Bright A_CustomMissile("OverseerPlasma",20,16,frandom(-10,10),CMF_OFFSETPITCH,frandom(-1,1))
	TNT1 A 0 A_SpidRefire
	Goto OverseerPlasma+2
  Pain:
    TNT1 A 0 A_Jump(128,"PainMissile")
	DEM2 I 6 A_Pain
    Goto See
  PainMissile:
	DEM2 I 6 A_Pain
    Goto Missile
	}
}

ACTOR INFDarkCardinal : NexusCardinal Replaces NexusCardinal
{
Tag "\c[m6]Cardinal\c-"
var int user_missile;
  States
  {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NexusHardBossSpawns") == 2, "Remove")
 Idle:
	TNT1 A 0 A_JumpIf(user_script == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("CardinalFireRemaked",0)
	TNT1 A 0 A_SetUserVar("user_script",1)
	TNT1 A 0 A_PlaySound("monster/ambientfire3",7,1,1)
    CARD AB 2 A_Look 
	Loop
  Remove:
    TNT1 A 1
	TNT1 A 0 A_SpawnItemEx("LegendaryCyberSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	TNT1 A 0
	Stop
   Missile:
    TNT1 A 0 A_Jump(128,"Seekers","FireRocket","HeavyRocket","RPGRocket","Railgun","BFG10K","DTBFG10K")
	TNT1 A 0 A_Jump(8,"FusionNuke") // Y e s
   Goto Normal
  FusionNuke:
	TNT1 A 0 A_ChangeFlag(NOPAIN,1)
    TNT1 A 0 Bright A_SpawnItem("CardinalFireSpawner",0,0,0,0)
	TNT1 A 0 A_PlaySound("weapons/nuclearmissilecharge",0,10.0)
	CARD M 3 Bright
	TNT1 A 0 Radius_Quake(50,150,0,24,0)
	TNT1 A 0 A_SetUserVar("user_missile",0)
  NukeChargeLoop:
	TNT1 A 0 A_JumpIf(user_missile >= 28,"NukeGO")
	TNT1 A 0 A_SetUserVar("user_missile",user_missile+1)
	CARD MM 2 Bright A_FaceTarget
	TNT1 A 0 Bright A_SpawnItem("CardinalRageFlameSpawner",0,0,0,0)
	TNT1 A 0 Bright A_SpawnItem("CardinalFireSpawner",0,0,0,0)
	Loop
  NukeGO:
	TNT1 A 0 A_ChangeFlag(NOPAIN,0)
	TNT1 A 0 A_PlaySoundEx("Cardihilator/NukeFire",1,0,2)
	CARD D 6 Bright A_CustomMissile("FusionNuke",40,-26,0)
	CARD DCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 2 Bright A_SpawnItem("CardinalFireSpawner",0,0,0,0)
	Goto See
  Pain:
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	CARD E 3 A_Pain
	CARD E 3
	TNT1 A 0 A_Jump(64,"PainRage")
	TNT1 A 0 A_Jump(128,"Missile")
	Goto See
	}
}

ACTOR INFHellFireBaron : NewHellFireBaron Replaces HellFireBaron
{
DropItem "BossLifeEssence" 128 25
DropItem "BossArmorBonusMax" 128 1
DropItem "GreaterDemonicEnergy" 128 200
DropItem "GreaterFireEnergy" 128 200
Tag "\cgHellfire Baron\c-"
}

ACTOR INFCerebralCardinal : NexusCerebralCardinal Replaces NewCerebralCardinal { Tag "\c[m6]Cerebral Cardinal\c-" }