Urban Terror 4.1

Ultimate Guide to Configuration and Scripting

Round 1: The Bind

Table of Contents:

  

This is a guild explaining how to "bind" commands in the FPS (First Person Shooter) video game Urban Terror 4.1.  Using theses instructions you will be able to change the controls for your game without the GUI (Graphic User Interface), and you can even dynamically change your commands during game play.

What is a bind?

A "bind" is a way to "bind" a key on your keyboard, mouse or input device to a command in the game. You can control what button is associated with which game commands for example:

bind w "+forward"

This uses the bind command, it tell the game when you press "w" down to do the game action called "+forward".  I belive that every action and variable in the game can be bound to a key.  The syntax for this is as follows

bind x "command"

Where x can be any accessible input device (keyboard, mouse, and joystick) or the code to represent them. The quotes are not required for single commands but I do recommend them.

What Keys or Input Can I Bind

Here is a list of keys (codes to represent them) and inputs that can be bound in the game to a command:

  • a-z
  • `,~,1,2,3,4,5,6,7,8,9,0,-,=,',.,/,\,[,], And the comma it self ","
  • F(1-12): F1, F2, F3...F12)
  • MOUSE(1-14?): All of your crazy mouse buttons (MOUSE1, MOUSE2, MOUSE3....MOUSE14)
  • MWHEELUP = Mouse wheel rolled up
  • MWHEELDOWN = Mouse wheel rolled down
  • SEMICOLON = ;
  • SHIFT = Shift Keys (left or right)
  • ALT = Alternate keys
  • CRTL = Control Key
  • SPACE = ' ' (the space...)
  • ENTER = the enter key
  • CAPSLOCK = Caps lock key
  • TAB = Tab key
  • DEL = Delete
  • BACKSPACE = Backspace
  • ESCAPE = escape
  • PAUSE = Pause|break key
  • SCROLLOCK = Scroll Lock key
  • PRINT = Print Screen key
  • HOME = Home
  • PGUP = Page UP
  • PGDN = Page Down
  • INS = Insert
  • END = End
  • KP_INS = Number Pad 0 key (aka INS)
  • KP_DEL = Number Pad . key
  • KP_END= Number Pad 1
  • KP_DOWNARROW = Number pad 2 (aka down arrow)
  • KP_PGDN = Number pad 3 (aka pag down)
  • KP_LEFTARROW = Number Pad 4
  • KP_5 = Number Pad 5
  • KP_RIGHTARROW = Number Pad 6
  • KP_HOME = Number Pad 7
  • KP_UPARROW = Number Pad 8
  • KP_PGUP = Number Pad 9
  • KP_SLASH = Number Pad /
  • KP_STAR = Number Pad *
  • KP_MINUS = Number Pad -
  • KP_PLUS = Number Pad +
  • KP_ENTER = Number Pad ENTER key
  • LEFTARROW = Left Arrow key
  • DOWNARROW = Down Arrow Key
  • RIGHTARROW = Right Arrow key
  • UPARROW = UP Arrow key
  • 0x00 = that "<" button
  • COMMAND = the apple command button (mac only?)

Wow... that is a lot of available keys... Every key on the keyboard and mouse should be there. I have been told numerous times that Urban Terror does seem to have trouble  working with mice that have more than 3 buttons.  If you are experiencing problems getting mouse buttons to work, you may consider using the software that came with the mouse to have them emulate keys on the keyboard.

 

What Can I do with these keys?

What can you do with binds? Anything you can do in the game and more.  In Appendix B of this guide is the complete list of commands (at last count it is about 20 pages long) that can be used in the console or bound to keys.  Please feel free to look... really.

 

Can I do more than one thing at once?

Yes.  Binds can also execute multiple commands with a single key press. Here is an example:

bind MOUSE1 "+attack; -attack; +attack; -attack;"

Ok, so what does this do? It allows you to press the MOUSE1 button once and have your gun shoot twice (much faster than you can click).  The +attack mode means pull the trigger -attack means let go of the trigger. Notice each command is separated with a semicolon ";".  This is how you tell the console (or your config file) that you are executing a new command on the same line. 

 

Ok I want RADIO BINDS!

Yes.  Another feature that they built into the game is the ability to "bind" radio calls, so you don't have to go through your menu all the time. Here is how it works:

bind j "ut_radio 1 1 Affirmative"

What this does is bind the key "j" to the radio call that says AFFIRMATIVE to all your team mates.  You can do this with all of the radio commands here is the syntax for you:

bind x "ut_radio # # Text_To_Say"

Here is a listing of all the available radio calls click here.

Where x can be any key listed above, the # symbols represent the numbers corresponding to the radio calls They are listed in Appendix A of this guide.  And as an extra nugget for you, Text_To_Say is what is printed on the screen for your team mates to see when you make your radio call. You can include the color codes from the Appendix A to color your text if the server allows it.

  • ^0 = Black
  • ^1 = Red
  • ^2 = Green
  • ^3 = Yellow
  • ^4 = Blue
  • ^5 = Cyan
  • ^6 = Magenta
  • ^7 = White

bind x "ut_radio # # ^0Black, ^1Red, ^2Green, etc

 

 

Conflicting information!

Just like any system when you make changes, you can make problems.  If you bind any key twice, only the last one to be called is recognized by the game so for example:

bind w "+forward"

bind w "+attack"

When you bind a key twice the second over writes the first.  So when you press "w" the game character will +attack. This can cause some pretty annoying problems for people especially when you start making multiple configuration files.

 

Can I do more?

Yes, you can get into scripting and toggles... that is another chapter though. Now that you have read this you should understand what binding is and how to do it to map your key settings to something that you like and is tailored to your playing style.  Consider making a bind to do anything you do regularly, or find time consuming while your playing.

 

Table of Contents:

 


This file was last updated: "November 15, 2009, 11:37 pm"