ACTOR TK2Bow : Weapon
{
  Weapon.Kickback 100
  scale 0.2
  	Weapon.AmmoUse 1
	Weapon.AmmoGive 5
	Weapon.AmmoType "TK2AmmoArrows"
  Tag "Bow"
  Inventory.PickupMessage "Bow"
  Weapon.BobStyle Alpha
  Weapon.BobSpeed 2.0
  Weapon.BobRangeX 0.0
  Weapon.BobRangeY 0.3    
  Obituary  "%o meets %k's blade and died."
  	Inventory.PickupSound "Turok2/Items/PickupWeapon"
	Inventory.Icon "TKA5C0"
  States
  {
  Spawn:
    TKB1 U -1
    Loop
  Ready:
    TK30 A 1 
    TK30 B 1
    TK30 C 1
    TK30 D 1
	TK30 E 2
	TK30 F 1
	TK30 G 2
	TK30 H 1
	TK30 I 2
	TK30 J 1
    TK30 K -1 A_WeaponReady
    Goto Ready+4
  Deselect:
    TK32 G 2
	TK32 H 1
	TK32 I 2
	TK32 J 1
	TK32 K 1
	TK32 L 1
	TK32 M 1
	TK32 N 1
	TK32 O 1
	TK32 P 1
    TK32 P 0 A_Lower
    wait
  Select: 
    TK30 A 0 A_Raise 
    Loop  
  Fire:
    TK30 L 2 A_PlaySound("Turok2/Weapons/BowPull","Weapon")
    TK30 M 1
    TK30 N 1
    TK30 OPQRSTUVXYZ 1
	TK31 ABCDEFGHIJKLMNOP 1
    TK31 Q 2 A_REFIRE
	TNT1 A 0 A_FireCustomMissile ("TK2ArrowSlow")
	TK31 R 2 A_PlaySound("Turok2/Weapons/BowFire","Weapon")
    TK31 S 1
    TK31 T 1  
    TK31 U 1 
    TK31 V 1 A_JumpIfNoAmmo("deselect")
    TK31 X 1
    TK31 Y 1 
    TK31 Z 1
    TK32 ABCDEF 1
     Goto Ready+10
    TK30 T 2  
     Goto Ready+10
    Hold:
    TK31 Q 2  
    TK31 Q 2 A_Refire
    Goto Release
    Release:
	TNT1 A 0 A_FireCustomMissile ("TK2Arrow")
	TK31 R 2 A_PlaySound("Turok2/Weapons/BowFire","Weapon")
    TK31 S 2
    TK31 T 2  
    TK31 U 2 
    TK31 V 2 A_JumpIfNoAmmo("deselect")
    TK31 X 2  
    TK31 Y 2 
    TK31 Z 2
    TK32 ABCDEF 2
     Goto Ready+10
    TK30 T 2  
     Goto Ready+10
  }
}

actor TK2Arrow: Fastprojectile
{
  obituary "%k pinned %o to the wall with arrows."
  radius 8
  height 8
  speed 150
  damage 25
  scale 0.1
  DeathSound "Turok2/Weapons/ArrowHit"
  PROJECTILE
  +FORCEXYBILLBOARD
    +BLOODSPLATTER
  states
  {
  Spawn:
    TF01 A 6
    loop
  Death:
    TF01 A 0 A_SpawnItemEx ("UsedArrow",0,0,5,0,0,0,0,1,0)
    stop	
  }
}

actor TK2ArrowSlow: Fastprojectile
{
  obituary "%k pinned %o to the wall with arrows."
  radius 8
  height 8
  speed 90
  damage 20
  scale 0.1
  DeathSound "Turok2/Weapons/ArrowHit"
  PROJECTILE
  +FORCEXYBILLBOARD
    +BLOODSPLATTER
  states
  {
  Spawn:
    TF01 A 6
    loop
  Death:
    TF01 A 0 A_SpawnItemEx ("UsedArrow",0,0,5,0,0,0,0,1,0)
    stop	
  }
}