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


ACTOR "AWP_RAT" : AWP //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon AWP

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "338magAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 10
	obituary "%k killed %o with AWP."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Picked up an AWP."
	Tag "AWP"
	Weapon.UpSound "AWP/Ready"
	//AttackSound "AWP/Fire" 
	Scale 0.125
	//+NOAUTOFIRE

	States
	{

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


	Fire:
	W03F G 0 A_JumpIfNoAmmo("Ready")
	TNT1 A 0 A_ZoomFactor (1.0)	
	TNT1 A 0 ACS_ExecuteAlways(798, 0, 200, 0, 0)//Weapon Weight
	TNT1 A 0 A_JumpIfInventory("IsBot",1,"BotFire")
		W03D A 1 A_GunFlash
		W03D B 1 A_WEAPONREADY(WRF_NOFIRE)
		W03D C 1 A_WEAPONREADY(WRF_NOFIRE)
		//W03D D 1

		//TNT1 A 0 A_Refire
		W03D DEFGHIJKLMNOPQRSTUVWXYZ 1 A_WeaponReady(WRF_NOFIRE)
		TNT1 A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,12,-6)
		W03E ABCDEFGHIJKL 1 A_WeaponReady(WRF_NOFIRE)
		W03E MNOPQRSTUVWXYZ 1 A_WeaponReady(WRF_NOFIRE)

		W03F A 1 A_WeaponReady(WRF_NOFIRE)
//		W03F A 1 A_WeaponReady
//		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
//		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W03F B 1 A_Refire
		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W03F C 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W03F D 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W03F E 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W03F F 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("AWPwillzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		Goto Ready
		
		
	
		
		
		
		



	}
}