ACTOR Dualshot : Weapon
{
	Weapon.AmmoUse 			1
	Weapon.AmmoGive 		50
	Weapon.AmmoType			"Dualshot_Ammo"
	Inventory.PickupMessage		"You got the Dualshot!"
	
	+WEAPON.NOAUTOFIRE
	
	Weapon.UpSound			"w7/load"
	
	States
	{
		Ready:
			X4E1 A 5 A_WeaponReady
			goto Ready
		Deselect:
			X4E1 A 1 A_Lower
			X4E1 A 0 A_Lower
			goto Deselect
		Select:
			X4E1 A 1 A_Raise
			X4E1 A 0 A_Raise
			goto Select
		Fire:
			X4E1 B 2
			X4E1 C 2 A_PlaySound("w2/fire2", CHAN_WEAPON)
			X4E1 D 0 A_FireCustomMissile("Dualshot_Nail", 0, 1, -8, 0, 0)
			X4E1 D 0 A_FireCustomMissile("Dualshot_Nail", 0, 1, 8, 0, 0)
			X4E1 E 2
			X4E1 A 2
			X4E1 A 0 A_Refire
    			goto Ready
	}
}

ACTOR Dualshot_Razor : Weapon
{
	Weapon.AmmoUse 			1
	Weapon.AmmoGive 		50
	Weapon.AmmoType			"Dualshot_Ammo"
	Inventory.PickupMessage		"You got the Dualshot!"
	
	+WEAPON.NOAUTOFIRE
	
	Weapon.UpSound			"w7/load"
	Weapon.ReadySound		"weapons/sawidle"
	
	States
	{
		Ready:
			X4E3 A 5 A_WeaponReady
			goto Ready
		Deselect:
			X4E3 A 1 A_Lower
			X4E3 A 0 A_Lower
			goto Deselect
		Select:
			X4E3 A 1 A_Raise
			X4E3 A 0 A_Raise
			goto Select
		Fire:
			X4E3 B 1
			X4E3 C 1 A_PlaySound("w2/fire2", CHAN_WEAPON)
			X4E3 D 0 A_FireCustomMissile("Dualshot_RazorBolt", 0, 1, -8, 0, 0)
			X4E3 D 0 A_FireCustomMissile("Dualshot_RazorBolt", 0, 1, 8, 0, 0)
			X4E3 E 15
			X4E3 EA 1
			X4E3 A 0 A_Refire
    			goto Ready
	}
}

ACTOR Dualshot_Ammo : Ammo
{
	Inventory.Icon "DDAMA0"
	Inventory.Amount 150
	Inventory.MaxAmount 150
	
	Ammo.BackpackAmount 300
	Ammo.BackpackMaxAmount 300
	
	States
	{
		Spawn:
			GRNS A -1
			stop
	}
}