// --------------------------------------------------------------------------
//
// Elite (Demo weapon)
//
// --------------------------------------------------------------------------



ACTOR "Elite_RAT" : Elite //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon Elite

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "9mmAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 30
	obituary "%k killed %o with Dual Berettas."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Picked up a Dual berettas."
	Tag "Dual Berettas"
	Weapon.UpSound "Elite/Ready"
	//AttackSound "Elite/Fire" 
	Scale 0.18
	+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 ("Elite/Ready")
		Goto Select+6
*/

	Fire:
TNT1 A 0 A_JumpIfInventory("EliteFireWeaponRight", 1, "FireRight")
	W09D U 0 A_JumpIfNoAmmo("Ready")
	TNT1 A 0 A_JumpIfInventory("IsBot",1,"BotFire")
	TNT1 A 0 A_GiveInventory("EliteFireWeaponRight", 1)
		W09D A 1 A_GunFlash
		W09D BC 1 A_WEAPONREADY(WRF_NOFIRE)
		W09D DEF 1 A_WEAPONREADY
		//W09D D 1

		//TNT1 A 0 A_Refire
		W09D GHIJKLMNOPQRSTUVWXYZ 1 A_WeaponReady
		W09E ABC 1 A_WeaponReady

		Goto Ready


	FireRight:

	W09D U 0 A_JumpIfNoAmmo("Ready")
		TNT1 A 0 A_JumpIfInventory("IsBot",1,"BotFireRight")
	TNT1 A 0 A_TakeInventory("EliteFireWeaponRight", 1)	
		W09F A 1 A_GunFlash
		W09F BC 1 A_WEAPONREADY(WRF_NOFIRE)
		W09F DEF 1 A_WEAPONREADY
		//W09D D 1

		//TNT1 A 0 A_Refire
		W09F GHIJKLMNOPQRSTUVWXYZ 1 A_WeaponReady
		W09G ABCD 1 A_WeaponReady

		Goto Ready










 
 
	}
}