// --------------------------------------------------------------------------
//
// Taser (Demo weapon)
//
// --------------------------------------------------------------------------





ACTOR "Taser_RAT" : Taser //5010
{
	+POWERED_UP 
	Weapon.SisterWeapon Taser

	Weapon.SelectionOrder 1900
	obituary "%k killed %o with Taser."
	  weapon.ammotype "TaserAmmo"
  weapon.ammouse 1
  weapon.ammogive 1
	+WEAPON.WIMPY_WEAPON
	+WEAPON.MELEEWEAPON
	+INVENTORY.UNDROPPABLE
	Inventory.Pickupmessage "Picked up a Taser!"
  inventory.pickupsound "misc/w_pkup"
	Tag "Taser"
	Weapon.UpSound "Taser/Ready"
	//AttackSound "Taser/Slash" 
	Scale 0.18

	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 ("Taser/Ready")
		Goto Select+6	
		*/


	Fire:
		W37B J 1 A_JumpIfNoAmmo("NoShot")


TNT1 A 0 A_FireCustomMissile("WeaponSmokePuff2",0,0,11,4)
		TNT1 A 0 A_PlayWeaponSound("Taser/Fire")
		W37D A 1 A_CustomPunch(128, 0, 0, "TaserPuff", 192)//A_GunFlash
		TNT1 A 0 A_TakeInventory("TaserAmmo", 1)
		W37D BCDEFGHIJKLMNOPQR 1 A_WeaponReady(WRF_NOFIRE|WRF_NOSWITCH)
		W37B J 1 A_JumpIfNoAmmo("SetWeapon")
		Goto Ready

             SetWeapon:  
			 PreviousWeapon:
		TNT1 A 6 //A_PlaySound("HEGRENADE/Ready")
	TNT1 A 0 ACS_NamedExecuteAlways("HSPreviousWeapon", 0, 0, 0, 0)
		TNT1 A 3 //A_PlaySound("HEGRENADE/Ready")
        Goto Ready	




	}
}

