// --------------------------------------------------------------------------
//
// Deagle (Demo weapon)
//
// --------------------------------------------------------------------------



ACTOR "Revolver_RAT" : Revolver //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon Revolver

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "RevolverAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 8
	obituary "%k killed %o with R8 Revolver."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Picked up a R8 Revolver."
	Tag "R8 Revolver"
	Weapon.UpSound "Revolver/Ready"
	//AttackSound "Deagle/Fire" 
	Scale 0.2
	//+NOAUTOFIRE

	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_RAT

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



	Fire:

	W46F H 0 A_JumpIfNoAmmo("Ready")
	TNT1 A 0 A_JumpIfInventory("IsBot",1,"BotFire")
	TNT1 A 0 A_JumpIfInventory("FasterRevolver",1,"FastFire")
	TNT1 A 0 A_JumpIfInventory("SlowFireShot",1,"SlowFire")
	
			TNT1 A 0 A_PlaySound ("Revolver/Hammer", 0)
		W46C ABCDEFGHIJKLNOP 1 A_WEAPONREADY(WRF_NOFIRE)

  TNT1 A 0 A_GiveInventory("SlowFireShot",1)			
		W46C P 0 A_Refire
  TNT1 A 0 A_TakeInventory("SlowFireShot",1)
  
		W46C O 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C N 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C M 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C L 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C K 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C J 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C I 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C H 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C G 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C F 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C E 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C D 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C C 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C B 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46C A 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")

		Goto Ready





	FastFire:

	W46F H 0 A_JumpIfNoAmmo("Ready")

		W46E A 1 A_GunFlash
		W46E B 1 A_WEAPONREADY(WRF_NOFIRE)
		W46E CDEFGHIJK 1 A_WEAPONREADY(WRF_NOFIRE)

		//TNT1 A 0 A_Refire		
		W46E L 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E M 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E N 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")		
		W46E O 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E P 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E Q 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E R 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E S 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E T 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E U 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E V 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E W 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E X 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E Y 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46E Z 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		
		W46F A 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F B 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F C 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F D 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F E 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F F 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F G 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")
		W46F H 1 A_WeaponReady 			TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToFast")

		Goto Ready




	}
}