ACTOR TK2MPPlasmaRifle : Weapon
{
	Weapon.Kickback 100
		Scale 0.5
	Inventory.PickupMessage "Plasma Rifle"
		  obituary "%o got seared by %k."
		  Inventory.PickupSound "Turok2MP64/Items/Pickup"
		  Weapon.AmmoType1 "TK2MPSmallPlasmaAmmo"
		  		  Weapon.AmmoType2 "TK2MPSmallPlasmaAmmo"
	Weapon.AmmoUse1 5
	Weapon.AmmoUse2 5
	Weapon.AmmoGive 50
	Inventory.Icon "TKA2E0"
	States
	{
		Spawn:
		TKA1 D -1
		Stop
	Ready:
    TK06 ABCDEFGHI 2 
    TK06 J -1 A_WeaponReady
    Goto Ready+7
	Deselect:
		TK06 XYZ 2
		TK07 ABCDE 2
		TK09 A 0 A_Lower
		wait
			Select:
		TK19 A 0 A_Raise
		Loop
	Fire:
		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaRifle","Weapon")
		TK06 K 2
		TK06 L 2 A_FireCustomMissile ("TK2MPPlasmaShot")
		TK06 M 2
		TK06 NOPQRST 1
		TK06 UV 1
		Goto Ready+9
	 AltFire:
		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaRifleAlt","Weapon")
		TK06 K 2
		TK06 L 2 A_FireCustomMissile("TK2MPPlasmaSnipe")
		TK06 M 2
		TK06 NOPQRST 1
		TK06 UV 1
		Goto Ready+9
	}
}

  ACTOR TK2MPPlasmaShot: Fastprojectile
{   
  Speed 100
  Damage 45
  Scale 0.50
      radius 8
  height 8
  Projectile
   obituary "%o got seared by %k."
  +FORCEXYBILLBOARD
  +RANDOMIZE
  DeathSound "Turok2MP64/Weapons/PlasmaRifleShot"
  States
  {
  Spawn:
    TF28 A 2
    loop
  Death:
    NULL A 0 A_Scream
    NULL A 4 bright A_Spawnitem("TK2MPPlasmaShotBoom")
    stop
  }
}

 ACTOR TK2MPPlasmaShotBoom
{   
   Radius 2
   Height 2
   Speed 0
   Scale 0.20
   PROJECTILE
   RENDERSTYLE Add
   //ALPHA 0.50
   +FORCEXYBILLBOARD
   States
   {
   Spawn:
   		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaShot")
      TF29 A 2 bright
      TF29 BCDEF 1 A_FadeOut(0.05)
      stop
   }
} 

Actor TK2MPPlasmaSnipe: Fastprojectile
{
	Height 1
	Radius 1
	Speed 500
  obituary "%o got seared by %k."
	Damage 39
	Projectile
	+FORCEXYBILLBOARD
	+NOEXTREMEDEATH
	states
		{
		Spawn:
			TNT1 A 1
			loop
		Crash:
		Death:
		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaRifleShot")
 TNT1 A 0 A_SpawnItemEx("TK2MPAltPlasmaRifleShotBoom",0,0,0,0,0,0,0,128,0)
			stop
		}
		
}

ACTOR TK2MPAltPlasmaRifleShotBoom
{   
   Radius 2
   Height 2
   Speed 0
   PROJECTILE
   //ALPHA 0.50
   +FORCEXYBILLBOARD
   States
   {
   Spawn:
      TF05 ABCDEFGHIJKLMNOP 2 bright
      stop
   }
} 