Console commands
Talk21this wiki
Console commands are commands entered into a video game's command console, which is usually accessed by pressing the tilde (~) or grave key (`) key (the key may be different for keyboards with different language set-up; it is usually the key to the left of 1). They may only be accessed on PC. The console can be used to access a given weapon easily, make the player invincible, and much more. The console can be used to give information useful to the developers of the game, hence the term "developer console".
Since Call of Duty uses the same base for most of its game engines, many commands remain the same throughout the series.
Contents |
Enabling the console
Edit
Call of Duty 2, Call of Duty 4: Modern Warfare and Call of Duty: World at War
Edit
Singleplayer
Edit
- From the in-game options, the player should enable the console.
- The player should then press the tilde key (~) or grave key (`) to open the console.
- The player can now type seta thereisacow 1337 and press Enter.
- The player may now type spdevmap [mapname] (or devmap [mapname] in Nazi Zombies) and press Enter.
- This will start whichever map was typed in with console commands enabled. While playing, the player can press the tilde or grave key to bring up the console and type in commands. The player can press Enter to activate them, type them in again, and press Enter to deactivate them.
Note: The player has to devmap or spdevmap as opposed to selecting a map from the mission select screen in order for the commands to be available. In addition, the mission names are not always their in-game names. For example, Death From Above would start with spdevmap ac130. The names can be seen in their individual articles or in the game files.
Multiplayer
Edit
- The player should go to multiplayer and open the console
- The player can then enter devmap [mapname]. This will load a new server on with whichever map was entered with commands enabled.
- The player may now enter commands with a / in front of them. Not doing so will merely send what was typed as a message.
Note: Not all commands will work.
Call of Duty
Edit
The process for enabling console commands in Call of Duty is different to the others, as it runs on the ID Tech 3 Engine.
- Right click on the Call of Duty Single Player shortcut and select "Properties"
- In the "Target" field enter +set thereisacow 1337 +set developer 1 +set sv_cheats 1 +set monkeytoy 0 (i.e. "C:\Program Files\Call of Duty\CoDSP.exe +set thereisacow 1337 +set developer 1 +set sv_cheats 1 +set monkeytoy 0)
- Start up the game, press the tilde key (~) or grave key (`) to enter console.
Call of Duty: Modern Warfare 2 and Call of Duty: Black Ops
Edit
To enable console cheats for Call of Duty: Modern Warfare 2 or Call of Duty: Black Ops you must do the following:
- Open "Computer" on your computer
- Go to Computer > Local Disk (C:) > Program Files (x86) > Steam > Steam Apps > common > call of duty modern warfare 2/call of duty black ops > players
- Open "config"
- Set "seta monkeytoy" to "0" (can be found easily by searching monkey with Ctrl+F)
- Go to the bottom of the text and type in "spu"
- Press enter twice
- Type "bind (key) "(command)"
- Click back to "players" and right click on "config"
- Click "Properties" and turn off "Read Only"
- Save the "config file"
- Right click on "config", click "Properties", and enable "Read Only"
The player should note that the tilde or grave key will nomore work in singleplayer. The only way to use the command console now is to simply enter bind commands into the config.cfg file.
To use the cheats, the "bind" command must be used: bind X "Y" - on the place of X the player must put a key, which is not in use (they should check the other "bind" lines, and ensure that the key they want is not already in use). On the place of Y, between the two tildes, the player must put the cheat code. Before someone attempts to enable the cheats binded, they need to bind the "seta thereisacow 1337" command and enable it every time they start the game. The bind should look like this: bind X "seta thereisacow 1337", where X is the binded key.
Examples of binded console commands:
bind U "god"
bind V "notarget"
bind P "give ammo"
When ingame, the player simply has to press one of these keys, and the cheat code will be activated.
Codes and Effects
Edit
Commands can be enabled and disabled, depending on how they must be activated. The most basic will require the player to simply enter the command to activate, and enter it again to deactivate (ex. noclip and god). There are also commands that are activated and deactivated by entering the number 1 after it to activate, and 0 to deactivate (ex. sf_use_ignoreammo 1).
There are also commands that alter game elements. These cannot be activated, but changed. When entering in one of these commands, the console will say "Domain is any number between X and Y (X and Y being the minimum and maximum values)." As such, the player can enter any number between X and Y to change the domain, and as a result, the effect. The default is also given, so players can return to the normal value if they wish. An example is "timescale 1", which dictates the game's speed. The default is 1, but players can enter any value between 0.001 (X) and 1000 (Y).
Below is an incomplete list of console commands. Note that the underscore ( _ ) cannot be used in place of a space, and vice versa.
| Command | Effect | Notes | |||
|---|---|---|---|---|---|
| These commands toggle settings on and off. | |||||
| god | Toggles god mode | Cannot take damage and cannot die, but dogs can still "kill" the player, which forces the player to use the kill command to respawn, as the after-death quote will show up, but the player will not be dead. | |||
| demigod | Toggles demigod mode | Take damage, but cannot die from most things. | |||
| noclip | Toggles noclip | Removes gun from sight and use, allows free movement in any direction without the effect of clipping. | |||
| ufo | Toggles ufo mode. | A flight mode (similar to noclip, but much faster but unable to move sideways, only forward and backward, you can move upwards and downwards with the Lean Left and Lean Right key (default Q and E) | |||
| notarget | Toggles a no target flag on the player. | The player will not be attacked or even noticed by any AI. This can be used in conjunction with noclip to take screenshots of enemy characters, vehicles, etc. | |||
| kill | Kills the player. | ||||
| dropweapon | Drops the current weapon. | ||||
| take all | Removes all of the player's weapons and health. | ||||
| take ammo | Removes all of the player's ammunition. | ||||
| take weapons | Removes all of the player's weapons. | ||||
| give all | Gives the player one of every weapon with maximum ammunition. | Can be used to get otherwise unusable weapons, including the "Default Weapon", the M21 with a unique desert camouflage scheme in "The Bog", the AT4 in "Shock and Awe", the M4A1 SOPMOD with iron sights in "Ultimatum", and the M4A1 Suppressed (an M4A1 like the one in "Charlie Don't Surf", but with a suppressor) in various singleplayer missions. | |||
| give ammo | Refills ammunition for every weapon currently in the player's possession; | ||||
| map_restart | Restarts the map or mission without being taken to the loading screen. | ||||
| These commands require arguments. | |||||
| friendlyfire_dev_disabled <> | Depending on the value, allows the player to shoot friendly NPCs without restarting the level. | Allowed arguments are 0 and 1. 0 is the default; 1 allows the player to shoot friendlies. | |||
| sf_use_chaplin 1<> | Enables or disables the Ragtime Warfare cheat. | Available only in singleplayer. Removes the player's HUD and ability to sprint, the environment gets a yellow tint, dust and scratches fill the screen, gameplay speed is increased to double the regular, all sounds in the game are muted, and a single piano theme plays repeatedly. 0 disables, 1 enables. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_bw <> | Enables or disables the CoD Noir cheat. | Available only in singleplayer. Turns all colors in the game to greyscale. 0 disables, 1 enables. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_contrast <> | Enables or disables the Super Contrast cheat. | Available only in singleplayer. Drastically increases the color contrast in the game. 0 disables, 1 enables. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_clustergrenade <> | Enables or disables the Cluster Bombs cheat. | Available only in singleplayer. After a frag grenade explodes, four more spawn and explode in a row. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_invert <> | Enables or disables the Photo Negative cheat. | Available only in singleplayer. Inverts all colors in the game. 0 disables, 1 enables. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_slowmo <> | Enables or disables the Slow-Mo Ability cheat. | Available only in singleplayer. Allows the player to toggle slow motion by knifing. Only usable on Call of Duty 4 and World at War. | |||
| sf_use_tire_explosion <> | Enables or disables the Photo Negative cheat. | Available only in singleplayer. Enemies explode into tires when killed. Only usable on Call of Duty 4 and World at War. | |||
| cg_thirdperson <> | Enables or disables third person mode. | Changes the player's camera from default first person to third person (MP and Zombies only, except for WaW). | |||
| player_burstFireCooldown <> | Adjust (Or remove) the delay between bursts on the M16A4. | ||||
| cg_draw2D <> | Removes all HUD elements. | Essential for taking screenshots without the HUD in the way. Use in conjunction with cg_drawgun and noclip for best results. | |||
| cg_drawGun <0/1> | Stops the weapon and player model being drawn if set to 0. | ||||
| g_gravity | Adjust player gravity. | ||||
| g_speed | Adjust player speed. | ||||
| cg_laserlight | Toggles whether the laser light is visible or not. | ||||
| bg_forcedualwield "1" | Forces weapons to go Akimbo | Only in MW2, not all weapons are working | |||
| bg_forceExplosiveBullets "1" | Forces weapons to shoot explosive bullets | MW2 only | |||
| cg_LaserForceOn | Adds a visible laser pointer to all weapons. | The lasers originate from the barrel (with the Default Weapon, it points outside the player's cross-hairs). | |||
| cg_LaserRange | Sets NPC's laser range. | Sets the range of NPC's weapon's lasers. | |||
| cg_LaserRangePlayer | Sets the player's laser range. | ||||
| player_meleeRange | Sets the player's melee range. | ||||
| player_sprintSpeedScale | Sets the player's sprint speed. | ||||
| timescale <> | Sets game speed. | Default is "1.00": 1 second in reality is 1 second in game. | |||
| sf_use_ignoreammo <> | Enables or disables the cheat "Infinite Ammo". | Available only in singleplayer. The player's ammunition doesn't decrease when firing, making his weapons have practically infinite magazine capacity. Makes the RPG-7, AT4, M203, Rifle Grenade, Panzerschreck, and GP-25 fully automatic, with the M203 on the M16A4 Grenadier having the significantly highest fire rate. Only usable on Call of Duty 4 and World at War. | |||
| player_sustainammo <> | Unlimited ammunition for all weapons; unlimited magazines. | Equivalent to "sf_use_ignoreammo 1", but works in multiplayer. | |||
| cg_fov <> | Adjusts depth perception. | Values must range between 60 and 160 in singleplayer, and 60 and 80 in multiplayer. | |||
| jump_height <> | Adjusts jump height. | The default value is "39". | |||
| r_fullbright <> | The level will appear brighter, making vision easier. | ||||
| give <item name> | Gives the player the item entered. | The item name is the console name, not the in-game name. This only works with weapons that are present in the level. For example; it is not possible to spawn an R700 in any mission except "The Sins of the Father" in Call of Duty 4: Modern Warfare, because it is not present in any other mission. See the item's page for their code. | |||
| map <name> | Changes the map. | The name for the mission/map is the console name, not the in-game name, for example to load up "Death From Above" the command would be spdevmap ac130, not spdevmap Death From Above. | |||
| spmap <name> | Same as map, but works only in singleplayer. | ||||
| mpmap <name> | Same as map, but works only in multiplayer. | ||||
| devmap <name> | Same as map, but runs the map in developer mode, allowing console commands. | ||||
| spdevmap <name> | Same as "spmap <name>", but runs the map in developer mode, allowing console commands. | ||||
| mpdevmap <name> | Same as "mpmap <name>", but runs the map in developer mode, allowing console commands. | ||||
| cg_gun_x <> | Moves the player's gun from left or right. | Positive values move it right, negative values move it left. Default value is "0." | |||
| cg_gun_y <> | Moves the player's gun up or down. | Positive values move it up, negative values move it down. Default value is "0." | |||
| cg_gun_z <> | Moves player's gun forward or backward. | Positive values move it forward, negative values move it backwards. Default value is "0." | |||
Usage in Multiplayer
Edit
For obvious reasons, console commands cannot be used in online multiplayer but some harmless ones can still be used to somewhat affect gameplay. Modifying the "config_mp" file can let the player toggle certain elements of the game like the weapon crosshair, the minimap, the fullbright and no fog option, or a nearby-flashbang indicator. On LAN servers however, commands can still be used.
Gallery
Edit
Call of Duty 4: Modern Warfare
Edit
Call of Duty: World at War
Edit
Call of Duty: Modern Warfare 2
Edit
The following images (save the last two and the pickup icons) use a field of vision of 120.
Call of Duty: Black Ops
Edit
Call of Duty: Modern Warfare 3
Edit
Trivia
Edit
- In Call of Duty 4, if the player uses "cg_LaserForceOn 1" all of the lasers on the weapons will originate from the barrel. However, if the player has an M4A1 without attachments it will originate from the AN/PEQ-2A and curve towards the barrel.
- The console is not available in singleplayer or Spec Ops mode in Modern Warfare.
- However, programs known as "external console commands" can be used to activate it in Modern Warfare 3.
- Only Call of Duty: World at War can have third person mode activated in the singleplayer campaign, unlike other Call of Duty installments which can only be activated in multiplayer.
- In Treyarch games, player will be notified in top left corner if the console command is activated or deactivated.
| |||||||||||||||||