Open the Soldier of Fortune II console with the ~ key (on UK keyboards, the ` key under Esc). Type a command, such as /connect 66.135.18.166:20100 or /name YourName, and press Enter. Settings are changed the same way, and /bind puts any command on a key.
Opening the console
Press ~ to open and close it. If nothing happens on a non-US keyboard, try the key to the left of 1. You can scroll back with Page Up, and press Tab after typing the start of a command or setting to complete it or list matches.
Most useful commands
| Command | What it does |
|---|---|
/connect address:port |
Joins a server directly |
/reconnect |
Joins the last server again |
/disconnect |
Leaves the server |
/name YourName |
Changes your name. Colour codes work: see coloured names. |
/team red, /team blue, /team spectator |
Changes team |
/kill |
Respawns you (counts as a suicide) |
/vid_restart |
Applies graphics changes |
/screenshot |
Saves a screenshot to the screenshots folder |
/callvote …, /vote yes |
Calls or answers a vote: see admin commands |
/quit |
Closes the game |
Changing settings
Settings (CVARs) are changed by typing the name and a value, like /cg_fov 90. Type the name alone to see its current value. Every SoF2 setting is listed with its default and a recommended value in the CVAR database, and the most useful are in best settings.
Key binds
A bind puts a command on a key: /bind key "command".
bind F5 "screenshot"
bind t "messagemode" // chat to everyone
bind y "messagemode2" // chat to your team
bind F1 "vote yes"
bind F2 "vote no"
bind m "say_team Need backup at the flag!"
Use /unbind key to clear a key, and /bindlist to see all your binds.
Several commands on one key
Separate commands with a semicolon inside the quotes:
bind F6 "cg_drawFPS 1; cg_lagometer 1"
Save it in a config
Write your binds and settings into a text file named autoexec.cfg in the base folder, one per line, and the game runs it at start-up. To load another file by hand, use /exec filename.cfg. Example settings are in best SoF2 settings.
Frequently asked questions
How do I open the console in SoF2?
Press the ~ key, or on UK keyboards the ` key under Esc.
Do I need the slash before commands?
In the console it’s optional for most commands. In the chat line it’s required, otherwise you send the text as a message.
How do I connect to a server by IP in SoF2?
Open the console and type /connect followed by the address and port, for example /connect 66.135.18.166:20100.
