ACTOR InsaneMadman
{
//Creator: Vast Unliking
//Origin: Nexus Infinity
//Sprite: IM6D
//Title: "Insane Madman"
Health 300 
Radius 20 
Height 56 
Speed 35
MeleeDamage 2
PainChance 200 
MONSTER
Damagefactor "Normal", 0.65
Obituary "%o was gored beyond recognition by a madman." 
MeleeSound "weapons/sawhit" 
SeeSound "superzombie/sight"
PainSound "superzombie/pain"
DeathSound "superzombie/death"
ActiveSound "superzombie/active"
DropItem "PortableMedkit" 159
DropItem "ArmorBooster" 186
DropItem "PortableMedkit" 159
DropItem "ArmorBooster" 186
DropItem "PortableMedkit" 159
DropItem "ArmorBooster" 186
DropItem "PortableMedkit" 159
DropItem "ArmorBooster" 186
DropItem "HellseconomicContract", 115
Tag "\c[i7]Insane Madman\c-"
+FLOORCLIP
+AVOIDMELEE
+MISSILEEVENMORE
+MISSILEMORE
+NOPAIN
+QUICKTORETALIATE
States 
{ 
   Spawn: 
      IM6D A 4 A_Look 
      IM6D A 4 A_PlayWeaponSound("weapons/sawidle") 
      Loop 
   See:  
      IM6D A 4 A_FastChase
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D A 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D B 0 A_PlayWeaponSound("weapons/sawidle") 
      IM6D B 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D B 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D C 0 A_PlayWeaponSound("weapons/sawidle") 
      IM6D C 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D C 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D D 0 A_PlayWeaponSound("weapons/sawidle") 
      IM6D D 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D D 4 A_FastChase 
	  TNT1 A 0 A_SpawnItem("FootStep",0,0,0,0)
      IM6D A 0 A_PlayWeaponSound("weapons/sawidle") 
      Loop
    Missile:
	  TNT1 A 0 A_PlaySound("saw/flesh")
  	  IM6D E 4 A_FaceTarget
	  TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,1)
	  TNT1 A 0 ThrustThingZ(0,20,0,1)
	  IM6D E 2 A_Recoil(-36)
	  TNT1 A 0 A_PlaySound("saw/flesh")
	  IM6D E 6 A_CustomMissile("PinkyLunge")
	  IM6D E 2  A_ScaleVelocity(0.2)
	  TNT1 A 0 A_ChangeFlag(SLIDESONWALLS,0)
	  IM6D E 1 A_ScaleVelocity(0)
	  Goto See
   Melee: 
      IM6D E 1 A_FaceTarget 
      IM6D E 2 A_MeleeAttack 
	  TNT1 A 0 A_PlaySound("saw/flesh")
      Goto See 
   Raise: 
      TNT1 A 0
	  TNT1 A 0 A_SpawnItemEx("VileHealEffect",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
	  IM6D MLKJIH 4
	  Goto See
    Death: 
      IM6D H 3 
      IM6D I 3 A_Scream 
      IM6D J 3 A_Fall 
      IM6D K 3 
	  IM6D L 3
	  IM6D M 3
      IM6D N -1 
      Stop 
    XDeath:
      IM6D O 3 A_SpawnItemEx("GibbedGenerator")
      IM6D P 3 A_XScream
      IM6D Q 3 A_Fall
      IM6D RSTUV 3
      IM6D W -1
      Stop
  } 
}