Actor PulseCannonCDIA : Weapon
{
  obituary "%o was vapourised by %k's plasma beam."
  radius 20
  height 16
  Inventory.PickupSound "weapons/pickuphr"
  Weapon.AmmoUse 1
  Weapon.AmmoGive 40
  Weapon.AmmoType1 "NewCell"
  Weapon.PreferredSkin "PlasmaRifle-Marine"
  inventory.pickupmessage "You got the Pulse Cannon!"
  states
  {
  Ready:
    TNT1 A 0 A_PlaySound("Weapons/pulsecan",CHAN_AUTO,0.5)
    PZC4 ABCDEFGHI 3 A_WeaponReady
    loop
  Deselect: 
    TNT1 A 0 A_PlayWeaponSound("weapons/weapondown")
    PZC4 A 1 A_Lower
    loop
  Select:
    PZC4 A 1 A_Raise
    loop
  Fire:
    PZC4 A 3 A_FireCustomMissile (PulseCannonPhazo, 0, 1, 0, 0, 0)
    TNT1 A 0 A_PlaySound("Weapons/plasmaca")
    PZC4 A 1 A_GunFlash
    PZC4 A 1 A_ReFire
    goto Ready
  Flash:
    PZC4 X 2 bright A_Light1
    PZC4 Y 3 bright A_Light2
    PZC4 A 0 bright A_Light0
    stop
  Spawn:
    PZZU A -1
    Stop
  }
}

Actor PulseCannonPhazo : FastProjectile
{
 Height 6
 Radius 6
 Damage 10
 Species "Player"
 DamageType "Marine"
 +RIPPER
 +THRUSPECIES
 +DONTHARMSPECIES
 +DONTHURTSPECIES
 +NoExplodeFLoor
 Speed 150
 Scale 1.3
 Renderstyle Add
  States
   {
    Spawn:
	 PPB1 ABCB 1 Bright //A_Weave(0,4,0,2)
	 Loop
	Death:
	 TNT1 A 0
	 TNT1 A 0 A_SpawnItemEx("PurpleParticleSpawner", 0, 0, 0, 0, 0, 0, 0, 128) 
	 TNT1 AAA 0 A_CustomMissile("Kaboom8", 0, 0, random(0,360), 2, random(0,360))
	 TNT1 AAA 0 A_CustomMissile("SmokeFX4", 0, 0, random(0,360), 2, random(0,360))
	 PPB1 DDFFGGGGG 1 Bright A_FadeOut
	 Stop
   }
}
