actor SegwayZombie //Do zombies even know how to ride Segways?
{
//Creator: "pdxbla's "VDP-MonsterRandomizer" & ElAnexo
//Origin: Realm667
//Sprite: XSEG
//Title: "Segway Zombie"
MONSTER
obituary "%o was run down by a zombie on a turbo segway!"
health 350
radius 20
height 56
mass 100
speed 1
painchance 100
DamageFactor 0.9
//No Infighting
DamageFactor "LegendaryZombie", 0.0
DamageFactor "LACGrenade", 0.0
DamageFactor "GeneralTracer", 0.0
DamageFactor "ZombieCannon", 0.0
DamageFactor "ZombieRocket", 0.0
DamageFactor "Hell", 0.0
DamageFactor "EMGEx", 0.0
DamageFactor "RST", 0.0
Damagefactor "ZExplosiveBullets", 0.0
Damagefactor "HTZombie", 0.0
DamageFactor "ZombieCannon", 0.0
DamageFactor "MiniRocket", 0.0
DamageFactor "SoulToxic", 0.0
DamageFactor "Cacolich", 0.0
seesound "grunt/sight"
painsound "grunt/pain"
deathsound "grunt/death"
activesound "grunt/active"
dropitem "HasteSphere", 256
dropitem "HasteCustomRune", 20
DropItem "Soulhealth", 140
DropItem "Soularmor", 140
DropItem "AmmoPack", 40
DropItem "HellseconomicContract", 115
meleedamage 1
meleerange 30
translation "112:127=[139,134,78]:[0,0,0]"
Tag "SegWay Zombie"
+FLOORCLIP
+STRIFEDAMAGE
states
{
  Spawn:
    XSEG A 10 A_Look
    XSEG A 0 A_Stop
    XSEG A 0 A_StopSoundEx("SoundSlot7")
    loop
  See:
    XSEG A 0 A_Jump(8,"Coward","Brave")
    XSEG A 1 A_Chase
    XSEG A 0 A_Recoil(-2)
    XSEG A 0 A_MeleeAttack
    XSEG A 0 A_PlaySoundEx("Segway/Go","SoundSlot7",1)
    XSEG A 0 A_SpawnItemEx("SegwayPuff",0,8,8,-4,0,2,0,160)
    XSEG A 0 A_SpawnItemEx("SegwayPuff",0,-8,8,-4,0,2,0,160) 
    loop
  Coward:
    XSEG A 0 A_ChangeFlag(FRIGHTENED,1)
    goto See
  Brave:
    XSEG A 0 A_ChangeFlag(FRIGHTENED,0)
    goto See
  Pain:
    XSEG A 0 A_Pain
    XSEG A 0 A_PlaySoundEx("Segway/Go","SoundSlot7",1)
    goto See
  Death:
    TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner",0,0,24,0,0,0,0,128) 
    TNT1 AAA 0 A_CustomMissile("Kaboom3",24,0,random(0,360),2,random(0,360))
	TNT1 AAA 0 A_CustomMissile("SmokeFX2",24,0,random(0,360),2,random(0,360))
    TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,24,Random(4,-4),Random(4,-4),Random(4,8),0,128)
    XSEG B 5 A_SpawnItemEx("Boom",0,0,32,0,0,0,0,160)
    XSEG B 0 A_StopSoundEx("SoundSlot7")
    XSEG B 0 A_PlaySound("weapons/rocklx")
    XSEG C 5 A_Scream
    XSEG D 5 A_NoBlocking
    XSEG E -1
    stop
  }
}

actor SegwayPuff
{
radius 2
height 2
speed 0
damage 0
scale 0.6
renderstyle Add
alpha 0.2
+NOBLOCKMAP
+NOGRAVITY
+MISSILE
+NOTELEPORT
+DONTSPLASH
+NOCLIP
states
{
  Spawn:
    ZPUF ABCDE 1
    stop
  }
}

actor Boom
{
Radius 11
Height 8
Speed 0
Damage 0
Projectile
renderstyle Add
States
{
  Spawn:
    MISL B 8 bright
    MISL C 6 bright
    MISL D 4 bright
    stop
  }
}