ACTOR NemesisTechBarrel : ttkDeadlyBarrel
{
 Scale 1.2
 -FORCERADIUSDMG
 DamageType "Legendary"
 DamageFactor "Legendary", 0.0
 DamageFactor "Legendary1", 0.0
 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 "T3rm", 0.0
 Obituary "%o was absorbed by the Nemesis Tech Barrel's black hole."
 Tag "\c[t6]Nemesis Tech Barrel\c-"
 States
 {
  Spawn:
	NTBB A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("GetCVar",52) == 1,"Remove")
  SpawnLoop:
	NTBB A 6 Bright A_SpawnItem("NemesisHellionSmokeSpawner",0,0,0,0)
	Loop
  Death:
	TNT1 A 0 A_StopSound(CHAN_VOICE)
	NTBB A 2 Bright A_SpawnItemEx("NemesisHellionSmokeSpawner",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)		
	TNT1 A 0 Bright A_PlaySoundEx("Black/Blast","Voice",0,2)
	TNT1 A 0 Bright A_SpawnItemEx("BlackHoleSpawn",0,0,0,0,0,0,0,SXF_TRANSFERPOINTERS|SXF_SETMASTER,0)
	TNT1 A 0 Bright A_SpawnItemEx("PBlackHoleSpawnDark",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION,0)
	TNT1 A 0 A_SpawnItem("NemesisDeathBall")
	TNT1 A 0 A_Jump(90,"LastChance")
	NTBB B -1
	Stop
  LastChance:
	TNT1 A 0 ACS_NamedExecuteWithResult("VexCheck",0,10)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 180
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("NemesisSoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	Stop
  VexedSpawn:
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 5 A_SpawnItem("TrueNemesisHellionSmokeSpawner",0,0,0,0)
	NTBB B 180
	TNT1 A 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB BBBBBBBBBBBBBBBBB 2 Bright A_GiveInventory("NemesisSoulEvent",1)
	NTBB B 3 Bright
	TNT1 A 0 A_SpawnItemEx("NemesisLightning")
	NTBB BBBBBBBBBBBB 2 Bright A_SpawnItemEx("VexedNemesisFlameSpawner")
	TNT1 A 0 A_SpawnItemEx("VexedNemesisTechBarrel",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	Stop
 }
}