ACTOR TK1Rifle : Weapon
{
  Weapon.Kickback 100
  Scale 0.1
  Weapon.AmmoUse 1
	Weapon.AmmoGive 30
	Weapon.AmmoType "TK1Ammo_Bullet"
  Inventory.Icon "TKA3L0"
  Inventory.PickupMessage "Assault Rifle"
  Obituary  "%k's Assault Rifle tore %o to shreds."
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    TKA2 B -1
    Loop
  Ready:
    TK08 A 2 
    TK08 B 2
    TK08 C 2
    TK08 D 2
    TK08 EFGHIJ 2
    TK08 K -1 A_WeaponReady
    Goto Ready+9
  Deselect:
    TK08 Z 2
    TK09 ABCDEF 2
    TK08 F 0 A_Lower
    wait
  Select: 
    TK08 A 0 A_Raise 
    Loop  
  Fire: 
 	TNT1 A 0 A_PlaySound ("Turok1/Weapons/ARFire","Weapon")
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
    TK08 L 2 BRIGHT A_FireBullets(3.0, 3, 1, 10, "BulletPuff")
	TK08 MN 2
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK08 O 2 BRIGHT A_FireBullets(3.0, 3, 1, 10, "BulletPuff")
	TK08 PQ 2
	TNT1 A 0 A_SpawnItemEx("TK1BulletCasing", 30,cos(pitch)*12,sin(-pitch)*10+30, frandom(0.5,1.2),frandom(0.5,1.2),frandom(1.5,2.5))
	TK08 R 2 BRIGHT A_FireBullets(3.0, 3, 1, 10, "BulletPuff")
	TK08 RSTUVXY 2
    Goto Ready+9
  }
}