ACTOR CyborgCyberRailRifle : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 100
  Weapon.AmmoGive 100
  Weapon.AmmoType "Cyborgcells"
  Tag "IMC Ionized Lazer Rifle Module"
  Obituary  "%o got gibbed by %k's railgun."
    Weapon.BobRangeX 0.2
	Weapon.BobRangeY 0.2
	Inventory.RestrictedTo "CyborgClass"
  States
  {
  Ready:
    CRAL CDE 1 A_WeaponReady
    Loop
  Deselect:
    CRAL CC 1 A_Lower
	CRAL C 0 A_Lower
    Loop
  Select:
   CRAL CC 1 A_Raise
	CRAL C 0 A_Raise
    Loop
  Fire:
    TNT1 A 0 A_PLAYWEAPONSOUND("CYBRAIL")
	CRAL A 0 A_GUNFLASH
	CRAL A 2 BRIGHT OFFSET(0,38) A_RailAttack(500,0,1,"NONE", "00 00 00", RGF_FULLBRIGHT|RGF_SILENT,0,"CyborgPuff",0,0,0,20,1,0,"EMPExtra2")
	CRAL B 2 BRIGHT OFFSET(0,40)
	CRAL F 2 OFFSET(0,42)
	CRAL F 2 OFFSET(0,40)
	CRAL F 2 OFFSET(0,38)
	CRAL F 2 OFFSET(0,36)
	CRAL F 2 OFFSET(0,34)
	CRAL F 20 OFFSET(0,32)
	CRAL CDE 1
    Goto Ready
  Spawn:
    PIST A -1
    Stop
  }
  }
  
  Actor CyborgPuff
  {
  +FoilInvul
  }