tutorials/urban_terror/gear_cvar.1282582081.txt.gz · Last modified: 2010/08/23 18:48 by Samtron

gear cvar

This is an old revision of the document!


The current gear setup is stored in a q3config.cfg file. The combination of G36, Desert Eagle, Silencer, Kevlar Vest and Medkit has the following code:

seta gear “GMAARUT”

Every weapon and item has its own code and the combination must be in a specific order. All possible gear key assignments are explained at http://www.urbanterror.info/docs/texts/120/#3.

Simple Gear Setup Binds

To avoid clicking in the menu for every weapon change, different gear combinations can be bound to a key in your own config file:

bind 8 gear GMAARUT
bind 9 gear GLAAVUT
bind 0 gear GZIAWTA

Now the gear combination with G36 can be chosen with through key 8, another combination with LR300 can be chosen through 9 and the last combination with SR8 by the key 0.

Advanced Switchable Gear Setup Script

This can be enhanced to a switchable gear setup, so that one key can toogle different gear setups:

seta gear “GMAARUT”
set gear_g36_1 “set gear_g36 vstr gear_g36_2; gear GMAARUT; ut_echo ^7G36 ^1+ ^7Kevlar ^1+ ^7Silencer ^1+ ^7MedKit”
set gear_g36_2 “set gear_g36 vstr gear_g36_3; gear GMAARWT; ut_echo ^7G36 ^1+ ^7Kevlar ^1+ ^7Helmet ^1+ ^7MedKit”
set gear_g36_3 “set gear_g36 vstr gear_g36_1; gear GMAARWU; ut_echo ^7G36 ^1+ ^7Kevlar ^1+ ^7Helmet ^1+ ^7Silencer”
set gear_g36 “vstr gear_g36_1”
bind 8 “vstr gear_g36”

This script will rotate through different weapon combinations with G36 b ythe key 8 and output a shirt descriptive text to the console display. http://q3ut3.free.fr/gear/ provides an online tool to choose different gear setups and creates config script out of it.