A collection of useful hotkeys (.cfg files) for Unreal Tournament
A place where people can contribute useful hotkeys (or other miscellaneous snippets) for Unreal Tournament.
A hotkey is a keyboard shortcut; a series of one or more commands which you assign to a single key on your keyboard. In UT, you may want a hotkey which switches between teams, for example.
There are several ways to create hotkey commands in UT:
-
In-game
This method can only be used for relatively simple commands. Certain commands can be chained together, separated by a pipe character (
|
) although the limitations of this are unclear.- Press
tab
(or open the in-game console) - Type
set input X command
whereX
is your chosen key andcommand
is the hotkey command
- Press
-
Via your UT settings file
Again, this method can't be used for very complex commands.
- Open
UT/System/User.ini
- Under the
[Engine.Input]
section, specify a hotkey command in the format:X=command
- Open
-
Via aliases
Aliases simply allow you to give a shorter name to a group of commands.
- Open
UT/System/User.ini
- Add a new
Aliases[n]
entry following the same format as existing entries - Bind a key (as above) with the name of your new alias as the command
- Open
-
Via
.cfg
filesThis is the most flexible method, allowing you to execute multiple commands from a single key. Keys can also be re-bound using multiple
.cfg
files to effectively create "toggleable" hotkeys.- Open
UT/System/
- Create a new text file called
example.cfg
- Edit and save the file, adding commands (one per line)
- Execute the command in-game using
exec example.cfg
(or by binding this to a key as above)
- Open
If the hotkey is in the form of a .cfg
file, simply copy that file to your UT/System/
folder.
While in-game, run the hotkey by pressing tab
and typing exec example.cfg
where example
is the name of the hotkey file.
You can also bind this to a keyboard key using set input X exec example.cfg
to create your hotkey.
A "toggle" is something which switches itself back and forth. A toggle key, therefore, could be used to switch UT's music on/off using a single key.
To make a hotkey toggleable, you need to use multiple .cfg
files, and in each file, re-bind the same key to the other .cfg
file.
For an example of this, see the "Toggle Music" folder in this repository.