TapWeapon.cs
Version 1.1.5
by UberGuy (FT) - uberguy@tribes2.org
11/20/2001

REQUIRES: Writer's Support Pack
===============================
http://uberguy.tribes2.org/files/support/support.vl2

Update 1.1.6 (10/17/02)
============
Fixed aother prefs loading problem. Blah!

Update 1.1.5 (10/14/02)
============
Fixed a prefs loading problem. Props to Halide for finding it.

Update 1.1.4 (09/29/02)
============
Whoops, stupid mistake made it through my tests, causing the GUI to be b0rked.

Update 1.1.3 (09/27/02)
============
Made weapon select code more robust for TR2 and just in general. You cannot
select the TR2 Target Laser using TapWeapon. Let me know if this is a problem!

Update 1.1.3 (09/27/02)
============
Fixed some continuing problems working with Team Rabbit 2.

Update 1.1.1 (09/25/02)
============
Thanks to SquirrelOfDeath for code to make the standard T2 weapon names work
in Team Rabbit 2.

Update 1.1
==========
Gah, my own weapon_list.cs script in Writer's support pack has a bug in it.
I added the missing command to TapWeapon as a workaround until I get support.vl2
updated.

Update 1.0
==========
This T2 script is similar to scripts by Wizard (weaponkey) and Crunchy
(doubleweapon). It allows you to bind six weapon "slot" keys to two weapons.
It's primary differences are it has quick response time and is mod-friendly.

Under the script browser you will find a control GUI for this script. On this
GUI you will be able to select any of the weapons available on the server
where you are playing. You won't be able to select any weapons until you join
a server. On the upside, this is mod-friendly - it will let you select non-
base weapons and bind them to the six slots.

Once you have bound up to two weapons to each slot, you can access the weapons
in-game by pressing the keys you have bound to those slots. You use the normal
T2 "Weapon Slot x" binds in the control menu. How these keys behave depends on
whether you selected the checkbox for "Key Alternates Weapons" or not.

Non-alternating mode:
======================
Pressing a slot's key once brings up the primary and 'double-clicking' it
brings up the secondary weapon. For example:

Assume you've bound Grenade Launcher (primary) and Mortar (secondary) to Slot
1, and Slot one is bound to the '1' key.

Pressing '1' brings up your Grenade Launcher. Pressing it again does nothing
UNLESS you press it twice in the time set in the "Tap Time (ms)" field.
Pressing '1' twice in that time gives you the second weapon, in this case the
Mortar. Pressing '1' again gives you the GL again.  Pressing '1' again but
after the time given won't change the weapon.

Alternating mode:
======================
In this mode pressing the slot key toggles back and forth between the two
weapons. In the example above, pressing '1' while the GL is out gives you the
Mortar, and pressing '1' while the Mortar is out gives you the GL.


Once you have selected a weapon, the script remembers that weapon's name until
you change it. That name will display in the dropdown even when you restart
T2 and haven't connected to a server. These weapons will remain bound to these
slots, and will work on any server where weapons with those names exist.


TO INSTALL:
===========
Place tapWeapon.vl2 anywhere under Tribes2\GameData\base.
Play T2!  The script is configured from Writer's script browser GUI.
You must have the latest version of Writer's support pack for this script to
work.

Enjoy!
