ACTOR EnragedLegendaryGeneral : LegendaryGeneral
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: EEGE
//Title: "Enraged Legendary General"
Health 1500
Speed 14
BloodColor "Red"
DropItem "EnragedLegendaryArmor" 110 1
DropItem "LegAmmoSphere" 117 1
DropItem "HandGrenadeAmmo" 237 2
DropItem "MineAmmo" 237 2
DropItem "Backpack" 200 1
DropItem "Armorplate" 207 1
DropItem "Portablemedkit" 212 1
DropItem "LegendaryCellPack" 202 
DropItem "LegendaryCell" 252 25
DropItem "LegendaryRune" 50 1
DropItem "LegendaryBFG10K" 180 1
DropItem "EnragedLegendaryPowerShard" 100 1
DropItem "Beacon" 128 1
DropItem "Beacon" 128 1
DamageFactor "Legendary1", 0.0
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "NobleComet", 0.0
DamageFactor "PDTBFG", 0.25
DamageFactor "PDTBFGTracer", 0.25
DamageFactor "PlayerDevBall", 0.125
DamageFactor "PlayerDevBall2", 0.125
DamageFactor "PlayerDTBFGRailgunSlug", 0.125
DamageFactor "PlayerDevTracer", 0.125
DamageFactor "DBFG10K2", 0.1
DamageFactor "PlayerDBFG10K2", 0.1
DamageFactor "DBFG2", 0.1
DamageFactor "PlayerDBFG2", 0.1
DamageFactor 0.65
Obituary "An Enraged Legendary General showed %o what happens if you disobey his orders."
Tag "\c[m6]Enraged\c- \c[z3]Legendary General\c-"
States
{
  Spawn:
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE A 10 Bright A_Look
	TNT1 A 0 A_PlayWeaponSound("Leg10K/Idle")
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE "Z" 10 Bright A_Look
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2088)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_PlayWeaponSound("Leg10K/Idle")
	EEGE A 0 A_JumpIfTargetInLOS("Strafing")
	EEGE AABB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE A 0 A_JumpIfTargetInLOS("Strafing")
    EEGE CCDD 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE A 0 A_Jump(80,"Rush")
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    Loop
  Rush:
    EEGE A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("EnrGeneralGhost",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	EEGE D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(84,"See")
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	Loop
  Strafing:
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	EEGE AA 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	EEGE BB 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("LegendaryFootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
    EEGE CC 3 Bright A_GiveInventory("LegZombieStrafingg",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	EEGE DD 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	Goto See
  Pause:
	TNT1 A 0 A_PlayWeaponSound("Leg10K/ACool")
	EEGE EEEEE 3 Bright A_GiveInventory("LegZombieStrafingg2",1)
	TNT1 A 0 A_Jump(81,"BFG10K")
	Goto See
  Missile:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
    TNT1 A 0 A_Jump(100,"BFG10K")
	TNT1 A 0 A_JumpIfCloser(200,"LegNade")
  Normal:
	TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/ACharge")
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	EEGE E 6 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("EnragedLGeneral15KProjectile",30,0,random(-4,4),0)
	EEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("EnragedLGeneral15KProjectile",30,0,random(-4,4),0)
	EEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/AFire")
	TNT1 A 0 A_CustomMissile("EnragedLGeneral15KProjectile",30,0,random(-4,4),0)
	EEGE F 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_CustomMissile("EnragedLGeneral15KProjectile",30,0,random(-4,4),0)
	EEGE E 5 Bright A_FaceTarget
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	//TNT1 A 0 A_Jump(40,"Pause")
	TNT1 A 0 A_SpidRefire
	Goto Pause
  BFG10K:
	TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	EEGE E 3 Bright A_GiveInventory("LegZombieStrafingg2",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	TNT1 A 0 A_PlayWeaponSound("Leg10K/PCharge")
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
    EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
    EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
    EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 2 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
    EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
    EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	TNT1 A 0 A_Jump(24,"Pause")
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 2 Bright A_FaceTarget
	TNT1 A 0 A_PlaySound("Leg10K/PFire")
	EEGE F 1 Bright A_CustomMissile("EnragedGeneral10KProjectile", 30, 0, Random(-3, 3))
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg2",1)
	EEGE E 20 A_PlaySound("Leg10K/PCool")
	Goto See
  LegNade:
    EEGE E 1 Bright A_JumpIfCloser(1500,1)
	Goto Missile
	EEGE E 0 A_JumpIfCloser(600,"Missile")
    EEGE E 12 Bright A_GiveInventory("LegZombieStrafingg",1)
    EEGE EEE 6 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
    EEGE E 6 Bright A_CustomMissile("ELieutenantGrenade",32,0,0,2,10)
	EEGE EE 15 Bright
	Goto See
  Pain:
	TNT1 A 0 A_Jump(25,"Protection")
	TNT1 A 0 A_Jump(192,"PainMissile")
	EEGE G 3 Bright
	EEGE G 3 Bright A_Pain
	Goto See
  PainMissile:
	EEGE G 3 Bright
	EEGE G 3 Bright A_Pain
	Goto Missile	
  Protection:
	TNT1 A 0 A_JumpIf(user_protection >= 3,"Pain")
	TNT1 A 0 A_JumpIf(user_protected == 1,"Pain")
	TNT1 A 0 A_PlaySound("legendary/defense")
	TNT1 A 0 A_FaceTarget
	EEGE E 2 Bright ACS_NamedExecuteAlways("EnragedLegendaryProtection",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	Goto See
  Death:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
    EEGE H 5 A_Scream
    EEGE I 5 A_Fall
    EEGE J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    EEGE K 5
    EEGE L -1
    Stop
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	EEGE H 5 A_Scream
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    EEGE I 5 A_Fall
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    EEGE J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    EEGE K 5 
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    EEGE L 140
	EEGE L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	EEGE LLLLLLLLLLLLLLLLL 2 Bright A_SpawnItem("ELegSoulEventSmokeSpawner",1)
	EEGE LLLLLLLLLLLLLLLLL 2 Bright A_SpawnItem("ELegSoulEventSmokeSpawner",1)
	EEGE LLLLLLLLLLLLLLLLL 2 Bright A_SpawnItem("ELegSoulEventSmokeSpawner",1)
	TNT1 A 0 A_SpawnItemEx("INFEnragedLegendarySoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	EEGE L -1
	Stop
  XDeath:
    TNT1 A 0 A_StopSound(6)
    EEGE O 3
    EEGE O 3 A_XScream
    EEGE O 3 A_SpawnItemEx("EnragedGibbedGenerator",0,0,0,0,0,0,0,128,0)
    EEGE P 3 A_Fall
    EEGE QRSTUV 3
    EEGE W -1 
    Stop
    }
}

/*
ACTOR EnragedLGeneral15KProjectile : BFG15KBall
{
Height 15
Radius 15
Decal BFG9500LightningRed
Speed 50
Damage 100
Species "Legendary"
DamageType "Legendary"
Scale 0.5
ExplosionDamage 180
ExplosionRadius 165
+THRUSPECIES
+FORCERADIUSDMG
+NOTIMEFREEZE
SeeSound "weapons/bfg15kfire"
DeathSound "weapons/bfg95explode"
States
{
  Spawn:
    IIBB ABC 2 Bright A_SpawnItemEx("EnragedLegBallAttack",Random(-8,8),Random(-8,8),Random(-8,8),Random(-1,1),Random(-1,1),Random(-1,1),Random(-20,20),128)
    Loop
  Death:
	TNT1 A 0
    TNT1 A 0 A_SpawnItemEx("BFGShockwaveRed", 0, 0, 0, 0, 0, 0, 0, 128)
	TNT1 A 0 A_SpawnItemEx("EnragedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	TNT1 AAA 0 A_CustomMissile("EKaboomLN2", 0, 0, random(0,360), 2, random(0,360))      
    IIBE ABCDEFG 4 Bright
    Stop
    }
}
*/

Actor EnragedLGeneral15KProjectile : LegendaryImpRedBall
{
  Speed 60
  FastSpeed 30
  Scale 0.4
  Decal BFG9500LightningRed
  DamageType "Legendary"
  Species "Legendary"
  Obituary "%o was blasted apart by a Enraged Legendary General."
  +FORCERADIUSDMG
  +THRUSPECIES
  +FORCERADIUSDMG
  +NOTIMEFREEZE
  -FRIENDLY
  DeathSound ""
  States
  {
  Spawn:
    TNT1 A 0
    TNT1 A 0 A_PlaySoundEx("LesserCardinal/BFGIdle","Voice",1)
    EG1B A 1 Bright A_SpawnItemEx("ILegendaryBallTrail",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    TNT1 A 0 A_CustomMissile("EnragedLegBallAttack",random(-1,1),random(-2,2),0,CMF_AIMDIRECTION|CMF_TRACKOWNER)
    EG1B B 1 Bright A_SpawnItemEx("ILegendaryBallTrail",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    TNT1 A 0 A_CustomMissile("EnragedLegBallAttack",random(-1,1),random(-2,2),0,CMF_AIMDIRECTION|CMF_TRACKOWNER)
    EG1B C 1 Bright A_SpawnItemEx("ILegendaryBallTrail",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    TNT1 A 0 A_CustomMissile("EnragedLegBallAttack",random(-1,1),random(-2,2),0,CMF_AIMDIRECTION|CMF_TRACKOWNER)
    EG1B D 1 Bright A_SpawnItemEx("ILegendaryBallTrail",Random(-12,12),Random(-12,12),Random(12,22),Random(-2,2),Random(-2,2),Random(-2,2),Random(-20,20),128)
    TNT1 A 0 A_CustomMissile("EnragedLegBallAttack",random(-1,1),random(-2,2),0,CMF_AIMDIRECTION|CMF_TRACKOWNER)
    Loop  
  Death:
    TNT1 A 0
	TNT1 A 0 A_SetTranslucent(0.75,1)
	TNT1 A 0 Radius_Quake(5,60,0,10,0)
	TNT1 A 0 A_Explode(60,250)
	EG1B A 6 Bright A_SpawnItemEx("BFGShockwaveRed", 0, 0, 15, 0, 0, 0, 0, 128)
	TNT1 A 0 A_Explode(60,250)
	EG1B B 6 Bright A_SpawnItemEx("BFGShockwaveRed", 0, 0, 15, 0, 0, 0, 0, 128)
	TNT1 A 0 A_Explode(60,250)
	EG1B C 6 Bright A_SpawnItemEx("BFGShockwaveRed", 0, 0, 15, 0, 0, 0, 0, 128)
	TNT1 A 0 A_Explode(60,250)
	EG1B D 6 Bright A_SpawnItemEx("BFGShockwaveRed", 0, 0, 15, 0, 0, 0, 0, 128)
	TNT1 A 0 A_Explode(300,300)
	TNT1 A 0 A_StopSoundEx("Voice")
	TNT1 A 0 Radius_Quake(20,12,0,12,0)
	TNT1 A 0 A_PlaySound("weapons/bfg95explode")
	TNT1 A 0 A_SpawnItemEx("BFGShockwaveRed", 0, 0, 0, 0, 0, 0, 0, 128)
	TNT1 A 0 A_SpawnItemEx("EnragedParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128)
	TNT1 AAA 0 A_CustomMissile("EKaboomLN2", 0, 0, random(0,360), 2, random(0,360))
	TNT1 A 0 A_SetScale(1.0)
    EFE1 ABCDEF 5 Bright
    Stop
	}
}

ACTOR EnragedGeneral10KProjectile : Enraged10KProjectile
{
States
   {
   Spawn:
      TRA3 A 1 Bright
      Loop
   Death:
   XDeath:  
      TNT1 A 0
      TNT1 A 1 A_SpawnItem("ELGRed10KEx")
      Stop
      }
}

ACTOR ELGRed10KEx : ERed10KEx { Damagetype "Legendary" }


ACTOR EnrGeneralGhost
{
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")
    EEGE A 2 A_FadeOut(0.10)
    Wait
    }
}