actor DualM1911 : Weapon
{
  Game Doom
  Weapon.SelectionOrder 1500
  weapon.ammotype "DualM1911Left"
  weapon.ammouse 1
  weapon.ammogive 999
  weapon.ammogive2 999
  weapon.ammotype2 "Dual1911Ammo"
  Obituary "$OB_MPPISTOL" // "%o was tickled by %k's pea shooter."
  Inventory.Pickupmessage "$PICKUP_PISTOL_DROPPED" // "Picked up a pistol."
  States
  {
  Ready:
	DUM9 A 0 A_JumpIfInventory("thrownade",1,"ThrowGrenade")
    DUM9 A 0 A_JumpIfInventory("IsReloading",1,"Reload")
	DUM9 A 0 A_JumpIfInventory("Kinfeammo",1,"UseKnife")  
    DUM9 A 1 A_WeaponReady
    loop  
  Deselect:
    DUM9 A 0 A_Lower
    DUM9 A 0 A_Lower
    DUM9 A 1 A_Lower
    Loop
  Select:
    DUM9 A 0 A_Raise
    DUM9 A 0 A_Raise
    DUM9 A 1 A_Raise
    Loop
  Fire:
    DUM9 A 0 A_JumpIfInventory("IsReloading",1,"Reload") 
    DUM9 A 0 A_jumpifnoammo("Reload")
    DUM9 A 0 A_jumpifinventory("deadshot",1,"Fire_deadshot")
    DUM9 A 0 A_jumpifinventory("Doubletap",1,"Fire_Doubletap")
    DUM9 A 1 A_playsound("AUG/FIRE")
    DUM9 C 4 bright A_FireBullets (2.4,1.7,-1,random(1250,1250),"BulletPuff")
    DUM9 A 4
    DUM9 A 0 A_JumpIfInventory("IsReloading",1,"Reload") 
    DUM9 A 0 A_jumpifnoammo("Reload")
	goto ready
  ThrowGrenade:
     HNDG BCD 1
     HNDG E 1 A_PlaySound("weapons/grenadepin")
     HNDG FGHH 1
     HNDG I 1 A_PlaySound("weapons/grenadethr") 
     HNDG J 0 A_FireCustomMissile("ThrownGrenade",0,0,0,0)
     HNDG J 0 A_PlaySound("weapons/grenadethr")
     HNDG JKLMNOPQ 1
     HNDG Q 0 A_TakeInventory("thrownade")
     Goto Ready
  Useknife:
     KNFG A 0 A_jumpifinventory("Machete",1,"UseMachete")
     KNFG ABC 2
	 KNFG C 0 A_CustomPunch (110,1,0,"KnifePuff")
	 KNFG DEF 2
	 KNFG F 0 A_TakeInventory("Kinfeammo")
	 goto ready
  UseMachete:
     MHT4 ABC 2
	 MHT4 C 0 A_CustomPunch (450,1,0,"Machetepuff")
	 MHT4 DEFG 2
	 MHT4 G 0 A_TakeInventory("Kinfeammo")
	 goto ready
  Flash:
    TNTT A 0
	stop
  Spawn:
    GEWE Z -1
	stop
  }
}


actor Dual1911Ammo : Ammo
{
    inventory.amount 360
    inventory.maxamount 360
    +IGNORESKILL 
}

Actor DualM1911Left : Ammo
{
 Inventory.Amount 1
 Inventory.MaxAmount 8
}
Actor DualM1911Right : Ammo
{
 Inventory.Amount 1
 Inventory.MaxAmount 8
}