ACTOR TrueLegendaryDevastatorZombie : LegendaryDevastatorZombie
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: TDEZ
//Title: "True Legendary Devastator Zombie"
health 2500
speed 15
Species "UltimateLegendary" //"Cybers"
DropItem "HandGrenadeAmmo" 235 2
DropItem "MineAmmo" 235 2
DropItem "Backpack" 198 1
DropItem "LDemonAmmo" 250
DropItem "LDemonAmmoBox" 200
DropItem "LegAmmoSphere" 108 1
DropItem "TrueLegendaryArmor" 105 1
DropItem "TrueLegUpgradeSpawnerStrong", 50 1
DropItem "LegendaryRune" 45 1
DropItem "LegendaryPowerShard" 50 1 
DropItem "LegendaryorTrueSyringe" 100 1
DamageFactor 0.60
DamageFactor "PDTBFG", 0.20
DamageFactor "PDTBFGTracer", 0.20
DamageFactor "PlayerDevBall", 0.120
DamageFactor "PlayerDevBall2", 0.120
DamageFactor "PlayerDTBFGRailgunSlug", 0.0
DamageFactor "TrueDTBFGRailgunSlug", 0.0
DamageFactor "PlayerDevTracer", 0.120
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryGuruPlayer", 0.0
DamageFactor "LACGrenade", 0.0
DamageFactor "LegendaryZombie", 0.0
DamageFactor "GeneralTracer", 0.0
DamageFactor "DBFG10K2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "DBFG2", 0.65
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "PlayerDTRG", 0.5
DamageFactor "Cyber10K", 0.0
DamageFactor "UltimateLegendary", 0.0
DamageFactor "TrueLegendaryDamage", 0.0
DamageFactor "TrueLegendaryPlayer", 0.0
obituary "%o was pulverized by a zombie's True Legendary Demon Tech Devastator."
Tag "\c[l5]True\c- \c[z3]Legendary Devastator Zombie\c-"
SeeSound "lcmdo/sight"
AttackSound "Null"
PainSound "lcmdo/pain"
DeathSound "lcmdo/death"
ActiveSound "lcmdo/active"
AttackSound "Null"
states
{
  Spawn:
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TDEZ "Z" 10 Bright A_Look
 	TNT1 A 0 A_PlaySound("devastator/idle",6,1.0,1)
	Loop
  See:
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2086)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TDEZ A 0 A_JumpIfTargetInLOS("Strafing")
    TDEZ AABB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TDEZ A 0 A_JumpIfTargetInLOS("Strafing")
	TDEZ CCDD 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TDEZ A 0 A_Jump(80,"Rush")
    TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    Loop
 Rush:
    TDEZ A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("TrueDevastatotGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	TDEZ D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(84,"See")
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	Loop
  Strafing:
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	TDEZ AA 3 Bright A_GiveInventory("TLegZombieStrafing2",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	TDEZ BB 3 Bright A_GiveInventory("TLegZombieStrafing2",1)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
    TDEZ CC 3 Bright A_GiveInventory("TLegZombieStrafing2",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	TDEZ DD 3 Bright A_GiveInventory("TLegZombieStrafing2",1)
	Goto See
  Pause:
	TDEZ EEEEE 3 Bright A_GiveInventory("TLegZombieStrafing2",1)
	Goto See	
  Missile:
    TDEZ E 0 A_FaceTarget
	TNT1 A 0 A_StopSound(6)
    TDEZ E 0 A_PlaySound ("devastator/charge")
	TNT1 A 0 A_ChangeFlag("NOPAIN",1)
    TDEZ EEEEEEEEEEEEE 2 Bright A_FaceTarget
	TDEZ F 8 Bright
    TDEZ F 0 A_PlaySound ("devastator/fire")
    TDEZ F 10 Bright A_Custommissile("TrueLegRRDevastatorBall")
	TNT1 A 0 A_ChangeFlag("NOPAIN",0)
    TDEZ E 50
    goto See
  Pain:
    TDEZ G 3
    TDEZ G 3 A_Pain
    goto See
  Death:
    TNT1 A 0 A_Jump(36,"TrueLegendarySoul")
    TNT1 A 0 A_StopSound(6)
	LDEZ H 5 A_Scream
    LDEZ I 5 A_Fall
    LDEZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    LDEZ KLM 5 
    LDEZ N -1 
    stop
  TrueLegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TDEZ H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ L 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    TDEZ M 5
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	TDEZ N 140
	TDEZ N 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	TDEZ NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("LegSoulEvent",1)
	TDEZ NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("LegSoulEvent",1)
	TDEZ NNNNNNNNNNNNNNNNN 2 Bright A_GiveInventory("LegSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFTrueLegendarySoul",0,0,16,0,0,0,0,32) //ahhhhhhhh...... nobody plays LNA without TLCA
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	TDEZ N -1
    Stop
  XDeath:
	TNT1 A 0 A_StopSound(6)
	TDEZ O 5
	TDEZ O 3 A_SpawnItemEx("BlueGibbedGenerator",0,0,0,0,0,0,0,128,0)
	TDEZ P 5 A_XScream
	TDEZ Q 5 A_NoBlocking
	TDEZ RS 5
	TDEZ T -1
    stop
  }
}

ACTOR TrueDevastatotGhostA
{
Scale 1.1
Radius 20
Height 56
Speed 0
Alpha 0.7
PROJECTILE
RENDERSTYLE Translucent
+CLIENTSIDEONLY
+NOINTERACTION
+NOTIMEFREEZE
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    TDEZ A 2 A_FadeOut(0.10)
    Wait
    }
}

ACTOR TrueDevastatotGhostB : TrueDevastatotGhostA
{   
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    TDEZ B 2 A_FadeOut(0.10)
    Wait
    }
}

ACTOR TrueDevastatotGhostC : TrueDevastatotGhostA
{   
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    TDEZ C 2 A_FadeOut(0.10)
    Wait
    }
}

ACTOR TrueDevastatotGhostD : TrueDevastatotGhostA
{   
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    TDEZ D 2 A_FadeOut(0.10)
    Wait
    }
}