Actor LegendaryHeavyShotgunner : LegendaryZombie 30006
{
//Creator: Eshkere_Jason
//Origin: Divine Infinity
//Sprite: LHZS
//Title: "Legendary Heavy Shotgunner"  
Health 1850
GibHealth 130
Mass 150
Speed 9
FastSpeed 13
PainChance 20
Species "Zombies"
DamageFactor "PDTBFG", 0.20
DamageFactor "PDTBFGTracer", 0.20
DamageFactor "PlayerDevBall", 0.120
DamageFactor "PlayerDevBall2", 0.120
DamageFactor "PlayerDTBFGRailgunSlug", 0.120
DamageFactor "PlayerDevTracer", 0.120
DamageFactor "Legendary", 0.0
DamageFactor "LegendaryGuru", 0.0
DamageFactor "LegendaryPlayer", 0.3
DamageFactor "LegendaryGuruPlayer", 0.3
DamageFactor "LACGrenade", 0.0
DamageFactor "DBFG10K2", 0.65
DamageFactor "PlayerDBFG10K2", 0.65
DamageFactor "DBFG2", 0.65
DamageFactor "PlayerDBFG2", 0.65
DamageFactor "PlayerDTRG", 0.5
DamageFactor 0.5
DropItem "Legendary Assault Shotgun" 202
DropItem "LegendaryShell" 256 4
DropItem "LegendaryShellBox" 130
DropItem "LegendaryPowerShard" 55 1
DropItem "LegendaryArmor" 128 1
DropItem "LegAmmoSphere" 85 1
DropItem "HandGrenadeAmmo" 237 2
DropItem "MineAmmo" 242 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" 93 1
SeeSound "grunt/sight"
AttackSound "legendarypro/fire"
PainSound "grunt/pain"
DeathSound "grunt/death"
ActiveSound "grunt/active"
Obituary "A Legendary Heavy Shotgunner was just too Heavy for %o."
Tag "\c[z3]Legendary Heavy Shotgunner\c-"
+DONTHARMSPECIES
States
{
  Spawn:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LHZS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 10 Bright A_Look
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    Loop
  See:
	TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("InfinityMusic",0,1821,560)
	TNT1 A 0 A_SetUserVar("user_music",1)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    LHZS AAA 1 Bright A_Chase("","")
	LHZS A 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	LHZS AAA 1 Bright A_Chase("","")
	LHZS A 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS BBB 1 Bright A_Chase("","")
	LHZS B 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	LHZS BBB 1 Bright A_Chase("","")
	LHZS B 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS CCC 1 Bright A_Chase("","")
	LHZS C 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	LHZS CCC 1 Bright A_Chase("","")
	LHZS C 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS DDD 1 Bright A_Chase("","")
	LHZS D 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	LHZS DDD 1 Bright A_Chase("","")
	LHZS D 1 A_Chase
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(64,"Mine")
	LHZS A 0 A_Jump(64,"Rush")
	TNT1 A 0 A_Jump(64,"DodgeLeft","DodgeRight","DodgeGo")
	TNT1 A 0 A_Jump(64,"Chase")
	Loop
  DogdeSee:
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_FaceTarget
	LHZS AAA 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS A 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_FaceTarget
	LHZS AAA 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS A 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LHZS BBB 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS B 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_FaceTarget
	LHZS BBB 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS B 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LHZS CCC 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS C 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_FaceTarget
	LHZS CCC 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS C 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_FaceTarget
	LHZS DDD 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS D 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_FaceTarget
	LHZS DDD 1 Bright A_Chase("","",CHF_FASTCHASE)
	LHZS D 1 A_Chase
	TNT1 A 0 A_GiveInventory("SpecOpsStrafing",1)
	TNT1 A 0 A_CheckSight("See")
	TNT1 A 0 A_Jump(64,"Mine")
	LHZS A 0 A_Jump(64,"Rush")
	TNT1 A 0 A_Jump(64,"DodgeLeft","DodgeRight","DodgeGo")
	TNT1 A 0 A_Jump(64,"Chase")
	Loop
  Rush:
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostA",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS A 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostB",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS B 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostC",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS C 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItemEx("LegHSZombieGhostD",0,0,0,0,0,0,0,SXF_CLIENTSIDE|SXF_NOCHECKPOSITION)
	LHZS D 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_Jump(85,"See")
	TNT1 A 0 A_Jump(200,"DodgeGo")
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	Loop
  Chase:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS AA 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(130,"Dodge")
	LHZS AA 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(130,"Dodge")
	LHZS BB 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(130,"Dodge")
	LHZS BB 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS A 0 A_JumpIfCloser(150,"Dodge")
	LHZS CC 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(150,"Dodge")
	LHZS CC 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(130,"Dodge")
	LHZS DD 1 Bright A_FastChase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 0 A_JumpIfCloser(130,"Dodge")
	LHZS DD 1 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	TNT1 A 0 A_Jump(95,"Mine")
	LHZS A 0 A_Jump(128,"Dodge")
	LHZS A 0 A_Jump(180,"DodgeGo")
	Loop
  SeeNoDodge:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS AABB 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS CCDD 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS AABB 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS CCDD 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS AABB 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	LHZS CCDD 2 Bright A_Chase
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	TNT1 A 0 A_SpawnItemEx("FootStep",0,0,2,0,0,-20)
	Goto Chase
  Dodge:
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS A 1 Bright A_FaceTarget
	TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
	LHZS E 0 ThrustThingZ(0, 20, 0, 0)
	LHZS A 0 A_Jump(256, "DodgeRight", "DodgeLeft","DodgeGo")
  DodgeLeft:
	LHZS E 0 ThrustThing(angle*256/360+192, 15, 0, 0)
	Goto SeeNoDodge
  DodgeRight:
	LHZS E 0 ThrustThing(angle*256/360+64, 15, 0, 0)
	Goto SeeNoDodge
  DodgeGo:
	TNT1 A 0 A_CheckSight("Dodge")
	LHZS E 4 A_FaceTarget
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 ThrustThingZ(0,20,0,1)
	TNT1 A 0 A_CustomBulletAttack(22.5,18.3,4,Random(5,15)*6,"LegModdedBulletPuff")
	TNT1 AAAA 0 A_CustomMissile("LegendaryBlueTracer",random(28,34),0,random(-6,6),0)
	TNT1 A 0 A_SpawnItemEx("BlueShellCasing",-8,0,30,Random(2,6),0,Random(1,3),Random(-80,-90),SXF_CLIENTSIDE,0)
	LHZS E 2 A_Recoil(-36)
	TNT1 A 0 A_PlaySound("legendarypro/cock")
	LHZS E 6 A_CustomMissile("PinkyLunge")
	LHZS E 2  A_ScaleVelocity(0.2)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	LHZS E 1 A_ScaleVelocity(0)
	Goto Missile
  Mine:
	LHZS C 1 Bright
	LHZS C 12 Bright A_CustomMissile("LACThrownMine",32,0,0,2,15)
	LHZS E 12 Bright
	LHZS C 3 Bright
	Goto See
  Missile:
	LHZS E 6 A_FaceTarget
	LHZS FF 1 Bright A_FaceTarget
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	TNT1 A 0 ThrustThingZ(0,Random(20,40),0,1)
	TNT1 A 0 ThrustThing(angle*256/360+random(192.0,64.0),Random(15,30),0,0)
	TNT1 A 0 A_CustomBulletAttack(22.5,18.3,8,Random(5,15)*6,"LegModdedBulletPuff")
	TNT1 AAAAAAAA 0 A_CustomMissile("LegendaryBlueTracer",random(28,34),0,random(-6,6),0)
	LHZS E 6 A_FaceTarget
	LHZS E 4 A_PlaySound("legendarypro/cock")
	TNT1 A 0 A_SpawnItemEx("BlueShellCasing",-8,0,30,Random(2,6),0,Random(1,3),Random(-80,-90),SXF_CLIENTSIDE,0)
	LHZS E 2  A_ScaleVelocity(0.2)
	TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	LHZS E 4 Bright A_FaceTarget
	TNT1 A 0 A_CPosRefire
	TNT1 A 0 A_JumpIfTargetInLOS("DogdeSee",50,JLOSF_TARGETLOS)
    TNT1 A 0 A_Jump(40,"Mine")
	LHZS A 0 A_Jump(180,"DodgeGo")
	Goto Missile
  Pain:
	TNT1 A 0
	TNT1 A 0 A_Jump(20,"Dodge")
	TNT1 A 0 A_Jump(192,"PainMissile")
	TNT1 A 0 A_Jump(30,"Mine")
	Goto See
  PainMissile:
    LHZS G 3 Bright
    LHZS G 3 Bright A_Pain
    Goto Missile
  Death:
	TNT1 A 0 A_Jump(36,"LegendarySoul")
	TNT1 A 0 A_StopSound(6)
	LHZS H 5 A_Scream
	LHZS I 5 A_Fall
	LHZS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	LHZS K 5
	LHZS L 63000 CanRaise
	Stop
  LegendarySoul:
    TNT1 A 0 A_StopSound(6)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
	LHZS H 5 A_Scream
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LHZS I 5 A_Fall
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LHZS J 5 A_SpawnItem("BodyCrash",0,0,0,0)
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LHZS K 5 
	TNT1 A 0 A_SpawnItem("BHellionSmokeSpawner",0,0,0,0)
    LHZS L 140
	LHZS L 0 A_PlaySoundEx("brain/spit","Voice",0,2)
	LHZS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("LegSoulEvent",1)
	LHZS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("LegSoulEvent",1)
	LHZS LLLLLLLLLLLLLLLLL 2 Bright A_GiveInventory("LegSoulEvent",1)
	TNT1 A 0 A_SpawnItemEx("INFLegendarySoul",0,0,16,0,0,0,0,32)
	TNT1 A 0 A_SpawnItemEx("TeleportFog",0,0,16,0,0,0,0,32)
	LHZS L -1
	Stop
	}
}

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

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

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

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