actor LegendarySegwayZombie : LegendaryZombie
{
//Creator: Complex Doom CF 3.0 team
//Origin: Complex Doom CF 3.0 Aprilfools
//Sprite: ZSEG
//Title: "Legendary Segway Zombie"
obituary "%o became roadkill meat thanks to the LEGENDARY SEGWAY COMMANDER, EAT SHIT, BITCH! #REKT #SELFIE #INSTAGRAM #LEGENDARY"
speed 1
painchance 100
meleedamage 100000
meleerange 32
Tag "\c[z3]Legendary Segway Zombie\c-"
DropItem "LegendaryArmor" 85 1
DropItem "LegAmmoSphere" 88 1
DropItem "HandGrenadeAmmo" 235 2
DropItem "MineAmmo" 235 2
DropItem "Backpack" 198 1
DropItem "Armorplate" 205 1
DropItem "Portablemedkit" 210 1
DropItem "LDemonAmmoBox" 200 
DropItem "LDemonAmmo" 250 
DropItem "LegendaryRune" 30 1
DropItem "Legendary Plasmatic Rifle" 155 1
DamageFactor "LegendaryZombie", 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
+STRIFEDAMAGE
-FORCERADIUSDMG
-NOFEAR
states
{
  Spawn:
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    ZSEG A 10 A_Look
    ZSEG A 0 A_Stop
    ZSEG A 0 A_StopSoundEx ("SoundSlot7")
    loop
  See:
    TNT1 A 0 A_JumpIf(user_music == 1,3)
	TNT1 A 0 ACS_NamedExecuteAlways("StartMonsterMusic",0,820)
	TNT1 A 0 A_SetUserVar("user_music",1)
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    ZSEG A 1 A_Chase
    ZSEG A 0 A_Recoil (-3)
    ZSEG A 0 A_MeleeAttack
    ZSEG A 0 A_PlaySoundEx ("Segway/Go", "SoundSlot7", 1)
    loop
  Missile:
    TNT1 A 0 A_SpawnItem("LHellionSmokeSpawner",0,0,0,0)
    ZSEG A 1 A_Recoil (-10)
    ZSEG A 0 A_MeleeAttack
    ZSEG A 0 A_MeleeAttack
    ZSEG A 0 A_MeleeAttack
    ZSEG A 0 A_PlaySoundEx ("Segway/Go", "SoundSlot7", 1)
	Goto See
  Pain:
    ZSEG A 0 A_Recoil (5)
    ZSEG A 0 A_Pain
    ZSEG A 0 A_PlaySoundEx ("Segway/Go", "SoundSlot7", 1)
    goto See
  Death:
    TNT1 A 0 A_StopSound(6)
    ZSEG B 5 A_SpawnItemEx ("LegBoom", 0, 0, 32, 0, 0, 0, 0, 160)
    ZSEG B 0 A_StopSoundEx ("SoundSlot7")
    ZSEG B 0 A_PlaySound ("weapons/rocklx")
    ZSEG C 5 A_Scream
    ZSEG D 5 A_NoBlocking
	TNT1 A 0 A_Jump(64,3)
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SignetAvaliableTokensCheck") == 2,2)
	TNT1 A 0 A_JumpIfInTargetInventory("SignetActiveToken",1,"SignetResurrect")
    ZSEG E -1
    stop
  SignetResurrect:
    TNT1 A 0 A_GiveToTarget("ResurrectedMonsters",1)
	TNT1 A 0 Thing_ChangeTID(0,ACS_NamedExecuteWithResult("SignetTargetID"))
    ZSEG E 100 A_ChangeFlag(FRIENDLY,1)
	ZSEG E 200 A_SpawnItem("SignetRessurectionFire")
	ZSEG E 40 Bright A_SpawnItem("SignetRessurectionFlame")
	//LEGN N 0 A_PlaySoundEx("TLegZomb/Resurrect",7,0,0.4)
    ZSEG EDCB 15 Bright
	TNT1 A 3 A_SpawnItemEx("FriendlyLegendarySegwayZombie",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0,tid-2)
	TNT1 A 1
	Stop
  }
}

actor LegBoom
{
Radius 11
Height 8
Speed 0
Damage 0
Projectile
renderstyle Add
States
{
  Spawn:
	LMSL B 8 bright
    LMSL C 6 bright
    LMSL D 4 bright
	TNT1 A 0 A_SpawnItem("DeathBall2")
    stop
  }
}