Note: This procedure requires editing a game file; creating a backup copy of the file before proceeding is recommended. With a text editor, edit the "myconfig.cfg" file in the "base" directory of the game folder. Scroll to the bottom of the file and add the line:
seta sv_cheats "1"
You may now access the console in-game. Depending on your game version, there are multiple ways to activate cheat mode.
Method 1: Press SHIFT + ~ to display the console window. Type setrandom sv_cheats 1 and press [Enter] to enable cheat mode.
Method 2: Display the console window and type sv_cheats 1 (case-sensitive) and press ENTER. You can also type devmap to load a specific map and have the cheats enabled once it has completed loading. Note sv_cheats 1 is write protected in the regular single player game. You need to load a map first by using the map or devmap command. For example, start the game, press ~, then type map pra1 or devmap pra1 at the console window and press [Enter]. When the map loads, enter sv_cheats 1 and press [Enter] to enable cheat mode.
Method 3: Start the game with the \SOF2\SoF2.EXE +set sv_cheats 1 command to enable cheat mode. Note: The next step involves editing a game file; create a backup copy of the file before proceeding. Use a text editor to edit the "myconfig.cfg" file in the "base" folder in the game folder. Search for the "toggleconsole" entry in the file. Bind any desired key to that command. For example:
bind X "toggleconsole"
After cheat mode has been activated by using one of the previous methods, start the game, display the console window, then activate the following cheats by entering the corresponding codes. Note: Cheats may have to be re-activated after starting a new level.
CHEAT FUNCTION - CHEAT CODE
Toggle God mode - god
Toggles no clipping mode - noclip
All weapons and ammo - give all
Spawn indicated item or NPC - give
Armor - give armor
Full ammunition for current weapons - give ammo
Health - give health
Stamina - give stamina
Unlimited power - pinkspider
Disable enemy AI - notarget
Never get tired - nofatigue
List console commands - cmdlist
Display current map name - mapname
List maps - dir maps
Advance to indicated map - map, spdevmap or devmap
Level select icon at main menu - raven 1
Change gravity; 800 is default, set to 0 to fly - g_gravity <0-800>
Change movement rate; 320 is defeault, lower is slower - g_speed
Change player's name - name
Toggle windowed and full screen; will restart game - toggle r_fullscreen
Show current server settings - serverinfo
Reconnect to last server - reconnect
Suicide - kill
Night vision - cg_goggles 1
Thermal vision - cg_goggles 2
Normal vission - cg_goggles 0
Have dialogue said out loud - /sounds or /sounds2
Exit game - quit