ACTOR EMPExtra
{
  +NOBLOCKMAP
  +NOGRAVITY
  RenderStyle Add
  Alpha 0.75
  DamageType "BFGSplash"
  States
  {
  Spawn:
    AFX4 IJKLMN 2 Bright
    Stop
  }
}

  ACTOR EMPExtra2: EMPEXTRA
{
  SCALE 0.2
  }

  Actor EMPShot
{
  Radius 11
  Height 8
  Speed 10
  Damage (500)
  RENDERSTYLE ADD
  PROJECTILE
  +NOGRAVITY
  +NOEXTREMEDEATH
  +EXPLODEONWATER
  +DONTREFLECT
  +ExtremeDeath
  SCALE 3
  ReactionTime 139
  Obituary  "%o was erased by %k's PCD999."
  +Friendly
  States
  {
  Spawn:
    AFX4 ABCDEFGH 1 A_CustomMissile("EMPTrail", 3, 0, 0, 1)
    Loop
  Death:
  TNT1 A 0 a_PLAYSOUND("EMPLOOP")
    AFX4 ABCDEFGHABCDEFGHABCDEFGH 4 BRIGHT A_BFGSPRAY("EMPEXTRA",500,80)
	TNT1 A 0 A_PLAYSOUND("EMPBOOM")
	AFX4 I 4 BRIGHT A_Explode(500, 275, 0, 1, 500)
	AFX4 JKLMN 4 BRIGHT
    Stop
  }
}

Actor EMPTrail : BulletPuff
{
  +ClientSideOnly
  RENDERSTYLE ADD
  SCALE 3
  States
  {
  Spawn:
     AFX4 ABCDEFGH 1 BRIGHT
    Stop
  }
}

  ACTOR CyborgCyberPCD999 : Weapon
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 500
  Weapon.AmmoGive 500
  Weapon.AmmoType "Cyborgcells"
  Tag "IMC Plasmatic Channeling Disruptor 999"
    Weapon.BobRangeX 0.2
	Weapon.BobRangeY 0.2
  States
  {
  Ready:
    TRIS A 1 A_WeaponReady
    Loop
  Deselect:
    TRIS AA 1 A_Lower
	TRIS A 0 A_Lower
    Loop
  Select:
    TRIS AA 1 A_Raise
	TRIS A 0 A_Raise
    Loop
  Fire:
   TRIS A 2 OFFSET(0,32) A_PLAYWEAPONSOUND("CYBBFG")
   TRIS C 0 A_GUNFLASH
   TRIS C 2 BRIGHT OFFSET(0,40) A_FIRECUSTOMMISSILE("EMPSHOT")
   TRIS C 2 BRIGHT OFFSET(0,38)
   TRIS B 2 BRIGHT OFFSET(0,36)
   TRIS B 2 BRIGHT OFFSET(0,34)
   TRIS D 5 OFFSET(0,32)
   TRIS A 35 OFFSET(0,32)
    Goto Ready
  Spawn:
    PIST A -1
    Stop
  }
  }