ACTOR RiotZombie
{
//Creator: Titanium
//Origin: Nexus Infinity
//Sprite: RZ76
//Title: "Riot Zombie"
Tag "\c[m3]Riot Zombie\c-"
Health 800
Radius 20
Height 56
Mass 800
PainChance 50
Speed 16
Scale 1.05
Monster
SeeSound "MaxSuitZombie/sight"
PainSound "MaxSuitZombie/pain"
DeathSound "MaxSuitZombie/death"
ActiveSound "MaxSuitZombie/active"
DropItem "PortableMedkit" 100
DropItem "ArmorPlate" 100
DropItem "StimKit" 140
DropItem "ArmorBooster" 140
DropItem "HealthFlask", 180
DropItem "ArmorCharge", 180
DropItem "AmmoPack", 100
DropItem "AmmoPack" 50
DropItem "AmmoPack" 25
DropItem "HandGrenadeAmmo" 200 1
DropItem "MineAmmo" 100 1
DropItem "NewShellBox" 200
DropItem "BackPack" 120 1
DropItem "MarineSquadBeacon", 20, 1
DropItem "HellsMediumContract", 110
Damagefactor "RedZombieDemonTech", 0
Damagefactor "ZombieRocket", 0
Damagefactor "ZombieDemonTech", 0
DamageFactor "RedZDemonTechProjectile", 0.0
Damagefactor "GeneralTracer", 0
DamageFactor "Hell", 0.0
DamageFactor "EMGEx", 0
DamageFactor "RST", 0.0
DamageFactor "SoulToxic", 0.0
DamageFactor "BeheComet", 0.0
DamageFactor "FatFlamer", 0.0
Damagefactor "HTZombie", 0.0
DamageFactor "MiniRocket", 0.0
DamageFactor "ZombieCannon", 0.0
Damagefactor "ZExplosiveBullets", 0.0
Damagefactor "ZGrenade", 0.0
Damagefactor "Normal", 0.5
obituary "%o was reached and killed at some point by a Riot Zombie."
+FLOORCLIP
+NOBLOOD
+MISSILEMORE
+MISSILEEVENMORE
+QUICKTORETALIATE
+DONTHARMSPECIES
var int user_shield;
States
{
  Spawn:
	RZ76 A 10 A_Look
	Loop
  Idle:
	RZ76 AABB 3 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	RZ76 CCDD 3 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	Loop
  See:
	RZ76 AABB 3 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	RZ76 CCDD 3 A_Chase
	TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
	Loop
  Missile:
	RZ76 E 15 A_FaceTarget
  Normal:
	TNT1 A 0 A_PlaySound("riotzombie/fire",7)
	TNT1 A 0 A_PlaySound("riotzombie/add",3)
	TNT1 AAAAAAAA 0 A_CustomMissile("MonsterTracer2",Random(28,34),0,Random(6,-6),0)
	RZ76 F 5 Bright A_CustomBulletAttack(13.8,9.6,10,Random(1,4)*3)
	RZ76 E 17 A_PlaySound("riotzombie/spin",7,1.5)
	RZ76 E 4
	RZ76 E 3 A_PlaySound("riotzombie/reload",3)
	TNT1 AA 0 A_SpawnItemEx("ShellCasing",2,4,33,Random(2,4),Random(3,6),Random(3,6),0)
	RZ76 EEE 4
	Goto See
  Pain:
	TNT1 A 0
	RZ76 O 6 A_Pain
	TNT1 A 0 A_Jump(112,"ShieldUp","Missile")
	Goto See
  ShieldUp:
	TNT1 A 0 A_PlaySound("riotzombie/shield",3)
	TNT1 A 0 A_ChangeFlag("NORADIUSDMG",1)
	TNT1 A 0 A_SetUserVar("user_shield",random(0,10))
	TNT1 A 0 A_JumpIf(user_shield >= 15,"ShieldDown")	 
	TNT1 A 0 A_SetUserVar("user_shield",user_shield+1)
	TNT1 A 0 A_SpawnItemEx("EnforcerShieldHitbox",25,0,10,0,0,0,0,SXF_NOCHECKPOSITION)
	RZ76 O 6 A_FaceTarget
	Goto ShieldUp+3
  ShieldDown:
	TNT1 A 0 A_Jump(128,"See")
	TNT1 A 0 A_JumpIfTargetInLOS("Missile")
	Goto See
  Death:
	RZ76 G 5 Bright A_Scream
	TNT1 A 0 A_SpawnItemEx("GibbedGenerator",0,0,0,0,0,0,0,128,0)
	TNT1 A 0 A_SpawnItem("RocketEx",0,32)
	TNT1 A 0 A_SpawnItemEx("OrangeParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	TNT1 AAA 0 A_CustomMissile("SmokeFX2", 0, 0, random(0,360), 2, random(0,360))
	TNT1 AAAA 0 A_SpawnItemEx("Debris",0,0,0,Random(4,-4),Random(4,-4),Random(4,8),0,128)
	RZ76 H 5 A_Scream
	RZ76 I 5 A_Fall
	RZ76 JK 5
	RZ76 L 5 A_SpawnItem("BodyCrash",0,0,0,0)
	RZ76 M 5
	RZ76 N -1
	Stop
  Raise:
	TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	RZ76 MLKJIHG 5
	Goto See
	}
}

Actor EnforcerShieldHitbox
{
Radius 20
Height 40
Mass 0x7FFFFFFF
Species "Zombies"
Tag "Enforcer Shield Hitbox"
+SHOOTABLE
+INVULNERABLE
+NOGRAVITY
+NOBLOOD
+DONTRIP
States
{
  Spawn:
	TNT1 A 6 NoDelay
	Stop
  }
}

Actor RiotZombieCountless : RiotZombie
{
	-COUNTKILL
	DropItem "StimKit" 140
	DropItem "ArmorBooster" 140
	DropItem "HealthFlask", 180
	DropItem "ArmorCharge", 180
	DropItem "AmmoPack", 100
	DropItem "HandGrenadeAmmo" 200 1
	DropItem "MineAmmo" 100 1
	DropItem "NewShell" 200
}