ACTOR RifleCommando1
{
	//$Category Monsters
   Health 1500
   Radius 20
   Height 56
   Speed 8
   Mass 100
   PainChance 10
   MONSTER 
   +FLOORCLIP
        SeeSound "Gensight"
        PainSound "Genpain"
        DeathSound "Gendeath"
        ActiveSound "Genactive"

	//AttackSound "AWP/FIRE"
	Obituary "$OB_DEMONHIT"

	DropItem "DropSpawner5", 128
	DropItem "DeadClip5Inv", 160
   Decal BulletChip
   States 
   { 
   Spawn: 
      ACPS AB 10 A_Look 
      Loop 
   See: 
      ACPS AABBCCDD 4 A_Chase 
      Loop 
   Missile: 
      ACPS E 10 A_FaceTarget 

		TNT1 A 0 A_PlaySound("AK47/Distant", 7)

		TNT1 A 0 A_PlaySound("AK47/FIRE", CHAN_WEAPON)
		TNT1 A 0 A_CustomBulletAttack(22.5, 0, 1, random(2,6)*3, "BulletPuff", 0, CBAF_NORANDOM)		
		TNT1 A 0 A_CustomMissile("Tracer_Monster",36,5,FRandom(-8,8),CMF_OFFSETPITCH,FRandom(-5,5))	
		
      ACPS F 4 Bright //A_PosAttack 
//TNT1 A 0 A_ChangeFlag("NOPAIN", false)
      ACPS E 1 A_CPosRefire 
      Goto Missile+1 

   Pain: 
      ACPS G 3 
      ACPS G 3 A_Pain 
      Goto See 
   Death:
      TNT1 A 0 A_Jump (125, "AltDeath")
      ACPS H 5
      ACPS I 5 A_Scream
      ACPS J 5 A_NoBlocking
      ACPS KLM 5
      ACPS N -1
      Stop
   AltDeath:
      ACPS V 5 A_Scream
      ACPS W 5 
      ACPS X 5 A_NoBlocking
      ACPS Y 5
		SENA N 0 A_BossDeath
      ACPS Z -1
      Stop	  
   XDeath:
      ACPS O 5 
      ACPS P 5 A_XScream
      ACPS Q 5 A_NoBlocking
      ACPS RS 5
		SENA N 0 A_BossDeath
      ACPS T -1
      Stop
   Raise:
      ACPS N 5
      ACPS MLKJIH 5
      Goto See
   } 
}

