Actor IonBall
{
  Radius 13
  Height 8
  Speed 40
  Damage 5
  Projectile
  +RANDOMIZE
  RenderStyle Add
  Alpha 0.75
  DeathSound "weapons/plasmax"
  Obituary "%o was melted by %k's plasma pistol."
  Decal RailScorchLower
  States
  {
  Spawn:
    IONB A 1 Bright
    Loop
  Death:
    IONB BCDEFGHIJKL 2 Bright
    stop
  }
}

ACTOR UACMarinePlasmaPistol : Weapon
{
  Weapon.SelectionOrder 1900
  Inventory.Pickupmessage "You got the Plasma Pistol!"
  Tag "Plasma Pistol"
  Inventory.RestrictedTo "UACMarineClass"
  States
  {
  Ready:
  TNT1 A 0 A_PLAYWEAPONSOUND("PISTGET")
    PLPI A 1 OFFSET(9,128)
	PLPI A 1 OFFSET(7,96)
	PLPI A 1 OFFSET(5,72)
	PLPI A 1 OFFSET(3,48)
	PLPI A 1 OFFSET(1,36)
    GOTO READY2
	Ready2:
    PLPI A 1 A_WeaponReady
    Loop
  Deselect:
    PLPI AA 0 A_Lower
	PLPI A 1 A_Lower
    Loop
  Select:
    PLPI AA 0 A_Raise
	PLPI A 0 A_Raise
    Loop
  Fire:
    PLPI B 1 OFFSET(0,36)
	TNT1 A 0 A_PLAYWEAPONSOUND("DSPLAS")
	PLPI C 2 OFFSET(0,37) BRIGHT A_fireplasma
	PLPI D 2 OFFSET(0,42)
	PLPI D 2 OFFSET(0,41)
    PLPI A 2 OFFSET(0,39)
	PLPI A 1 OFFSET(0,37)
	PLPI A 2 OFFSET(0,36) 
    Goto Ready2

  Spawn:
    PLAP A -1
    Stop
  }
}
