ACTOR NemesisBloodMage : LegendaryNecromancer 30117 
{
//Creator: Vast Unliking
//Origin: Nexus Infinity
//Sprite: NEBM
//Title: "Nemesis Blood Mage"
Health 2800 
PainChance 20
BloodColor "Black"
Speed 20
Scale 0.90
DamageFactor 0.4
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "Explosion", 0.2
DamageFactor "PlayerDTRG", 0.4
DamageFactor "DTRailgun", 0.4
DamageFactor "PDTPuff", 0.4
DamageFactor "RailG", 0.3
DamageFactor "PlayerPyro", 0.1
Radius 20 
Height 56 
Mass 320 
MONSTER
+FLOORCLIP
+DONTHURTSPECIES
+FLOAT
+BOSS
+NOGRAVITY
Obituary "%o's blood was stolen by the Nemesis Blood Mage."
SeeSound "nemesisbloodmage/sight" 
PainSound "nemesisbloodmage/pain" 
DeathSound "" 
ActiveSound "nemesisbloodmage/active"
DropItem "OccultSpellbook" 256
DropItem "LegAmmoSphere", 128, 1
DropItem "NemesisRuneSpawnerTier2", 128, 1
DropItem "NemesisSphere", 100, 1
DropItem "DemonicChalice", 40, 1
DropItem "Nemesis Rifle", 200
DropItem "NemesisPowerSphere" 105 1
DropItem "LegTimeFreezeSphere" 100 1
DropItem "NemesisSoulSphere" 120 1
DropItem "NemesisPowerShard" 85 1
DropItem "BigDustMana" 256 100
DropItem "BigDustMana" 128 100
DropItem "NemesisDemonicEnergy" 128 100
DropItem "NemesisDemonicEnergy" 128 100
Tag "\c[g3]Nemesis Blood Mage\c-"
var int user_music;
var int user_missile;
var int user_hollowsummons;
States 
   { 
   Spawn:
	   NEBM A 10 Bright A_Look
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   Loop 
   See: 
       TNT1 A 0 A_JumpIf(user_music == 1,3)
	   TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2063)
	   TNT1 A 0 A_SetUserVar("user_music",1)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
       NEBM AAA 2 Bright A_FastChase
	   TNT1 A 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	   NEBM BBB 2 Bright A_FastChase
	   TNT1 A 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
       NEBM A 0 A_Jump(80,1)
	   NEBM A 0 A_Jump(30,"Teleport")
	   NEBM A 0 A_Jump(96,"Rush")
	   NEBM A 0 A_Jump(60,"Dodge")
       Loop
   Remove:
	   TNT1 A 1
	   TNT1 A 0 A_SpawnItemEx("CacoSpawnerLiter",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	   TNT1 A 0 A_ChangeFlag("COUNTKILL", FALSE)
	   TNT1 A 0
	   Stop
   Taunt:
	   TNT1 AAA 0 A_StopSound(CHAN_VOICE)
	   NEBM A 1 A_PlaySound("nemesisbloodmage/taunt",CHAN_VOICE,1.0,0,ATTN_NONE)
	   TNT1 A 0 A_TakeInventory("MarineKilled",1)
	   Goto See
   Teleport:
	   NEBM A 1 Bright A_UnSetShootable
	   NEBM AAAA 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	   NEBM AAAAAAAAAA 1  A_FadeOut(0.1,0)
	   NEBM A 2 
	   NEBM AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   NEBM AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Wander
	   NEBM A 1 A_PlayWeaponSound("boss/teleport")
	   NEBM AAAA 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	   NEBM AAAAAAAAAA 1 A_FadeIn(0.1)
	   NEBM A 1 Bright A_SetShootable
   Dodge:
	   NEBM A 0
	   NEBM A 0 ThrustThing(angle*256/360+random(0,360),30,0,0)
	   NEBM A 5 Bright 
	   Goto See
   Rush:
	   TNT1 A 0 A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   NEBM A 1 Bright A_Playsound("monster/blur")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM A 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
	   NEBM B 1 Bright A_Chase
	   TNT1 A 0 A_SpawnItemEx("NemNecromancerFX")
       Goto See
   Missile:
       TNT1 A 0 A_Jump(100,"NemesisShots", "NemesisRainshots")
       TNT1 A 0 A_Jump(70,"NemesisSpreadShots","NemesisLightningBall","VexedLightning", "NecroBFGBalls")
       TNT1 A 0 A_Jump(10,"Resurrection")
       Goto See
   NemesisSpreadShots:
	   NEBM A 1 Bright A_FaceTarget
       TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       TNT1 A 0 A_PlaySound("bloodm/disat1",7)
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/attack",CHAN_VOICE,1.0,0,ATTN_NONE)
       NEBM CCCCCCCCCC 2 Bright A_FaceTarget
       NEBM C 2 Bright A_PlaySound("lrball3/charge",CHAN_WEAPON)
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)	
       NEBM C 0 A_UnSetInvulnerable  
       NEBM C 10 Bright A_FaceTarget
       TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       NEBM C 10 A_FaceTarget
       NEBM CCCC 5 Bright A_FaceTarget
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-8,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,8,0)
       NEBM D 8 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,0,0)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
       NEBM CC 5 Bright A_FaceTarget
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-8,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,8,0)
       NEBM D 8 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,0,0)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   NEBM CC 5 Bright A_FaceTarget
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,4,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,-8,0)
       NEBM D 0 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,8,0)
       NEBM D 8 Bright A_CustomMissile("NemesisCyberRailLaser",36,0,0,0)
	   Goto See
   NemesisShots:
       NEBM C 8 Bright A_FaceTarget
	   NEBM C 5 Bright A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget	   
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget	   
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget	   
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_FaceTarget
	   NEBM D 6 Bright A_CustomMissile("NemesisNecroShot",36,0,0,0)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   TNT1 A 0 A_FaceTarget
	   TNT1 A 0 A_Jump(40,"NemesisShots","Missile")
	   Goto See
   NemesisRainshots:
       NEBM C 8 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	   NEBM C 5 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
       NEBM D 0 A_CustomMissile("DBishRain",36,0,-4,0)
       NEBM D 0 A_CustomMissile("DBishRain",36,0,4,0)
       NEBM D 0 A_CustomMissile("DBishRain",36,0,-8,0)
       NEBM D 0 A_CustomMissile("DBishRain",36,0,8,0)
       NEBM D 8 Bright A_CustomMissile("DBishRain",36,0,0,0)
	   TNT1 A 0 A_Jump(40,"NemesisRainShots","Missile")
   VexedLightning:
       TNT1 A 0 A_PlaySound("nemesisbloodmage/attack",CHAN_VOICE,1.0,0,ATTN_NONE)
	   TNT1 A 0 A_ChangeFlag("NOPAIN",1)
	   NEBM C 10 Bright A_PlaySound("exile/voidstart")
	   NEBM D 8 Bright A_VileTarget("NemeNecromancerVileFire")
	   NEBM DDDDDDDDDDDDDD 8 Bright A_FaceTarget
	   TNT1 A 0 A_PlaySound("exile/voidend")
	   NEBM D 8 Bright
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   NEBM C 20 Bright
	   TNT1 A 0 A_ChangeFlag("NOPAIN",0)
	   Goto See
   NemesisLightningBall:
	   TNT1 A 0 A_PlaySound("bloodm/disat1",7)
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/attack",CHAN_VOICE,1.0,0,ATTN_NONE)
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   TNT1 A 0 A_SpawnItemEx("NDefilerLightingFX",41,0,43)
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
	   NEBM C 4 Bright A_FaceTarget
	   TNT1 A 0 A_SpawnItemEx("TrueNemesisHellionSmokeSpawner")
       NEBM D 30 Bright A_CustomMissile("DefilerLightningProj",41)
	   Goto See
   NecroBFGBalls:
	   NEBM A 1 Bright A_FaceTarget
       TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       TNT1 A 0 A_SetInvulnerable
       TNT1 A 0 A_PlaySound("bloodm/disat2",7)
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/attack",CHAN_VOICE,1.0,0,ATTN_NONE)
       NEBM CCCCCCCCCC 2 Bright A_FaceTarget
       NEBM C 2 Bright A_PlaySound("lrball3/charge",CHAN_WEAPON)
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)  
       TNT1 A 0 A_FaceTarget
       NEBM C 2 Bright A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)	
       NEBM C 0 A_UnSetInvulnerable  
       NEBM C 10 Bright A_FaceTarget
       TNT1 A 0 A_ChangeFlag("NOPAIN",0)
       NEBM C 10 A_FaceTarget
       NEBM CCCC 5 Bright A_FaceTarget
       NEBM D 8 Bright A_CustomMissile("MiniNemesisBFGBall",36,0,0,0)
       NEBM CC 5 Bright A_FaceTarget
       NEBM D 8 Bright A_CustomMissile("MiniNemesisBFGBall",36,0,0,0)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   NEBM CC 5 Bright A_FaceTarget
       NEBM D 8 Bright A_CustomMissile("MiniNemesisBFGBall",36,0,0,0)
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   TNT1 A 0 A_Jump(40,"NemesisSpreadShots","NecroBFGBalls")
	   Goto See
   Resurrection:
       TNT1 A 0 A_ChangeFlag("NOPAIN",1)
       TNT1 A 0 A_PlaySound("nemesisbloodmage/resvoice",CHAN_VOICE,1.0,0,ATTN_NONE)
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/resbuildup",6,1.0,0,ATTN_NONE)
   	   NEBM C 80 Bright
       TNT1 A 0 A_SetInvulnerable
	   TNT1 A 0 A_Quake(7,540,0,3000,"")
	   TNT1 A 0 A_CustomMissile("NemesisPentaLine1",0,0,-72,2)
       TNT1 A 0 A_CustomMissile("NemesisPentaLine1",0,0,-144,2)
       TNT1 A 0 A_CustomMissile("NemesisPentaLine1",0,0,-216,2)
       TNT1 A 0 A_CustomMissile("NemesisPentaLine1",0,0,-288,2)
       TNT1 A 0 A_CustomMissile("NemesisPentaLine1",0,0,0,2)
	   TNT1 A 0 A_SpawnItemEx("NemesisNecromancerResEffectSpawner")
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/resfinish",7,1.0,0,ATTN_NONE)
	   NEBM C 120 Bright
	   TNT1 A 0 A_JumpIfInventory("MarineKilled",1,"Taunt")
	   TNT1 A 0 A_CustomMissile("HeresiarchDeathResurrect",0,0,0,CMF_AIMDIRECTION|CMF_TRACKOWNER,90)
	   Goto Teleport
   Pain: 
	   TNT1 A 0 A_Jump(35,"Teleport")
	   NEBM C 4 Bright A_Pain 
	   TNT1 A 0 A_Jump(128,"Missile")
	   Goto See 
   Death:
		TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("NoVexedBoys") == 1,4)
		TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem",1,"VexedSpawn")
		TNT1 A 0 A_JumpIfInTargetInventory("TrueLegendaryRuneItem2",1,"VexedSpawn")
		TNT1 A 0 A_JumpIf(user_deathtimer <= 10,"VexedSpawn")
	   NEBM G 2 Bright
	   NEBM G 8 Bright A_PlaySound("nemesisbloodmage/death",CHAN_VOICE,1.0,0,ATTN_NONE) 
	   NEBM GGGGGGGGGGGGGGGGGGGGGG 6 Bright A_SpawnItemEx("WhiteNemesisKaboom",random(-32,32),random(-40,40),random(16,48),random(-4,4),random(-4,4),random(0,4),0,SXF_TRANSFERPOINTERS)
	   TNT1 A 0 A_PlaySound("nemesisbloodmage/death2",7,1,0,ATTN_NONE)
	   TNT1 A 0 A_SpawnItemEx("BloodMageLightning")
	   TNT1 A 0 A_Explode(100,200,1)
	   TNT1 A 0 Radius_Quake(5,15,0,20,0)
	   TNT1 A 0 A_SpawnItemEx("NemesisGibbedGenerator") 
	   TNT1 A 0 A_SpawnItemEx("DefilerLightningExplode",random(0,20),0,random(20,50),random(2,6),0,random(-4,4),random(0,360))
	   TNT1 A 0 A_SpawnItemEx("DefilerLightningExplode",random(0,20),0,random(20,50),random(2,6),0,random(-4,4),random(0,360))
	   TNT1 A 0 A_SpawnItemEx("DefilerLightningExplode",random(0,20),0,random(20,50),random(2,6),0,random(-4,4),random(0,360))
	   NEBM H 5 Bright
	   NEBM I 5 Bright
	   NEBM J 5 Bright A_NoBlocking 
	   NEBM KLM 5 Bright
	   NEBM NO 5 Bright
	   NEBM O 60 Bright
	   NEBM OOOOOOOOOOO 5 A_SpawnItemEx("NemesisHollow",random(35,140),0,0,0,0,0,random(0,360))
	   TNT1 A 0 A_Jump(100,"MoreStuff")
	   NEBM O -1
	   Stop
		VexedSpawn:
		NEBM G 3 Bright A_Pain
		NEBM G 0 A_PlaySoundEx("brain/spit",7,0,2)
		NEBM GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
		NEBM GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
		NEBM GGGGGGGGGGGGGGGGG 2 Bright A_GiveInventory("NemesisSoulEvent",1)
		TNT1 A 0 A_SpawnItemEx("NemesisLightning")
		NEBM GGGGGGGGGGGG 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
		TNT1 A 0 A_SpawnItemEx("VexedNemesisBloodMage",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TELEFRAG)
		TNT1 A 1
   MoreStuff:
       NEBM O 100
	   TNT1 A 0 A_SpawnItem("HellionSmokeAttack")
	   NEBM OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 1 A_SpawnItem("NemesisCYNItemRandomizer")
	   NEBM OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 1 A_SpawnItem("NemesisCYNItemRandomizer")
       NEBM O 1 A_SpawnItem("NemesisHKSuperItemRandomizer")
	   NEBM O -1
	   Stop
   } 
}

ACTOR NemNecromancerFX : LegNecromancerFX
{
Scale 0.90
States
{
 Spawn:
   TNT1 A 0
   TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
   TNT1 A 3
   NEBM A 5 A_FadeOut(0.10)
   Goto Spawn+3
   }
}

Actor BloodMageLightning : NemesisLightning2
{
Damagetype "Legendary"
States
{
  Spawn:
	TNT1 A 0   
	TNT1 A 0 Radius_Quake(175,8,512,1024,0)
	TNT1 AAA 0 A_CustomMissile("NemesisLightningBolt",30,0,random(0,360),2)
	TNT1 A 0 A_Explode(150,300)
	TNT1 AAA 0 A_CustomMissile("SmokeFX3",0,0,random(0,360),2,random(0,360))
	TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("WhiteLightningSpark",0,0,0,random(1,10),0,random(1,10),random(0,359),129)
	DV10 ABCBCAB 3 Bright
	Stop
    }     
}


ACTOR NemesisNecroShot : LegNecromancerShot
{
Speed 55
Damage 10
States 
{
 Spawn:
 	NMF0 A 1 Bright A_Weave(3, 3, 2.0, 1.0)
	TNT1 A 0 A_SpawnItemEx("NemesisNecroShotFX")
	TNT1 A 0 A_SeekerMissile(1,3)
	NMF0 A 1 Bright A_Weave(3, 3, 2.0, 1.0)
	TNT1 A 0 A_SpawnItemEx("NemesisNecroShotFX")
	TNT1 A 0 A_SeekerMissile(1,3)
	NMF0 B 1 Bright A_Weave(3, 3, 2.0, 1.0)
	TNT1 A 0 A_SpawnItemEx("NemesisNecroShotFX")
	TNT1 A 0 A_SeekerMissile(1,3)
	NMF0 B 1 Bright A_Weave(3, 3, 2.0, 1.0)
	TNT1 A 0 A_SpawnItemEx("NemesisNecroShotFX")
	TNT1 A 0 A_SeekerMissile(1,3)
	Loop
   Death:
	TNT1 A 0 A_SpawnItemEx("WhiteParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	TNT1 AAA 0 A_CustomMissile("WhiteKaboom2", 0, 0, random(0,360), 2, random(0,360))
	TNT1 AAA 0 A_CustomMissile("LegendarySmokeFX4", 0, 0, random(0,360), 2, random(0,360))
	NMF0 CDEFGH 3 Bright
	Stop
	}
}

ACTOR NemesisNecroShotFX : LegNecromancerShotFX
{
  States
  {
     Spawn:
      TNT1 A 0
      TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(304) == 1, "Toaster")
      TNT1 A 2
      NMF0 AABB 1 Bright A_FadeOut(0.08)
      Goto Spawn+3
	  }
}

ACTOR NemesisNecromancerResEffectSpawner : HeresiarchDeathKaboomEffectSpawner
{
  States
  {
  Spawn:
	TNT1 A 0 NoDelay A_SetUserVar("user_loop",0)
	TNT1 A 0 A_JumpIf(user_loop > 130,"Death")
	TNT1 A 0 A_SetUserVar("user_loop",user_loop+1)
	TNT1 A 0 A_SpawnItemEx("NEPSW2",frandom(3,-3),frandom(3,-3),frandom(3,-3))
    TNT1 AAAA 0 A_SpawnItemEx("HeresiarchDeathFlame",random(-20,20),random(-20,20),random(0,100),frandom(-10,10),frandom(-10,10),random(5,45),random(0,360))
    TNT1 AA 0 A_SpawnItemEx("WhiteNemesisKaboomNoSound",random(-20,20),random(-20,20),random(0,100),frandom(-10,10),frandom(-10,10),random(5,30),random(0,360))
    TNT1 A 1 A_SpawnItemEx("NecromancerResLaser",0,0,0,frandom(-2,2),frandom(-2,2),40)
    Goto Spawn+1
  Death:
	TNT1 A 1
	Stop
  }
}

ACTOR NecromancerResLaser
{
  +FORCEXYBILLBOARD
  +NOINTERACTION
  +CLIENTSIDEONLY
  +NOTIMEFREEZE
  Alpha 0.9
  Scale 1.0
  States
  {
  Spawn:
	TNT1 A 0
	TNT1 A 0 A_Jump(4,"SpawnParticle")
    NMSM A 1 Bright A_FadeOut(0.05)
    Loop
  SpawnParticle:
	TNT1 A 0 A_SpawnItemEx("HeresiarchDeathSpark",frandom(3,-3),frandom(3,-3),frandom(3,-3))
	Goto Spawn
  }
}

ACTOR NemeNecromancerVileFire : LegNecromancerVileFire
{
  States
  {
     Spawn:
      TNT1 A 0
      NEVI A 1 Bright A_PlaySoundEx("BFlan/Vile","Voice",1)
      NEVI ABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ 1 Bright A_Fire
      NEV0 AABBCCDD 1 Bright A_Fire
      NEVI ABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ 1 Bright A_Fire
      NEV0 AABBCCDD 1 Bright A_Fire
	  NEVI A 1 Bright A_StopSoundEx("Voice")
	  NEVI A 1 Bright A_PlaySoundEx("exile/voidend","Voice")
	  TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	  TNT1 A 0 A_Explode(100,200,1)
	  TNT1 A 0 Radius_Quake(5,15,0,20,0)
	  TNT1 A 0 A_SpawnItem("MiniNemesisDeathBall")
      TNT1 AAAAAAAAAAA 0 A_SpawnItemEx ("Edgy2huBossDeathFlame", 0, 0, 0, random(-3,3), random(-3,3), random(-3,3), random (0, 360))
	  TNT1 AAAAAAAAAAA 0 A_CustomMissile("Edgy2huBossDeathFlame3", random(5, 55), 0, random(0,360), CMF_AIMDIRECTION, frandom(-40, 70))
	  NEVI BBCCDDEE 1 Bright
	  TNT1 A 20
	  TNT1 A 0 A_StopSoundEx("Voice")
    Stop
	}
}

ACTOR NemesisHollow : EnragedLegendaryHollow
{
Health 600
SeeSound "ChaosSoul/Sight"
ActiveSound "ChaosSoul/Active"
PainSound "ChaosSoul/Pain"
DeathSound "ChaosSoul/Death"
Obituary "%o was overwhealmed by a Nemesis Hollow."
DamageFactor "PlayerNemesisPlasma", 0.0
DamageFactor "Explosion", 0.2
DamageFactor "PlayerDTRG", 0.4
DamageFactor "DTRailgun", 0.4
DamageFactor "PDTPuff", 0.4
DamageFactor "RailG", 0.3
DamageFactor "PlayerPyro", 0.1
Tag "\c[v9]Nemesis Hollow\c-"
States
{
Spawn:
	   EHOL WVUTSRQPO 3
  Idle:
       TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   EHOL AA 10 A_Look
	   Loop
  See:
       TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   EHOL AABB 3 A_Chase
       TNT1 A 0 A_SpawnItemEx("HumanishStep2",0,0,2,0,0,-20)
       TNT1 A 0 A_SpawnItemEx("NemesisHellionSmokeSpawner")
	   EHOL CCDD 3 A_Chase
       TNT1 A 0 A_SpawnItemEx("HumanishStep2",0,0,2,0,0,-20)
	   Loop
  Melee:
  Missile:
	   EHOL EFG 2 A_FaceTarget
	   EHOL HIJK 3 Bright A_FaceTarget
	   EHOL L 6 Bright A_CustomMissile("NemesisImpBall")
	   EHOL M 8
	   Goto See
  Pain:
	   EHOL N 3
	   EHOL N 3 A_Pain
	   Goto See
  XDeath:
  Death:
	   EHOL O 7 A_Scream
	   EHOL PQR 7 
	   EHOL S 6 A_SpawnItemEx("EnragedHollowGhost",0,0,32)
	   EHOL T 5 A_Fall
	   EHOL UV 5
	   EHOL W -1
	Stop
  Raise:
	Stop
    }
}