ACTOR UACMarineRailgun : DoomWeapon 
{
  Weapon.SelectionOrder 100
  Weapon.AmmoUse 20
  Weapon.AmmoGive 40
  Weapon.AmmoType "Cell"
  Inventory.PickupMessage "$GOTPLASMA"
  WEAPON.SLOTNUMBER 6
  Inventory.RestrictedTo "UACMarineClass"
  Tag "UAC Trans-Located Plasma Channeler - X5 Yield"
  States
  {
     Ready:
  TNT1 A 0 A_PLAYWEAPONSOUND("PLSUP")
    UACR D 2 OFFSET(9,128)
	UACR D 2 OFFSET(7,96)
	UACR A 2 OFFSET(5,72)
	UACR A 2 OFFSET(3,48)
	UACR A 2 OFFSET(1,36)
    GOTO READY2
	Ready2:
   UACR A 1 A_WeaponReady
    Loop
  Deselect:
    UACR AA 0 A_Lower
	UACR A 1 A_Lower
    Loop
  Select:
    UACR AA 0 A_Raise
	UACR A 0 A_Raise
    Loop
  Fire:
    TNT1 A 0 A_PLAYWEAPONSOUND("VPBSHOT1")
	UACR A 1 OFFSET(0,32)
	UACR B 0 A_GUNFLASH
	UACR B 2 BRIGHT OFFSET(0,38) A_RailAttack(250,0,1,"NONE", "00 00 00", RGF_FULLBRIGHT|RGF_SILENT,0,"None",0,0,0,20,1,0,"RAILBALL")
	UACR C 2 BRIGHT OFFSET(0,35)
	UACR A 3 OFFSET(0,34)
	UACR A 9 OFFSET(0,32)
	UACR A 2 OFFSET(-1,32)
	UACR A 2 OFFSET(-3,32) A_PLAYWEAPONSOUND("VPBFMODE")
	UACR D 2 OFFSET(-3,32)
	UACR D 2 OFFSET(-4,32)
	UACR E 2 OFFSET(-4,32)
	UACR E 10 OFFSET(-5,32)
	UACR E 2 OFFSET(-4,32)
	UACR D 2 OFFSET(-4,32)
	UACR D 2 OFFSET(-3,32)
	UACR A 2 OFFSET(-3,32)
	UACR A 2 OFFSET(-1,32)
	UACR A 5 OFFSET(0,32)
    Goto Ready2
  Spawn:
    PLAS A -1
    Stop
  }
}

ACTOR RAILBALL
{
  Projectile
  +RANDOMIZE
  RenderStyle Add
  Alpha 0.75
  SCALE 0.3
  Obituary "$OB_MPBFG_BOOM"
  States
  {
  Spawn:
    XPL1 A 1 Bright
    Goto Death
  Death:
    XPL1 BCDEFGHIJKLMNOP 1 BRIGHT
    Stop
  }
  }