Developer console

Console commands are commands entered into a video game's console, which is usually accessed by pressing the tilde (~) key. 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".

Demo
1. From the in-game options, enable the console.

2. Press the tilde key (~) to open the console.

3. Type seta thereisacow 1337 and press Enter.

4. Type spdevmap bog_a and press Enter.

5. This will start the demo with console cheats enabled. While playing, press the tilde key to bring up the console and type in the cheats. Press Enter to activate them and type them in again and press Enter to deactivate them.

Full
1. Do the same as above. However, after you load "The Bog", exit out and load the level you want to play with cheats on.

You can not select Resume from the pause menu and have the cheats function. You can however, select the level you want to play on with the cheats enabled.

In Multiplayer
1. Go to multiplayer and open the console

2. Enter devmap mp_crossfire. This will load up a new server on Crossfire with cheats enabled.

3. Enter cheats with a / in front of them.

Note that not all cheats will work.

Codes and Effects
give all: Retain all weapons (In the current level) in inventory at once. If used in multiplayer, the player will have every single gun in the game, including all variants with attachments.

god: Cannot die for any reason (except dogs).

demigod: Take damage, but cannot die from it.

noclip: Removes gun from sight and use, allows free movement in any direction without the effect of clipping. Noclip refers to clipping, a developer term meaning anything that restricts the player's movement. For example, a floor is clipping because it prevents the player from moving down. There is also invisible clipping, such as the invisible walls at the boundaries of a level which prohibit movement outside of the specified area.

ufo: Flight mode (similar to noclip, but much faster)

notarget: The player will not be attacked or even noticed by any AI.

give ammo: Gives player full ammunition.

sf_use_ignoreammo 1: Shoot without the need to reload, infinitely. This does not work in multiplayer.

player_sustainammo : Unlimited ammunition. This works in multiplayer.

take all: Removes all your guns and health.

take ammo: Removes your ammunition.

give : Spawn indicated item. Note that 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, because it is not present in any other missions.

give all: This will give the player every weapon which is available in the level. Sometimes, the player will gain access to otherwise inaccessible weapons:

player_sprintSpeedScale: Set player's sprint speed.

map or spdevmap : Change map. Note that the name for the misson/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.

r_fullbright: The level will appear brighter, making vision easier.

cg_laserlight 1: Draw light emitted from the laser.

kill: Suicide.

g_speed: Adjust player speed.

g_gravity: Adjust player gravity.

r_lightTweakSunLight: Adjust the intensity of the sunlight (Multiplayer Only)

player_burstFireCooldown: Adjust (Or remove) the delay between bursts on the M16A4.

cg_draw2D 0: Remove all HUD elements.

Modern Warfare 2 and Call of Duty: Black Ops Cheats
In Modern Warfare 2 or Black Ops for PC, cheats are also available, but by modifying game files. To enable cheats, the user must go to the "players" folder. Note that this process works on both Modern Warfare 2 and Call of Duty: Black Ops and will not get the player banned from Steam as this is editing of a singleplayer file.

Find your game files in the Steam folder (example: C:\Program Files (x86)\Steam\SteamApps\common\call of duty black ops\players). There, the "config.cfg" (Same name for both games) file must be opened with a text editor like Wordpad. Be careful not to open the "config_mp.cfg", as editing this file doesn't do anything. After preferably setting up a backup, he following line must be added at the end of the "config.cfg" file first: seta thereisacow "1337" (the numbers must be in quotation marks) This will enable the cheats. Now, several other lines must be added. To use the cheats, the "bind" command must be used: bind X "Y" - on the place of X you must put a key, which is not in use (check the other "bind" lines, and ensure that the key you want isn't already in use). On the place of Y, between the two tildes, you must put the cheat code.

EXAMPLE: seta thereisacow "1337"

bind U "god"

bind V "notarget"

bind P "give ammo"

When ingame, you just have to press one of these keys, and the cheat code will be activated.

Almost all cheats from the first Modern Warfare work, but the "give all" cheat will make the game unplayable, as when it gives you the weapons all of them have the skin of the previous weapon you used (like: if you used the SCAR-H before using the cheat, and after that you are given an AK-47 and switch to it, it will look like the SCAR-H) and there will be no ammo for them, even if you refill at a crate or use the "give ammo" cheat. To disable a code, just press the needed key a second time. NOTE: cheats like "player_sustainammo", which need "1" or "0" to be inputted, will need a different key with the "0" inputted to be disabled.

(example: bind Z "player_sustainammo 1", bind X "player_sustainammo 0")

Note: Reset to default control will disable all cheat keys.