// --------------------------------------------------------------------------
//
// MP5 (Weapon)
//
// --------------------------------------------------------------------------

ACTOR "MP5SD_RAT" : MP5SD //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon MP5SD

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "9mmAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 30
	obituary "%k killed %o with MP5SD."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Pickep up a MP5SD"
	Tag "MP5SD"
	Weapon.UpSound "MP5SD/Ready"
	//AttackSound "MP5SD/Fire"
	Scale 0.16

	States
	{

	
	AltFire:
	TNT1 A 0 ACS_Execute(781, 0, 0, 0, 0)
	Goto Ready
	


	
	
	Fire:

	W50E D 0 A_JumpIfNoAmmo("Ready")
	
	
		W50D A 1 A_GunFlash
		W50D B 1 A_WEAPONREADY(WRF_NOFIRE)
		W50D C 1 A_WEAPONREADY(WRF_NOFIRE)
		TNT1 A 0 A_Refire
		W50D DEFGHIJ 1 A_WeaponReady
		Goto Ready



 

	}
}