ACTOR UACMarine9MMPistol : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 1
  Weapon.AmmoGive 20
  Weapon.AmmoType "Clip"
  Obituary "$OB_MPPISTOL"
  +WEAPON.WIMPY_WEAPON
  Inventory.Pickupmessage "$PICKUP_PISTOL_DROPPED"
  Inventory.RestrictedTo "UACMarineClass"
  Tag "9mm Beretta"
  States
  {
  Ready:
  TNT1 A 0 A_PLAYWEAPONSOUND("PISTGET")
    DPPS A 1 OFFSET(9,128)
	DPPS A 1 OFFSET(7,96)
	DPPS A 1 OFFSET(5,72)
	DPPS A 1 OFFSET(3,48)
	DPPS A 1 OFFSET(1,36)
    GOTO READY2
	Ready2:
    DPPS A 1 A_WeaponReady
    Loop
  Deselect:
    DPPS AA 0 A_Lower
	DPPS A 1 A_Lower
    Loop
  Select:
    DPPS AA 0 A_Raise
	DPPS A 0 A_Raise
    Loop
  Fire:
    DPPS A 1 OFFSET(0,36)
	TNT1 A 0 A_PLAYWEAPONSOUND("DSPISGUN")
	DPPS B 2 OFFSET(0,37) BRIGHT A_FireBullets(5.2,1,1,3,"SKIPPUFF")
	DPPS C 2 OFFSET(0,42)
	DPPS C 2 OFFSET(0,41)
    DPPS D 2 OFFSET(0,39)
	DPPS D 1 OFFSET(0,37)
	DPPS A 2 OFFSET(0,36) A_REFIRE
    Goto Ready2

  Spawn:
    PIST A -1
    Stop
  }
}