// --------------------------------------------------------------------------
//
// SSG08 (Weapon)
//
// --------------------------------------------------------------------------




ACTOR "SSG08_RAT" : SSG08 //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon ssg08

//+AMMO_OPTIONAL

	Weapon.SelectionOrder 1900

  weapon.ammotype1 "762mmAmmo"
  weapon.ammouse1 1
  weapon.ammogive1 10
	obituary "%k killed %o with SSG08."
	+WEAPON.WIMPY_WEAPON
	Inventory.Pickupmessage "Picked up an SSG08."
	Tag "SSG08"
	Weapon.UpSound "SSG08/Ready"
	//AttackSound "SSG08/Fire" 
	Scale 0.115
	//+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 EFGHIJKLMNOPQRS 1 A_WeaponReady(WRF_NOFIRE)
//		W19H LMNOPQRSTUVWXYZ 1 A_WeaponReady(WRF_NOFIRE)
		Goto Select_RAT

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

	Fire:
	W36F G 0 A_JumpIfNoAmmo("Ready")
	TNT1 A 0 A_ZoomFactor (1.0)	
	TNT1 A 0 A_JumpIfInventory("IsBot",1,"BotFire")
		W36D A 1 A_GunFlash
		W36D B 1 A_WEAPONREADY(WRF_NOFIRE)
		W36D C 1 A_WEAPONREADY(WRF_NOFIRE)
//		W36D D 1

//		TNT1 A 0 A_Refire
		W36D DEFGHIJKLMNOPQRSTUVWXYZ 1 A_WeaponReady(WRF_NOFIRE)
		TNT1 A 0 A_FireCustomMissile("RifleCaseSpawn",5,0,12,-6)
		W36E ABCDEFGHIJKL 1 A_WeaponReady(WRF_NOFIRE)
		W36E MNOPQRS 1 A_WeaponReady(WRF_NOFIRE)



		W36E T 1 A_WeaponReady(WRF_NOFIRE)
//		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
//		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E U 1 A_Refire
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E V 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E W 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E X 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E Y 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36E Z 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")


		//W36F A 1 A_WeaponReady(WRF_NOFIRE)
		W36F A 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F B 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F C 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F D 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F E 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F F 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F G 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F H 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F I 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F J 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F K 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F L 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F M 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F N 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F O 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F P 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F Q 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")
		W36F R 1 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("SSG08willzoom",1,"ToZoomAfterFire")
		TNT1 A 0 A_JumpIfInventory("IsAltFire",1,"ToZOOM")

		Goto Ready
		
		
	
	
	}
}