I was talking to Desert Eagle the other day and I thought this would be a useful topic for everyone.
I'm talking about key binds =D Yeah! These are the basic key binds. There are more complex commands, but I don't really know them too well. I'll add more information as I come across things.
A bind is a little bit of code you type into the autoexec.cfg file that sets a key to do an action or to type a line of text into the chat. The autoexec.cfg file can be found in the UrbanTerror\q3ut4 directory. You'll want to right click on the file and you can open it in any text editing program you like. I prefer notepad. Here is what my set up is currently:
- Code:
-
bind [ "ut_radio 3 3 I need a medic! Status: $health Located: $location"
bind ] "ut_radio 9 9 Stellar!"
bind p "ut_radio 9 6 No problem!"
bind . "ut_radio 9 7 Kill thief!!"
bind / "say Go to ^1duckofdeath.darkbb.com/ to join."
bind , "ut_radio 2 5 Cover me! I'm at $location."
bind 0 "ut_itemdrop kevlar"
bind 9 "ut_itemdrop flag"
bind k "ut_radio 5 1 Enemy camping at $location"
bind l "ut_radio 5 5 Enemy incoming at $location"
Making BindsBasically you type
- Code:
-
bind [i]key command[/i]
In making radio binds, the two numbers correspond with the two numbers typed ingame for the selected call. If you wish to change the text associated with a specific radio bind, type it after the numbers.
- Code:
-
bind o "ut_radio [i]# #[/i]
If you wish to say something to everyone type
- Code:
-
bind [i]key[/i] "say [i]text[/i]"
If you wish to say something to only your team, type say_team instead of say.
If you wish to drop an item type
- Code:
-
bind [i]key[/i] "ut_itemdrop [i]item[/i]"
This can be useful for dropping kevlars if you wish to increase run/jumping time. Also, if you wish to hand the flag off to another player this can also be used. You can also drop a weapon by typing ut_weapdrop instead of ut_itemdrop. If you create a weapon drop bind, nothing is needed where it says item.
If you wish to toggle 2 weapons type
- Code:
-
bind [i]key[/i] "ut_weaptoggle [i]weapon weapon[/i]"
You can specify primary, secondary, sidearm, knife, grenade, bomb. This can be used so that the you do not have to go through all your weapons to choose which you wish to switch to if you run out of ammo, want better aim, etc.
Notes- // typed before a line of text tells the game to ignore that line. Thus, these lines can be used for organization.
- You can bind one key to multiple console commands using a semi-colon ( ; ) between commands.
- Typing wait between semi-colons tells the game to wait a brief period of time before executing the next console command. Example:
- Code:
-
bind o "ut_radio 6 9 I've got a hot potato!;wait;ut_itemdrop flag"
- "ut_radio lol" is a hidden radio call. A cycle of 3 laughs.
ColorsTo change the color of your text there are numbers, each corresponding to a color. These only work for ut_radio and say_team. The ^number goes in front of text, and all text following that number will be changed that color unless changed by another number.
^1 |
Red^2 |
Green^3 |
Yellow^4 |
Blue^5 |
Cyan^6 |
Magenta^7 |
White^8 |
BlackMiscellaneous$location [types your location]
$status [types your health status]
$weapon [types your weapon]
$crosshair [types name of player under your crosshair]