Actor "Nemesis BFG " : "Nemesis BFG" Replaces "Nemesis BFG"
{
  Weapon.PreferredSkin "LegendaryBFG-Marine"
  Weapon.AmmoGive 150
  Weapon.AmmoType "NLDemonAmmo"
  Weapon.AmmoType2 "NLDemonAmmo"
  Weapon.AmmoUse 200
  Weapon.AmmoUse2 50
  weapon.KickBack 90
  Weapon.SlotNumber 8
  Weapon.UpSound "NemesisBFG/Pickup"
  Tag "Nemesis BFG"
  States
	{
  Select:
    TNT1 A 0
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
  SelectLoop:
	TNT1 A 0 A_ZoomFactor(1)
	TNT1 A 0 A_Raise
	NMB8 Q 1 A_Raise
	Loop
  Deselect:
	TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
	TNT1 A 0 A_TakeInventory("MineAction",1)
	TNT1 A 0 A_TakeInventory("RailgunAction",1)
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	TNT1 A 0 A_TakeInventory("NoSpreadIndicator",1)
	TNT1 A 0 A_PlayWeaponSound("weapons/weapondown")
  Deselectloop:
	TNT1 A 0 A_StopSound(5)
	TNT1 A 0 A_ZoomFactor(1)
	TNT1 A 0 A_Lower
	NMB8 Q 1 A_Lower
	Loop
  Ready:
	TNT1 A 0 A_ZoomFactor(1)
	TNT1 A 0 A_PlaySound("NemesisBFG/Loop",5,1.0,1)
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 AAAA 1 A_WeaponReady
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 BBBB 1 A_WeaponReady
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 CCCC 1 A_WeaponReady
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 DDDD 1 A_WeaponReady
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 CCCC 1 A_WeaponReady
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NMB0 BBBB 1 A_WeaponReady
	Loop
  Fire:
	TNT1 A 0 A_PlaySound("truelegbfg/trigger",6)
	NMB9 A 1
	TNT1 A 0 A_PlaySound("NemesisBFG/Charge",1)
	NMB9 AABBCCDD 1
	TNT1 A 0 A_GiveInventory("GuruCharge",25)
  Gurucharger:
	TNT1 A 0 A_TakeInventory("GuruCharge",1)
	//TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	NMB9 ABCD 1 Bright A_Quake(4,2,0,2,"none")
	TNT1 A 0 A_JumpIfInventory("GuruCharge",1,"Gurucharger")
	NMB8 AABBCCDD 1 Bright A_Quake(4,2,0,2,"none")
	TNT1 A 0 A_TakeInventory("NexusSpread",1)
	TNT1 A 0 A_PlaySound("NemesisBFG/Fire",1)
	TNT1 A 0 A_FireCustomMissile("PlayerNemesisGuruBall",0,1,12,0)
	TNT1 A 0 A_Recoil(45)
	TNT1 A 0 A_GunFlash
	TNT1 A 0 A_SetBlend("White",0.5,60)
	TNT1 A 0 A_SetBlend("White",0.25,60)
	NMB8 E 1 Bright A_ZoomFactor(0.9)
	NMB8 E 1 Bright A_ZoomFactor(0.91)
	NMB8 F 1 Bright A_ZoomFactor(0.92)
	NMB8 F 1 Bright A_ZoomFactor(0.93)
	NMB8 G 1 Bright A_ZoomFactor(0.94)
	NMB8 G 1 Bright A_ZoomFactor(0.95)
	NMB8 H 1 Bright A_ZoomFactor(0.96)
	NMB8 H 1 Bright A_ZoomFactor(0.97)
	NMB8 I 1 Bright A_ZoomFactor(0.98)
	NMB8 I 1 Bright A_ZoomFactor(0.99)
	TNT1 A 0 A_GiveInventory("NexusSpread",1)
	NMB8 KK 1 A_ZoomFactor(1)
	NMB8 LLMMNNOOPPQQ 1
	Goto Ready
  Altfire:
	TNT1 A 0 A_PlaySound("star/fire",1)
	TNT1 A 0 A_TakeInventory("NexusSpread",1)
	TNT1 A 0 A_FireCustomMissile("PlayerMiniNemesisBFGBall",0,1,12,0)
	TNT1 A 0 A_Recoil(25)
	TNT1 A 0 A_GunFlash
	TNT1 A 0 A_SetBlend("White",0.25,35)
	TNT1 A 0 A_SetBlend("White",0.125,35)
	NMB8 EFGHIJ 1 Bright
	TNT1 A 0 A_GiveInventory("NexusSpread",1)
	NMB8 LLMMNNOOPPQQ 1
	Goto Ready
	}
}

Actor "Blackhole Generator " : "Blackhole Generator" Replaces "Blackhole Generator"
{
Weapon.SelectionOrder 2900
Weapon.AmmoUse1 150
Weapon.AmmoGive1 200
Weapon.AmmoType1 "DemonAmmo"
Tag "Blackhole Generator"
States
{
Select:
    TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	DMAT A 1 A_Raise
	Goto Select+1
Deselect:
    TNT1 A 0
	TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
	TNT1 A 0 A_TakeInventory("MineAction",1)
	TNT1 A 0 A_TakeInventory("RailgunAction",1)
	TNT1 A 0 A_TakeInventory("NoSpreadIndicator",1)
	DMAT A 1 A_Lower
	Goto Deselect+2
Ready:
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	DMAT A 4 A_WeaponReady
	Loop
Fire:
	DMAT A 30 A_PlayWeaponSound("BH/Charge")
	TNT1 A 0 A_TakeInventory("NexusSpread",1)
	DMAT A 10 Bright
	TNT1 A 0 A_PlayWeaponSound("BH/Fire")
	TNT1 A 0 A_GunFlash
	DMAT B 4 Bright A_FireCustomMissile("PBlackHoleProjectile",0,1,0,0)
	DMAT CD 4 Bright
	TNT1 A 0 A_GiveInventory("NexusSpread",1)
	DMAT A 10
	Goto Ready
}
}

ACTOR "The Nemesis" : NewNemesis replaces NewNemesis
{
  Weapon.Selectionorder 2200
  Weapon.PreferredSkin "Nemesis-Marine"
  Weapon.AmmoType "NemesisClip"
  Weapon.Kickback 120
  Weapon.UpSound "NemesisUp"
  Tag "Nemesis"
  States
  {
  Ready:
	TNT1 A 0 A_PlaySound("NemesisReady",CHAN_BODY,0.5,1)
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	NEME A 4 A_WeaponReady
	Loop
  Deselect:
	TNT1 A 0
	TNT1 A 0 A_TakeInventory("HandGrenadeAction",1)
	TNT1 A 0 A_TakeInventory("MineAction",1)
	TNT1 A 0 A_TakeInventory("RailgunAction",1)
	TNT1 A 0 ACS_NamedExecuteAlways("StopWeaponMusic",0)
	TNT1 A 0 A_TakeInventory("NoSpreadIndicator",1)
	TNT1 A 0 A_PlaySound("weapons/weapondown",CHAN_WEAPON,1.0,0)
  DeselectLoop:
	TNT1 A 0 A_StopSound(CHAN_BODY)
	TNT1 A 0 A_StopSound(7)
	NEME A 1 A_Lower
	Loop
  Select:
	TNT1 A 0
	TNT1 A 0 ACS_NamedExecuteWithResult("CheckSpreadAbility",0)
	TNT1 A 0 A_StopSound(CHAN_BODY)
	Goto Select2
  Select1:
	TNT1 A 0 A_PlaySound("NemesisReady",CHAN_BODY,0.5,1)
  Select2:
	NEME A 1 A_Raise
	Loop
  Fire:
	TNT1 A 0 A_PlaySound("Nemesis/Laser",7)
	NEME BCD 1
	TNT1 A 0 A_PlaySound("Nemesis/LaserLoop",6,1.0,1)
  FireLoop:
	TNT1 A 0 A_Quake(2,4,0,6,0)
	TNT1 A 0 A_TakeInventory("NexusSpread",1)
	TNT1 A 0 A_GunFlash
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")-3 < 1,2)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetCurrentHealth",0,ACS_NamedExecuteWithResult("Hem_GetCurrentHealth")-3)
	NEME EFGH 1 Bright A_RailAttack(random(30,60),0,0,0,0,RGF_SILENT,2,"PlayerNemesisRailPuff",0,0,0,0,8,0,"NemesisRailEffect",-2)
	//NEME EFGH 1 Bright A_FireCustomMissile("NemesisBeam",0,0,0,-4)
	TNT1 A 0 A_ReFire("FireLoop")
	Goto FireDone
  FireDone:
	TNT1 A 0 A_StopSound(7)
	TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_GiveInventory("NexusSpread",1)
	NEME DCB 3
	Goto Ready
  AltFire:
	TNT1 A 0 A_JumpIfInventory("NemesisClip",300,1)
	Goto Ready
	NEME BBBCCCIIIJJJ 1
	TNT1 A 0 A_TakeInventory("NexusSpread",1)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("Hem_GetCurrentHealth") < 10,2)
	TNT1 A 0 ACS_NamedExecuteAlways("Hem_SetCurrentHealth",0,10)
	TNT1 A 0 A_SetBlend("Pink",1.0,10)
	TNT1 A 0 A_PlaySound("Nemesis/FireBall",1)
	TNT1 A 0 A_FireCustomMissile("NemesisAltBall")
	TNT1 A 0 A_TakeInventory("NemesisClip",300)
	TNT1 A 0 A_GunFlash
	NEME K 1 Bright A_Recoil(15)
	TNT1 A 0 A_GiveInventory("NexusSpread",1)
	TNT1 A 0 A_JumpIfInventory("legendaryC4Ammo",1,1)
	NEME KKLLMMNN 1 Bright
	NEME OOPPQQRRSSTT 1
	Goto Ready
	}
}