ACTOR TK2MPPlasmaRifle : Weapon
{
	Weapon.Kickback 100
		Scale 0.1
	Inventory.PickupMessage "Plasma Rifle (MP)"
	Tag "Plasma Rifle (MP)"
  Weapon.BobStyle Alpha
  Weapon.BobSpeed 2.0
  Weapon.BobRangeX 0.0
  Weapon.BobRangeY 0.3 	
		  obituary "%o got seared by %k."
		  Inventory.PickupSound "Turok2/Items/Pickup"
		  Weapon.AmmoType1 "TK2MPSmallPlasmaAmmo"
		  		  Weapon.AmmoType2 "TK2MPSmallPlasmaAmmo"
	Weapon.AmmoUse1 5
	Weapon.AmmoUse2 5
	Weapon.AmmoGive 50
	Inventory.Icon "TKA2E0"
	States
	{
		Spawn:
		TKQ6 I -1
		Stop
	Ready:
    TK07 A 1
	TK07 B 1
	TK07 C 1
	TK07 D 1
	TK07 E 1
	TK07 F 1
	TK07 G 2
	TK07 H 1
	TK07 I 2
    TK07 J -1 A_WeaponReady
    Goto Ready+7
	Deselect:
		TK07 X 2
		TK07 Y 1
		TK07 Z 2
		TK08 A 1
		TK08 B 1
		TK08 C 1
		TK08 D 1
		TK08 E 1
		TK08 F 1
		TK09 A 0 A_Lower
		wait
			Select:
		TK19 A 0 A_Raise
		Loop
	Fire:
		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaRifle","Weapon")
		TK07 K 2 A_FireCustomMissile ("TK2MPPlasmaShot")
		TK07 L 2 
		TK07 M 2
		TK07 NOPQRST 1
		TK07 UV 1
		Goto Ready+9
	 AltFire:
		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaRifleAlt","Weapon")
		TK07 K 2 A_FireCustomMissile("TK2MPPlasmaSnipe")
		TK07 L 2
		TK07 M 2
		TK07 NOPQRST 1
		TK07 UV 1
		Goto Ready+9
	}
}

  ACTOR TK2MPPlasmaShot: Fastprojectile
{   
  Speed 100
  Damage 8
  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
      obituary "%o got seared by %k."
   +FORCEXYBILLBOARD
   States
   {
   Spawn:
   		TNT1 A 0 A_PlaySound ("Turok2MP64/Weapons/PlasmaShot")
      TF29 A 2 bright
	  NULL A 0 A_EXPLODE(20,40)
      TF29 BCDEF 1 A_FadeOut(0.05)
      stop
   }
} 

Actor TK2MPPlasmaSnipe: Fastprojectile
{
	Height 1
	Radius 1
	Speed 5000
  obituary "%o got seared by %k."
	Damage 19
	Projectile
	+FORCEXYBILLBOARD
	+BLOODSPLATTER
	states
		{
		Spawn:
			TNT1 A 1
			loop
		Crash:
		Death:
				TNT1 BBBB 0 BRIGHT A_SpawnItem("GreenFlare",0,0)	
		TNT1 AAAAAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 0 A_CustomMissile ("PlasmaParticle", 0, 0, random (0, 360), 2, random (0, 360))
		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
   Scale 0.20
   //ALPHA 0.50
   +FORCEXYBILLBOARD
   States
   {
   Spawn:
      TF05 ABCDEFGHIJKLMNOP 2 bright
      stop
   }
} 

ACTOR TK2MPPlasmaRiflePickup : Custominventory
{
   Scale 0.1
	Inventory.PickupSound "Turok2/Items/Pickup"
Inventory.PickupMessage "Plasma Rifle (MP)"
   States
   {
   Spawn:
	 TKA1 D -1
	  loop
   Pickup:
	  TNT1 A 0 A_GiveInventory("TK2MPPlasmaRifle")
	  TNT1 A 0 A_PlaySound ("Turok2/Voice/PlasmaRifleSniper")
	  stop
   }
}