ACTOR EnragedLegendarySuperShotgunZombie : LegendaryZombie
{
//Creator: Dr. Sticky
//Origin: Nexus Infinity
//Sprite: ESZ4
//Title: "Enraged Legendary Super Shotgun Zombie" 
Health 1350
Speed 20
PainChance 20
BloodColor "Red"
DropItem "LegendaryBossLifeEssence" 256
DropItem "LegendaryBossArmorBonusMax" 256
DropItem "EnragedLegendaryCoachgun" 202
DropItem "EnragedLegendaryShell" 256 4
DropItem "EnragedLegendaryShellBox" 130
DropItem "EnragedLegendaryPowerShard" 30 1
DropItem "EnragedLegendaryArmor" 92 1
DropItem "LegAmmoSphere" 95 1
DropItem "HandGrenadeAmmo" 237 2
DropItem "MineAmmo" 242 2
DropItem "Backpack" 202 1
DropItem "Armorplate" 212 1
DropItem "Portablemedkit" 217 1
DropItem "StimKit" 222 3
DropItem "HealthFlask" 227 5
DropItem "LegendaryRune" 40 1
DamageFactor "PDTBFG", 0.20
DamageFactor "PDTBFGTracer", 0.20
DamageFactor "PlayerDevBall", 0.120
DamageFactor "PlayerDevBall2", 0.120
DamageFactor "PlayerDTBFGRailgunSlug", 0.75
DamageFactor "PlayerDevTracer", 0.120
DamageFactor "DBFG10K2", 0.1
DamageFactor "PlayerDBFG10K2", 0.1
DamageFactor "DBFG2", 0.1
DamageFactor "PlayerDBFG2", 0.1
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryPlayer", 0.0
DamageFactor "LACGrenade", 0.0
DamageFactor 0.65
Tag "\c[m6]Enraged\c- \c[z3]Legendary Super Shotgun Zombie\c-"
SeeSound "Legssgzomb/sight"
PainSound "Legssgzomb/pain"
DeathSound "Legssgzomb/death"
ActiveSound "Legssgzomb/active"
Obituary "%o was killed by th 999th legendary shotgun variant, the Enraged Legendary Super Shotgun Zombie."
-NOFEAR
States
{
  Spawn:
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	ESZ4 A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,2101)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 A 0 A_JumpIfTargetInLOS("Strafing")
    ESZ4 AA 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	ESZ4 BB 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	ESZ4 A 0 A_JumpIfTargetInLOS("Strafing")
	ESZ4 CC 3 Bright A_Chase
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	ESZ4 DD 3 Bright A_Chase
	ESZ4 A 0 A_Jump(80,"Rush")
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    Loop
  Rush:
    ESZ4 A 0 A_JumpIfTargetInLOS("Strafing")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostA",0,0,0,0,0,0,0,128)
	ESZ4 A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostA",0,0,0,0,0,0,0,128)
	ESZ4 A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostB",0,0,0,0,0,0,0,128)
	ESZ4 B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostB",0,0,0,0,0,0,0,128)
	ESZ4 B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
    TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostC",0,0,0,0,0,0,0,128)
	ESZ4 C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostC",0,0,0,0,0,0,0,128)
	ESZ4 C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostD",0,0,0,0,0,0,0,128)
	ESZ4 D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("ELegSSGGhostD",0,0,0,0,0,0,0,128)
	ESZ4 D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",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("FootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ESZ4 AA 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ESZ4 BB 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
    ESZ4 CC 3 Bright A_GiveInventory("LegZombieStrafingg",1)	
	TNT1 A 0 A_Chase("","Missile",CHF_DONTMOVE)
	ESZ4 DD 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	Goto See
  Missile:        
    TNT1 A 0 A_Jump(45,"LegNade")
	TNT1 A 0 A_JumpIfCloser(275,"Double")
  Normal:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	ESZ4 EE 1 Bright A_Facetarget
	ESZ4 E 1 Bright A_Facetarget
	TNT1 A 0 A_PlaySound("Weapons/LegSGsingle")
	TNT1 AAAA 0 A_CustomMissile("LegendaryRedTracer",Random(28,34),0,Random(6,-6),0)
	ESZ4 F 3 Bright A_CustomBulletAttack(16.8,14.7,6,Random(7,16)*5,"EnragedBulletPuff")
	ESZ4 EE 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	ESZ4 E 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_PlaySound("Weapons/LegSGsingle")
	TNT1 AAAA 0 A_CustomMissile("LegendaryRedTracer",Random(28,34),0,Random(6,-6),0)
	ESZ4 F 3 Bright A_CustomBulletAttack(22.5,0,3,Random(9,18)*2,"EnragedBulletPuff")
	ESZ4 EE 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	Goto Reload
  Double:
    TNT1 A 0 A_SetShootable
    TNT1 A 0 A_UnsetInvulnerable
    TNT1 A 0 A_SetTranslucent(1)
	ESZ4 EEE 3 Bright A_Facetarget
	ESZ4 E 0 A_Facetarget
	TNT1 A 0 A_PlaySound("Weapons/LegSGboth")
	TNT1 AAAAAAAA 0 A_CustomMissile("LegendaryRedTracer",Random(28,34),0,Random(6,-6),0)
	ESZ4 F 4 Bright A_CustomBulletAttack(19.5,15.3,14,Random(15,25)*5,"EnragedBulletPuff")
	ESZ4 EEE 2 Bright A_GiveInventory("LegZombieStrafingg",1)
	Goto Reload
  Reload:
	ESZ4 E 3 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	ESZ4 E 6 Bright A_PlaySound("wWeapons/LegSGopen")
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_SpawnItemEx("RedShellCasing", -8, 6, 36, Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)
	ESZ4 E 1 Bright A_SpawnItemEx("RedShellCasing", -10, 6, 36, Random(2, 6), 0, Random(1, 3), Random(-80, -90), 128)
	ESZ4 E 6 Bright A_PlaySound("Weapons/LegSGin")
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	ESZ4 E 6 Bright A_PlaySound("Weapons/LegSGclose")
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
	ESZ4 E 6 Bright A_CPosRefire
	Goto See
  LegNade:
	ESZ4 E 0 A_JumpIfCloser(280,"Missile")
    ESZ4 E 12 Bright A_GiveInventory("LegZombieStrafingg",1)
    ESZ4 EEE 6 Bright A_GiveInventory("LegZombieStrafingg",1)
	TNT1 A 0 A_GiveInventory("LegZombieStrafingg",1)
    ESZ4 E 6 Bright A_CustomMissile("ELACGrenade",32,0,0,2,10)
	ESZ4 EE 25 Bright
	Goto See
  Pain:
    TNT1 A 0 A_Jump(10,"Protection")
	TNT1 A 0 A_Jump(192,"PainMissile")
    ESZ4 G 3 Bright A_GiveInventory("LegZombieStrafingg",1)
    ESZ4 G 0 A_Pain
	ESZ4 G 3 Bright A_GiveInventory("LegZombieStrafingg",1)
    Goto See
  PainMissile: 
    LES2 G 3 Bright A_GiveInventory("LegZombieStrafingg",1)
    LES2 G 0 A_Pain
	LES2 G 3 Bright A_GiveInventory("LegZombieStrafingg",1)
    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
	ESZ4 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(35,"LegendarySoul")
    TNT1 A 0 A_StopSound(6)
	ESZ4 H 5 A_Scream
    ESZ4 I 5 A_Fall
    ESZ4 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
    ESZ4 K 5 
    ESZ4 L -1 
	Stop
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
	ESZ4 H 5 A_Scream
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 I 5 A_Fall
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 K 5 
	TNT1 A 0 A_SpawnItem("EnragedHellionSmokeSpawner",0,0,0,0)
    ESZ4 L 140
	ESZ4 L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	ESZ4 LLLLLLLLLLLLLLLLL 2 Bright A_SpawnItem("ELegSoulEventSmokeSpawner",1)
	ESZ4 LLLLLLLLLLLLLLLLL 2 Bright A_SpawnItem("ELegSoulEventSmokeSpawner",1)
	ESZ4 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)
	ESZ4 L -1
	Stop
  XDeath:
	TNT1 A 0 A_StopSound(6)
    IASG O 5 A_SpawnItemEx("EnragedGibbedGenerator",0,0,0,0,0,0,0,128,0)
    IASG P 5 A_XScream
    IASG Q 5 A_Fall
    IASG RSTUV 5
    IASG W -1
    Stop
    }
}

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

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

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

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

ACTOR ELegSSGGhostE : ELegSSGGhostA
{   
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    ESZ4 E 2 A_FadeOut(0.10)
    Wait
    }
}

ACTOR ELegSSGGhostF : ELegSSGGhostA
{   
States
{
  Spawn:
    TNT1 A 0
    TNT1 A 1 A_JumpIf(ACS_ExecuteWithResult(304) == 1,"NULL")
    ESZ4 F 2 A_FadeOut(0.10)
    Wait
    }
}