ACTOR PlasmaGun : Weapon
{
	Weapon.AmmoUse			1
	Weapon.AmmoGive 		50
	Weapon.AmmoType			"Cell"
	Inventory.PickupMessage		"You got the Plasma Gun!"
	Obituary			"%o got melted by %k's plasma balls of steel"
	
	Weapon.UpSound			"w/load6"
	AttackSound			"x2/fire1"
	
	States
	{
		Ready:
			PLSG A 1 A_WeaponReady
			goto Ready
		Deselect:
			PLSG A 1 A_Lower
			PLSG A 0 A_Lower
			goto Deselect
		Select:
			PLSG A 1 A_Raise
			PLSG A 0 A_Raise
			goto Select
		Fire:
			PLSG A 3 A_FirePlasma
			X2E1 A 20 A_Refire
			goto Ready
		Flash:
			PLSF A 4 Bright A_Light1
			goto LightDone
			PLSF B 4 Bright A_Light1
			goto LightDone
	}
}

ACTOR PlasmaGun_Advanced : Weapon
{
	Weapon.AmmoUse			1
	Weapon.AmmoGive 		50
	Weapon.AmmoType			"Cell"
	Inventory.PickupMessage		"You got the Plasma Gun!"
	Obituary			"%o got melted by %k's plasma balls of steel"
	
	Weapon.UpSound			"w/load6"
	
	States
	{
		Ready:
			X2E2 A 1 A_WeaponReady
			goto Ready
		Deselect:
			X2E2 A 1 A_Lower
			X2E2 A 0 A_Lower
			goto Deselect
		Select:
			X2E2 A 1 A_Raise
			X2E2 A 0 A_Raise
			goto Select
		Fire:
			X2E2 BC 7 A_FireCustomMissile("PlasmaProjectile_Advanced", 0)
			X2E2 A 6 A_Refire
			goto Ready
	}
}

ACTOR PlasmaGun_Spread : Weapon
{
	Weapon.AmmoUse			1
	Weapon.AmmoGive 		50
	Weapon.AmmoType			"Cell"
	Weapon.AmmoUse2			1
	Weapon.AmmoGive2		50
	Weapon.AmmoType2		"Cell"
	Inventory.PickupMessage		"You got the Plasma Gun!"
	Obituary			"%o got melted by %k's plasma balls of steel"
	
	Weapon.UpSound			"w/load6"
	
	States
	{
		Ready:
			X2E2 A 1 A_WeaponReady
			goto Ready
		Deselect:
			X2E2 A 1 A_Lower
			goto Deselect
		Select:
			X2E2 A 1 A_Raise
			goto Select
		Fire:
			X2E2 BC 4 A_FireCustomMissile("PlasmaProjectile_Spread",0,1,0,0,0,0)
			X2E2 A 3 A_Refire
			goto Ready
		AltFire:
			X2E2 BC 4 A_FireCustomMissile("PlasmaProjectile_Spread2",0,1,0,0,0,0)
			X2E2 A 3 A_ReFire
			goto Ready
	}
}