A list of working hacks for COD4, Modern Warfare. I will explain some hacks already posted in more depth, explain binds and how to use them, and many other things. For this guide, you'll need basic knowledge of how to use these commands, and where to put them, if you are having trouble, please send me a PM or reply to this thread. By the end of this guide, you should not need to ask someone for there codes, and will be able to make your own. Please use Ctrl+F to find something.
Also, there's alot of things I'm not posting here, but if there's somthing you want, but can't find, reply or send a PM.
BTW, for the nooby ones, if you want to use the codes, keeping it's default number following it, there's no point, as it'll already be set. Towards the end, there's lots of codes that don't fully benefit you, but are good for making MODs.
Thanks to Michael, for finding some of the more useful server codes, that I proberly wouldn't know what to do with.
Legend:
CONFIRMED = Defiantly work.
UNCONFIRMED = Might not work, please reply in the thread if you've tested them and they work.
HOST = Need to be host for them to work, and'll usually apply to everyone in the game.
BIND = Needs to be set as binds, if this is not displayed, it usually means it can be both set and bound.
Edit Log:
7.22.2009 - Laser Editor Confirmed
----
CONFIRMED - Binds:
----
Binding is changing your controller mapping. For example, if you bound Infinate Ammo to SELECT, instead of opening the score menu when you press SELECT you will recieve infinate ammo. This would be
set out like this:
bind BUTTON_BACK "player_sustainAmmo 1"
You can use one bind for more than one thing, just seperate them with a semi-colon.
bind BUTTON_BACK "player_sustainAmmo 1 ; god ; give m40a3_mp"
With bind's you can add toggles, so for example, when you press SELECT once, it turns unlimited ammo on, press it again, and it will turn it off.
bind BUTTON_BACK "toggle player_sustainAmmo 1 0"
(1 = on) (0 = off)
Another thing these can be used for, are for giving weapons, I have set up a list of every 'give weapon' command, which will appear later on it the guide. This is just an example:
bind BUTTON_BACK "give m40a3_mp" - When you press select, you will recieve a M40A3 Sniper Rifle.
Obviously, you don't just have to bind to SELECT; these are a list of all the buttons and there bind command, but remember, if you want any of them to work you will have to open up GRAD0_CM and take out
the part that says 'buttons_default'/'buttons_tactical' or other & the part that says 'thumbstick_default'.
UP = DPAD_UP
LEFT = DPAD_LEFT
DOWN = DPAD_DOWN
RIGHT = DPAD_RIGHT
SELECT = BUTTON_BACK
START = BUTTON_START
TRIANGLE = BUTTON_Y
SQUARE = BUTTON_X
X = BUTTON_A
O = BUTTON_B
R1 = BUTTON_RSHLDR
L1 = BUTTON_LSHLDR
R2 = BUTTON_RTRIG
L2 = BUTTON_LTRIG
R3 = BUTTON_RSTICK
L3 = BUTTON_LSTICK
----
CONFIRMED - BIND - Basic Commands:
----
Add these to binds, press that button, and it'll activate it.
Example: bind BUTTON_BACK "god"
god = Infinate Health
demigod = Infinate Health, but your screen still flashes red. Good for split-screen games against friends, so they can't tell you've got god mode. ;]
give all = Gives all weapons.
take all = Takes all weapons.
give ammo = Gives ammo.
noclip = Float Around
ufo = Same basic thing as noclip, but different controls.
player_sustainAmmo "1" = unlimited ammo
----
CONFIRMED - BIND - Killstreak Rewards:
----
Again, add these to binds. Expample: bind BUTTON_BACK "give radar_mp"
give radar_mp = UAV
give airstrike_mp = Airstrike
give helicopter_mp = Helicopter
----
CONFIRMED - BIND - Weapons
----
Set these to binds, but remember to use the 'give' command before it, eg.
bind BUTTON_BACK "give m40a3_mp"
When you recieve the weapon, it will have low ammo, so bind 'give ammo' to the same button for maxium affect.
1 - Assault Rifles:
m16_mp = M16A4
ak47_mp = AK-47
m4_mp = M4 Carbine
g3_mp = G3
g36c_mp = G36C
m14_mp = M14
mp44_mp = MP44
2 - Sub Machine Guns
mp5_mp = MP5
skorpion_mp = Skorpion
uzi_mp = Mini-Uzi
ak74u_mp = AK-74u
p90_mp = P90
3 - Shotguns
winchester1200_mp = W1200
m1014_mp = M1014
4. Light Machine Guns
saw_mp = SAW
rpd_mp = RPD
m60e4_mp = M60
5. Sniper Rifles
m40a3_mp = M40A3
m21_mp = M21
dragunov_mp = Dragonuv
remington700_mp = R700
barret_mp = Barret 50 Cal.
6. Pistols
beretta_mp = M9
colt45_mp = Colt .45
usp_mp = USP
deserteagle_mp = Desert Eagle
deserteaglegold_mp = Golden Desert Eagle
7. Grenades
frag_grenade_mp = Fragmentation Grenade
flash_grenade_mp = Flash(bang) Grenade
concussion_grenade_mp = Stun Grenade
smoke_grenade_mp = Smoke Grenade
8. Perks
rpg_mp = RPG-7
c4_mp = C4
claymore_mp = Claymore
9. Default Weapon
defaultweapon_mp = An invisble gun? :]
----
CONFIRMED - BIND - Adding Attachments
----
When you put the code in to give you a weapon, eg. 'bind BUTTON_BACK "give m40a3_mp"' you can add attachments, obviously only the ones you'd be able to in Create-a-class. It would be set out like this:
bind BUTTON_BACK "give m40a3_acog_mp
Here's the full list:
gl = Grenade Launcher (example: bind BUTTON_BACK "give m16_gl_mp"
reflex = Red Dot Sight (example: bind BUTTON_BACK "give m16_reflex_mp"
silencer = Silencer (example: bind BUTTON_BACK "give m16_silencer_mp"
acog = ACOG (example: bind BUTTON_BACK "give m16_acog_mp"
grip = Grip (example: bind BUTTON_BACK "give m1014_grip_mp"
----
UNCONFIRMED - BIND - 'give health"
----
Give's you health, an instant regeneration. Never got to test as I always have god mode.
Like before set it in a bind.
give health
Example: bind BUTTON_BACK 'give health'
I also think you can add a number after health, giving you that much health. (Default health in a game that is not Old-school or Hardcore = 100)
give health 50
----
CONFIRMED - Changing Colours/Classes/Clan/MOTD etc.
----
Ever wanted to know how to change your name's into different colours? Or change your classes, well now you can.
Colours:
Putting different colour codes infront of text, will make them into that colour. This can include MOTD, Classes & Clan name.
The codes are:
^1 = Red
^2 = Green
^3 = Yellow
^4 = Blue
^5 = Cyan
^6 = Pink/Magenta
^7 = White
^8 = Random
^0 = Black
Eg.
set motd “^1 MESSAGE OF THE DAY”
This would make your Message of the Day 'MESSAGE OF THE DAY' but it would be red.
MOT
Changing the Message of the Day is simple, just put the following code into GRAD0_MP, and replace the text with whatever you want, and whatever colours.
set motd "INSERT TEXT HERE"
Classes:
You can change the name of you classes, you can use colours, and symbols, which you can't usually access, this also works with the patch installed. Just change the text to your liking, and place it in
GRAD0_MP.
set customclass1 "INSERT TEXT HERE"
set customclass2 "INSERT TEXT HERE"
set customclass3 "INSERT TEXT HERE"
set customclass4 "INSERT TEXT HERE"
set customclass5 "INSERT TEXT HERE"
Clans:
The same as the rest, you can insert text and colours, but there's a maximum amount of characters; 4. (not including colour codes)
set clanName "INSERT TEXT HERE"
----
CONFIRMED - HOST - Jumping
----
Edit the codes to your liking and paste them into your GRAD0_MP file.
set jump_height "39" - The default jump height.
set jump_height "0" - You don't really jump. :]
set jump_height "1000" - Damn high. This is the highest option.
You can change the number to your liking. 0 being the lowest and 1000 being the highest.
set jump_spreadAdd "0" - This will make it so when you jump, your crosshairs remain the same size.
set bg_fallDamageMaxHeight "1000"
set bg_fallDamageMinHeight "1000"
These will make it so when you jump or fall from a great height, you will survive. Make sure both numbers are the same and are quite high.
If you are using god/demigod then these are not needed.
----
CONFIRMED - HOST - Gravity
----
Just change it to your liking.
g_gravity "800"
----
CONFIRMED - Knife
----
Edit then copy the selected codes into your GRAD0_MP file.
set player_meleeHeight "10"
set player_meleeRange "64"
set player_meleeWidth "10"
These are pretty self explanitry.
----
CONFIRMED - Laser Sight
----
This can help for aiming.
1 = on, 0 = off.
cg_laserForceOn "0"
----
CONFIRMED - Laser Editors
----
There are also configurations for them, but I won't go into detail, as they're un-important. (values are defaults)
cg_laserFlarePct "0.2"
cg_laserLight "1"
cg_laserLightBeginOffset "13"
cg_laserLightBodyTweak "15"
cg_laserLightEndOffset "-3"
cg_laserLightRadius "3"
cg_laserRadius "0.8"
cg_laserRange "1500"
cg_laserRangePlayer "1500"
----
CONFIRMED - Sprint Speed
----
Sprinting Faster; just change the number to your liking.
player_sprintSpeedScale "1.5"
Setting these as low/high as possible will change how long you have to sprint, before you can stop.
player_sprintForwardMinimum "105"
player_sprintMinTime "1"
It's also useful setting this higher:
player_sprintStrafeSpeedScale "0.667"
----
CONFIRMED - HOST - Sprint Speed for everyone
----
Sprinting Faster; just change the number to your liking.
g_speed "190"
----
CONFIRMED - Perk Modifiers
----
These will only work if you have that perk. However, they can prove very useful. The values are default.
set perk_bulletPenetrationMultiplier "2" - Set this higher, to shoot through walls with ease. Needs '

eep Impact'.
set perk_extraBreath "5" - How long you can hold breath with 'Iron Lungs'. (The higher, the better.)
set perk_sprintMultiplier "2" - How long you can run for with 'Extreme Conditioning'. (The higher, the better.)
set perk_weapRateMultiplier "0.75" Using '

ouble Tap', set this to lower, and you'll fire faster.
set perk_weapReloadMultiplier "0.5" The lower the number, the faster you reload. Requires 'Slight of Hand'.
set perk_weapSpreadMultiplier "0.65" The lower, the smaller your crosshair using 'Steady Aim'.
There's also these 3, but I have not tested; they may do somthing different to what I say they do.
perk_armorVest "75" - How much is added to your health with 'Juggernaught'?
perk_bulletDamage "40" - How much damage is added to your weapons with 'Stopping Power'?
perk_explosiveDamage "25" - How much damage is added to your explosive weapons with 'Sonic Boom'?
----
CONFIRMED - Making an Aimbot
----
Using the following codes, will make it easier to locate and destroy enemies..
set aim_autoaim_enabled "1" - Enables auto-aim.
set aim_lockon_debug "1" - Enhanced lock-on.
set aim_lockon_region_height "1000" - Area of lock-on.
set aim_lockon_region_width "1000" - Area of lock-on.
set g_compassshowenemies "1" - Show's enemies on radar.
set aim_lockon_strength "0.99" - Enhanced lock-on.
set aim_lockon_deflection "0.0005" - Enhanced lock-on.
set cg_tracerchance "1" - Shows bullet tracers.
set cg_tracerlength "5000" - Size of tracers.
set cg_tracerSpeed "750" - Size of tracers.
set cg_drawThroughWalls "1" - See peoples names through walls.
set cg_tracerwidth "4" - Size of tracers.
set cg_enemyNameFadeIn "0" - Stops name fading.
set cg_enemyNameFadeOut "1000" - Stops name fading.
Use these combined with the perk modifiers for maxium use.
----
UNCONFIRMED - Editing the Compass
----
Completely useless, but can help. I will not go into depth with these, as they are pretty dumb. Just read them and they'll make more sense. To be honest, I havn't tested these so they may not work. To be
honest, it's likely they're for singleplayer.
compass "1"
compassClampIcons "1"
compassCoords "720 340 200"
compassECoordCutoff "37"
compassEnemyFootstepEnabled "0"
compassEnemyFootstepMaxRange "500"
compassEnemyFootstepMaxZ "100"
compassEnemyFootstepMinSpeed "140"
compassFriendlyHeight "18.75"
compassFriendlyWidth "18.75"
compassMaxRange "2500"
compassMinRadius "0.0001"
compassMinRange "0.0001"
compassObjectiveArrowHeight "20"
compassObjectiveArrowOffset "2"
compassObjectiveArrowRotateDist "5"
compassObjectiveArrowWidth "20"
compassObjectiveDetailDist "10"
compassObjectiveDrawLines "1"
compassObjectiveHeight "20"
compassObjectiveIconHeight "16"
compassObjectiveIconWidth "16"
compassObjectiveMaxHeight "70"
compassObjectiveMaxRange "2048"
compassObjectiveMinAlpha "1"
compassObjectiveMinDistRange "1"
compassObjectiveMinHeight "-70"
compassObjectiveNearbyDist "4"
compassObjectiveNumRings "10"
compassObjectiveRingSize "80"
compassObjectiveRingTime "10000"
compassObjectiveTextHeight "18"
compassObjectiveTextScale "0.3"
compassObjectiveWidth "20"
compassPlayerHeight "18.75"
compassPlayerWidth "18.75"
compassRadarLineThickness "0.4"
compassRadarPingFadeTime "4"
compassRadarUpdateTime "4"
compassRotation "1"
compassSize "1"
compassSoundPingFadeTime "2"
compassTickertapeStretch "0.5"
If those don't work, playbe these will, either way, most of them are a waste of file size.
cg_hudMapBorderWidth "2"
cg_hudMapFriendlyHeight "15"
cg_hudMapFriendlyWidth "15"
cg_hudMapPlayerHeight "20"
cg_hudMapPlayerWidth "20"
cg_hudMapRadarLineThickness "0.15"
----
CONFIRMED - BIND - Slow/Fast Motion
----
Changing the speed of the game is simple, just make sure you're host. The code used is:
set timescale "1.0" - Default
You just change the number to your liking, higher being faster, and lower equals slower.
For example:
set timescale "2.0" - Double the speed
set timescale "0.5" - Half the speed
However, it's easier to use this as a bind, and have toggles, just remember, for some reason, you can only use two variables to toggle for timescale, don't ask why.
bind BUTTON_BACK "toggle timescale 2.0 1.0" - Press once for double speed, again for normal.
bind BUTTON_BACK "toggle timescale 0.5 1.0" - Press once for half speed, again for normal.
bind BUTTON_BACK "toggle timescale 0.5 1.0 2.0" - THIS WILL NOT WORK.
----
CONFIRMED - Ignore Flash/Stun Grenades
----
For this, lot's of people just use the code:
set cg_drawShellshock "0"
Which works perfectly, but a few things remain, like sound and sensitivity. There are loads of codes, more than I have time to go into detail with, but I'll put them all here and talk about some of them. Just
place 'set' infront of them if you're going to use them, but I don't reccomend them, and I have not tested - just use the one above.
(Values are defaults)
----
3/4 UNCONFIRMED - Ignore Flash/Stun Grenades Continued
----
bg_shock_lookControl "1" - Set this to '0' and you proberly wont be able to look around when stunned.
bg_shock_lookControl_fadeTime "2" Set this lower and the above effect will last longer?
bg_shock_lookControl_maxpitchspeed "90" - Somthing to do with looking around, then again, what's pitch got to do with it? o.O
bg_shock_lookControl_maxyawspeed "90" - Just don't use these.
bg_shock_lookControl_mousesensitivityscale "0.5" - It says mouse, but it proberly works for PS3 too, set it to '1.0' and it'll proberly allow you to still look around as fast as before stunned.
bg_shock_movement "1" - Set this to '0' and you proberly won't be able to move while stunned.
bg_shock_screenBlurBlendFadeTime "1" - Set this low and the blur from the flash will last longer.
bg_shock_screenBlurBlendTime "0.4" - ^^^^
bg_shock_screenFlashShotFadeTime "1" - ^^^^
bg_shock_screenFlashWhiteFadeTime "1" - ^^^^
bg_shock_screenType "blurred" - Leave it. Or change blurred to default or somthing, IDK.
bg_shock_sound "1" - I reccomend this if you do not like the sound of stuns/flashes. Just set to '0'. IF YOU USE THIS YOU WONT NEED ANY OF THE 'bg_shock_sound..." codes, and so, I removed from
list. If you really want them, to look at PM me or reply to thread. Infact, I just removed all after this, as before, PM me if you want them.
----
~closed.