// --------------------------------------------------------------------------
//
// M4A1 (Demo weapon "Appears on weapons training")
//
// --------------------------------------------------------------------------



ACTOR "CZ75A_RAT" : CZ75A //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon CZ75A

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "45acpAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 12
	obituary "%k killed %o with CZ75A."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Picked up a CZ75A."
	Tag "C275A"
//	Weapon.UpSound "CZ75A/Ready"
	//AttackSound "M4A1/Fire" 
	Scale 0.155

	States
	{

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


/*
	AltFire:
//				TNT1 A 1 A_ZoomFactor(1.0)
		TNT1 A 0 A_PlayWeaponSound("Knife/Slash")
		W19H ABC 1 A_WeaponReady(WRF_NOFIRE)
//	  TNT1 A 0 A_GiveInventory("RAT_Knife_Activated", 1)
		W19H D 1 A_CustomPunch(32, 0, 0, "KnifePuff2", 128)//, 0.175, 50)//A_GunFlash
		W19H EFGHIJKLMNOPQRSQRS 1 A_WeaponReady(WRF_NOFIRE)
//		W19H LMNOPQRSTUVWXYZ 1 A_WeaponReady(WRF_NOFIRE)
		Goto Select+6

//	Select_RAT:
//		TNT1 A 0 A_PlaySound ("MAG7/Ready")
//		Goto Select+6	
		
*/		






	Fire:
	
	W43D Q 0 A_JumpIfNoAmmo("Ready")
    TNT1 A 0 A_JumpIfInventory("CZ75AExtraClip",1,"Fire2clip")
	
	
		W43H A 1 A_GunFlash
		W43H B 1 A_WEAPONREADY(WRF_NOFIRE)
		W43H C 1 A_WEAPONREADY(WRF_NOFIRE)
		TNT1 A 0 A_Refire
		W43H DEFGHIJKLMNOPQRSTUVWXYZ 1 A_WeaponReady
		Goto Ready



	}
}