Overview
I briefly touched on this in my Quake 2 Manual, but I wanted to go a little more in depth about it. There is a lot that can be done in rearguards to custom launching games of Quake 2 both single and multiplayer. And getting the most out of your keyboard bindings.
Console Commands
There are hundreds of different console commands, and I have no desire to bother you will all of them here. Instead I will list the most used, and provide a link to a complete list here[www.eecis.udel.edu]. You will also see many commands later on in the various cfg files. I also won’t touch much on any of the bindings that can be adjusted in the games menus.
- Toggles are used with either a 1(on) or a 0(off).
- Operations need no extra variable and will be executed immediately.
- Functions require a subject to attach the command to.
Type: Function
alias
alias (name) “(commands)”
Description: Used to create a reference to a command or list of commands. A macro.
When used without parameters, it will display all current aliases. To create an alias which executes multiple commands, it is necessary to surround the commands with double-quotes and separate each command with a semicolon. An alias works like a command function since it cannot accept any parameters. Also, aliases are executed as if they were commands.
Type: Toggle
Description: Toggle the use of cheat codes.
connect (IP address)
Description: Connect the client to a server.
Type: Function
demomap (demoname)
Description: Plays back a demo.
Type: Operation
Description: Disconnects the client from the server.
Type: Bitmap
Default: 16
Description: The options which determine deathmatch game settings.
Values:
1 – No Health.
2 – No Powerups.
4 – Weapons Stay.
8 – No Falling Damage.
16 – Instant Powerups.
32 – Same Map.
64 – Teams by Skin.
128 – Teams by Model.
256 – No Friendly Fire.
512 – Spawn Farthest.
1024 – Force Respawn.
2048 – No Armor.
4096 – Allow Exit.
8192 – Infinite Ammo.
16384 – Quad Drop.
32768 – Fixed FOV.
Type: Function
Description: Drop an item from the inventory. See Item List.
Type: Function
Description: Execute a console script file.
Type: Function
give (item)
give (item) (amount)
Description: Give an item to the player. See Item List.
Following only work with give command
- all – All items.
- ammo – Full ammo.
- armor – Full armor.
- health – Full health.
- weapons – All weapons.
- shells – 10 Shells.
- bullets – 50 Bullets.
- grenades – 5 Grenades.
- rockets – 5 Rockets.
- slugs – 10 Slugs.
- cells – 50 Cells.
- combat armor – 1 unit of Combat Armor.
- jacket armor – 1 unit of Jacket Armor.
- armor shard – Armor Shard.
Type: Operation
Description: Toggle god mode for the player.
Type: Operation
Description: Make the player commit suicide.
Type: Operation
Description: Toggle no clipping mode.
Type: Operation
Description: Toggle the ability of the monsters to detect the player.
Type: Operation
Description: Toggle pausing of the game. Default binding to ‘Pause’ key
Type: Operation
Description: Quit the game.
Type: Operation
Description: Reconnect to the server.
Type: Function
record (demoname)
Description: Record a demo.
Type: Operation
Description: Take a screenshot of the current view. Default binding to F12.
Type: Operation
Description: Stop the recording of a demo.
Type: Operation
Description: Bring down the console to allow the player to type in console commands. Default binding ‘~’ key.
Type: Function
unbind (key)
Description: Remove a binding from a key.
Type: Function
use (item)
Description: Use an item.
Type: Operation
Description: Wait one game tic.
Note: This command is mostly used when creating complex sets of commands and aliases. Some commands cannot be executed in the same game tic, so this command allows a space in time between executing different commands.
Binds
Type: Function
bind (key)
bind (key) “(commands)”
Description: Assign a command or a set of commands to a key.
When the command is used with just the key name and without assigning any commands to it, it will display the command which is currently assigned to that key. To bind multiple commands to a key, enclose the commands in double-quotes and separate them with semi-colons. To bind to non-printable keys, use the key name. The escape, and ~ (tilde) keys can only be bound from an external configuration file.
Examples:
Key Name List:
ESCAPE
F1-F12
PAUSE
BACKSPACE
TAB
SEMICOLON
ENTER
SHIFT
CTRL
ALT
SPACE
INS
HOME
PGUP
DEL
END
PGDN
UPARROW
DOWNARROW
LEFTARROW
RIGHTARROW
KP_SLASH
KP_MINUS
KP_PLUS
KP_ENTER
KP_5
KP_UPARROW
KP_LEFTARROW
KP_RIGHTARROW
KP_DOWNARROW
KP_HOME
KP_END
KP_PGUP
KP_PGDN
KP_INS
KP_DEL
MOUSE1-MOUSE3
AUX1-AUX32
JOY1-JOY4
MWHEELUP
MWHEELDOWN
config.cfg
The config.cfg file is the master list of Quake 2’s bindings. It can be edited with programs such as Notepad, however this method isn’t recommended for beginners. Understanding the config.cfg does a great part in understanding how Q2 handles commands.
Since this file is updated every time you make a change in the game a common practice is to create a duplicate copy and rename it to make it personal. For example I have a korerat.cfg file that is my personal set of bindings.
autoexec.cfg
Quake II automatically searches for a file called AUTOEXEC.CFG every time a new game is launched. If it finds the file, it will automatically execute any commands contained there. Simply create a text file called AUTOEXEC.CFG, add whatever commands you want, and place the file in both your main /Quake2 and /Quake2/baseq2 directories. Among the settings you can put in there are video and sound settings, player controls, and internet settings.
Note that by putting this config file in your Quake2 and baseq2 directories, it will apply directly to playing deathmatch or single player. You can create separate AUTOEXEC files for every mod, and simply place the file in the appropriate mod directory. You can use the // symbols to denote comments in any config file. Quake II will ignore everything that follows them on that line.
You’ll also notice the //eof at the end of the config. Quake II has been known to occasionally ignore the last line of your config, so put a comment there just to be safe.
My personal AUTOEXEC.CFG:
Bat Files & Target Commands
For the Steam version of Quake 2 and its Mission Packs bat files must be used in place of Target Commands. Bat files contain the same information as the Target line in standard shortcuts, only in a text file. In order to play the Mission Packs the game must be started by executing the associated bat file from the Quake 2 directory. You can also use these to create your own quick launch game by telling the computer to launch the game while at the same time telling the game just which parts you want turned on.
example.bat
ground_zero.bat
Target commands are commands that are added to the games shortcut itself and activated when the game is first launched. Since there are many different mods for Quake 2 and each requires its own set of commands or sometimes controls, you might opt to have multiple shortcuts one for each mode.
For Non-Steam versions
- First create a desktop shortcut for Quake 2.
- Next right click on the shortcut and go to the ‘Target:’ line under the ‘Shortcut’ Tab.
- At the end of this line add the command.
Example:
server.cfg
If you opt to run a server, or just play a local game with bots, you’ll need a server.cfg. Its function is to set the various options for the game, all of these options can be set in the game itself when starting the Deathmatch or CTF game. This file is really only needed with quick launching games directly into Deathmatch or CTF games.
Unit cfg’s
Sometimes you just want to jump into the thick of it, and don’t want to deal with the easier early levels. Maybe you’ve played the first units so many times that you want to just start the game in the Mines, or jump straight to the Big Gun. By exec each of these commands it will place you at the start of each unit with a small weapon supply.
CrBot cfg’s
CrBot has always been my preferred bot program, and so I will assume you use it too. With a simple configuration file you can add multiple bots to a match in seconds. Below is a copy of my current BOTS.cfg, it is important to remember that tabs must never be used in these files, always use spaces.
**I have a lot of custom player characters. :p
CrBot also uses DM.cfg and CTF.cfg for each gamemode. Both of these are similar to the AUTOEXEC.cfg and SERVER.cfg files. These set the rules for the game and victory parameters. Each one ends with loading a map and executing the BOTS.cfg to start the game.
DM.cfg
CTF.cfg
Note: Since I use so many custom models I have to make a separate bots.cfg for ctf. In my ctfbots.cfg file is mostly the same with changes to the team number and the skin used by the bot. Using the original cfg would cause the game to force all the models to the male model.
Item List
- adrenaline – Adrenaline.
- airstrike marker – Airstrike Marker.
- ammo pack – Ammo Pack.
- ancient head – Ancient Head.
- bandolier – Bandoleer.
- bfg10k – BFG10K.
- blue key – Blue Key.
- bullets – 50 Bullets.
- chaingun – Chaingun.
- cells – 50 cells.
- commander’s head – Commander’s Head.
- data cd – Data CD.
- data spinner – Data Spinner.
- environment suit – Environment Suit.
- grenade launcher – Grenade Launcher.
- grenades – 5 Grenades.
- hyperblaster – HyperBlaster.
- invulnerability – Invulnerability.
- machinegun – Machinegun.
- power cube – Power Cube.
- power screen – Power Screen.
- power shield – Power Shield.
- pyramid key – Pyramid Key.
- quad damage – Quad Damage.
- railgun – Railgun.
- rebreather – Rebreather.
- red key – Red Key.
- rocket launcher – Rocket Launcher.
- rockets – 5 Rockets.
- security pass – Security Pass.
- shells – 10 Shells.
- shotgun – Shotgun.
- silencer – Silencer.
- slugs – 10 Slugs.
- super shotgun – Super Shotgun.