   Actor WehrmachtWBRifle : GenericHumanScum 
       {
  scale 1.0
  obituary "%o was eradicated by the glory of the Neu Reich"
  health 65
  radius 15
  height 54
  mass 100
  speed 10
    Species "Z"
  +DOHARMSPECIES
  painchance 200
  SeeSound "NNazi1/See"
  PainSound "NNazi1/pain"
  DeathSound "NNazi1/Death"
  ActiveSound "NNazi1/Active"
  Translation "112:123=152:159", "124:127=9:12"
  dropitem "Chaingun"
  Tag "Freak Korps Wehrmacht WannaBe"
  MONSTER
  +FLOORCLIP
  States
       {
  Spawn:
    TNT1 A 0
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("STFUCheck") == 1, "STFU")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult ("VanJumpCheck") == 1, "VanJump")
	TNT1 A 0 A_SetScale (scaleX+frandom(-0.02, 0.02), scaleY+frandom(-0.08,0.08))
	TNT1 A 0 A_SpawnItemEx ("HumanTrails", 0, 0, 0)
	TNT1 A 0 A_SpawnItemEx ("SiegWRITER", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION, 150)
  Spawn2:	
    MW1C E 10 A_Look
    loop
  STFU:
     TNT1 A 0
	 TNT1 A 0 ACS_NamedExecute ("STFUNNazi1")
	 Goto Spawn+2
  VanJump:
	 TNT1 A 0
	 TNT1 A 0  NODELAY ACS_NamedExecuteAlways ("VanillaHeights")
	Goto Spawn+3	 
  See:
  "####" A random(1,5)
    TNT1 A 0 A_Jump (70, "DodgeLeft", "DodgeRight", "DodgeLeftF", "DodgeLeftB", "DodgeRightF", "DodgeRightB")
	TNT1 A 0 A_Jump (180, "MissileCheck")
  SeeLoop:
    TNT1 A 0 A_CheckSight ("CheckReload")
    TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	TNT1 A 0 A_Jump (199, "DodgeLeft", "DodgeRight", "DodgeLeftF", "DodgeLeftB", "DodgeRightF", "DodgeRightB")
    MW1C AABBCCDD 3 A_Chase
    loop
  CheckReload:
    TNT1 A 0 A_Jump (150, "CheckReload2")
 	Goto SeeLoop+1
  CheckReload2:
    TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	Goto SeeLoop+1
  DodgeLeft:
        TNT1 A 0 A_FaceTarget
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+192, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		TNT1 A 0 A_Jump (50, "DodgeRight")
		Goto SeeLoop+1
	DodgeLeftF:
	    TNT1 A 0 A_FaceTarget
	    TNT1 A 0 ThrustThingZ (0, 15, 0, 0)
	    TNT1 A 0 A_Recoil (random (-8,-3))
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+192, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		Goto SeeLoop+1
    DodgeLeftB:
	    TNT1 A 0 A_FaceTarget
	    TNT1 A 0 ThrustThingZ (0, 15, 0, 0)
	    TNT1 A 0 A_Recoil (random (3,8))
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+192, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		Goto SeeLoop+1
	DodgeRight:
	    TNT1 A 0 A_FaceTarget
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+64, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		Goto SeeLoop+1
	DodgeRightF:
	    TNT1 A 0 A_FaceTarget
	    TNT1 A 0 ThrustThingZ (0, 15, 0, 0)
	    TNT1 A 0 A_Recoil ( random (-8,-3)) 
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+64, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		Goto SeeLoop+1
	DodgeRightB:
	    TNT1 A 0 A_FaceTarget
	    TNT1 A 0 ThrustThingZ (0, 15, 0, 0)
	    TNT1 A 0 A_Recoil ( random (3,8)) 
	    MW1C AABBCCDD 2 ThrustThing(angle*256/360+64, 1, 0, 0)
		TNT1 A 0 A_Jump (228, "MissileCheck")
		Goto SeeLoop+1
  MissileCheck:
    TNT1 A 0 A_JumpIfTargetInLos ("Missile", 0, JLOSF_DEADNOJUMP)
	Goto SeeLoop
  Missile:
    MW1C E 7 A_FaceTarget
	TNT1 A 0 A_JumpIfTargetInLos ("TriShot", 0, JLOSF_CLOSENOJUMP | JLOSF_DEADNOJUMP, 0, 950)
	TNT1 A 0 A_JumpIfTargetInLos ("Accuracy", 0, JLOSF_CLOSENOJUMP | JLOSF_DEADNOJUMP, 0, 1500)
  MissileLoop:
    TNT1 A 0 A_PlaySound ("USZRFL")
	TNT1 A 0 A_PlaySound ("AR155FF", 6, 0.5, 0)
	MW1C F 2 BRIGHT A_CustomMissile ("AKTracer",32,9,random (-4,4))
	TNT1 A 0 A_GiveInventory ("AKShotCounter", 1)
	TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	//TNT1 A 0 A_JumpIfInTargetLos ("DodgeCheck")
    MW1C E 3 A_MonsterRefire (40, "SeeLoop")
	goto MissileLoop
  Trishot:
    TNT1 A 0 A_PlaySound ("USZRFL")
	TNT1 A 0 A_PlaySound ("AR155FF", 6, 0.5, 0)
	MW1C F 2 BRIGHT A_CustomMissile ("AKTracer",32,9,random (-1,0))
	TNT1 A 0 A_GiveInventory ("AKShotCounter", 1)
	TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	MW1C E 3 A_FaceTarget 
	TNT1 A 0 A_PlaySound ("USZRFL")
	TNT1 A 0 A_PlaySound ("AR155FF", 6, 0.5, 0)
	MW1C F 2 BRIGHT A_CustomMissile ("AKTracer",32,9,random (-1,1))
	TNT1 A 0 A_GiveInventory ("AKShotCounter", 1)
	TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	MW1C E 3 A_FaceTarget
	TNT1 A 0 A_PlaySound ("USZRFL")
	TNT1 A 0 A_PlaySound ("AR155FF", 6, 0.5, 0)
	MW1C F 2 BRIGHT A_CustomMissile ("AKTracer",32,9,random (-2,2))
	TNT1 A 0 A_GiveInventory ("AKShotCounter", 1)
	TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	MW1C E 3 A_MonsterRefire (40, "SeeLoop")
	Goto SeeLoop
  Accuracy:
    MW1C E 7 A_FaceTarget
	TNT1 A 0 A_PlaySound ("USZRFL")
	TNT1 A 0 A_PlaySound ("AR155FF", 6, 0.5, 0)
	MW1C F 2 BRIGHT A_CustomMissile ("AKTracer",32,9)
	TNT1 A 0 A_GiveInventory ("AKShotCounter", 1)
	TNT1 A 0 A_JumpIfInventory ("AKShotCounter", 30, "Reload")
	Goto SeeLoop
  Reload:
    MW1C D 28 A_PlaySound ("RIFOUT")
	TNT1 A 0 A_TakeInventory ("AKShotCounter", 30)
	MW1C E 36 A_PlaySound ("RIFIN")
	MW1C D 18 A_PlaySound ("RIFREAD")
	Goto SeeLoop
  Pain:
    MW1C G 3
    MW1C G 3 A_Pain
    goto SeeLoop
  Death:
  	//TNT1 A 0 A_Jump(20, "Suren")
    MW1C H 5 A_Scream
    MW1C I 5
    MW1C J 5 A_NoBlocking
    MW1C K 5 A_Playsound ("FallingBodyLight", CHAN_BODY)
    MW1C L -1
    stop
  XDeath:
    TNT1 A 0
    TNT1 A 0 A_SpawnItemEx ("VgavnonahCore", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
    PGIB A 1 A_XScream
    PGIB A 5 A_NoBlocking
    PGIB BCD 5
    PGIB E -1
    Stop
  Raise:
    TNT1 A 0 
    TNT1 A 0 A_SpawnItemEx ("NanoResEffect", 0, 0, 15, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	MW1C K 5
	MW1C J 5
	MW1C I 5
	MW1C H 5
   Goto See	
  Idle:
    MW1C AA 4 A_Wander
    MW1C A 0 A_Look
    MW1C BB 4 A_Wander
    MW1C A 0 A_Look
    MW1C CC 4 A_Wander
    MW1C A 0 A_Look
    MW1C DD 4 A_Wander
    MW1C A 0 A_Look
    loop
  }
	   
	   
	   }
	   
	   
	Actor WehrmachtWBRifleSpawner : RandomSpawner
		{
		 DropItem WehrmachtWBRifle
		 DropItem WehrmachtWBRifleBrown
		 DropItem WehrmachtWBRifleSwamp
		 DropItem WehrmachtWBRifleBlack
		 DropItem WehrmachtWBRifleBrownCamo 
		}
	   
	   
	Actor WehrmachtWBRifleBrown : WehrmachtWBRifle 
	   {
	    Translation "112:127=64:79"
		}
		
    Actor WehrmachtWBRifleSwamp : WehrmachtWBRifle 
	   { 
	   Translation "112:127=152:159"
	   }
	   
	Actor WehrmachtWBRifleBrownCamo : WehrmachtWBRifle 
       {
	    Translation "112:127=127:151"
	   }
	   
	   
	
	Actor WehrmachtWBRifleBlack : WehrmachtWBRifle 
	   { 
	   Translation "112:114=102:104", "115:115=3:3", "116:122=105:111", "123:126=5:8", "127:127=0:0"
	   }
	   