Call of Duty 4: Modern Warfare (2007)

Call of Duty 4: Modern Warfare (2007)

Not enough ratings
How to mod Bots for Offline play (COD4X)
By Lindeboombier
In this Guide I will go step by step on how to install and play COD 4 bots in offline mode while still being able to have the full progression.
   
Award
Favorite
Favorited
Unfavorite
Installing COD4X
Go to https://cod4x.ovh/, then on the left-top there is a menu called ''CoD4x Releases'', click that and it will bring you to a new page.
We need to download cod4x_client_21_1.zip and cod4x_server-windows_21.2.zip, once both are downloaded, go to your download folder and unzip both files to your desktop.
Then find your Call of Duty 4 game folder, usually: C:\Program Files (x86)\Steam\Steamapps\Common\Call of Duty 4.
We need to move cod4-client-manualinstall_21.1 + cod4x-windows-server into the main directory of Call of Duty 4.
Leave the contents of cod4-client-manualinstall_21.1 in the folder, just go into the folder and click install, it will prompt a bat file that will make a few copies real quick and then you can close it.
The contents of cod4x-windows-server minus the Readme can be moved to the main directory of Call of Duty 4, replace the files if prompted
Then head back to the main directory and click iw3mp to launch the game once, when you get to the main menu you will see in the bottom right that CoD4x is installed and the version of it.
Now CoD4x is intalled.

Installing Bot Warfare
Go to https://www.moddb.com/mods/bot-warfare/downloads and find the latest [CoD4] Bot Warfare and download the mod.
Once it is downloaded, go to your download folder and unzip the file to your desktop.
Move everything from ''Add to root of CoD4x server'' to the main Directory of Call of Duty 4.
Now the mod is installed and to play it there are 2 files that you need to click that came with the mod:
First ''z_botwarfare_localserver'', which will launch a Bat file and then launch the server program that we installed with CoD4X ''cod4x18_dedrun'', this Program must stay open while you play as the local server connects to it.
Secondly ''z_botwarfare_playserver'' this will launch another Bat file that will launch CoD4X mp_bots and instantly put you in the server.
This Server will be domination Shipment and Only that. it will spawn just you and will work like a normal game of Domination at the end of the score/time during the aftermath score it will do a countdown of 25 seconds before it loads the ''next'' map which will be shipment again (Next section will talk about adding maps), during this timer if you press ''ESC'' you can customize your load-outs.
To spawn bots in the match Press both Grenade buttons, which should be 4+G, the buttons are linked to the two grenade buttons so if you remap those you will have to press the buttons that are now your new Grenade buttons.
When you press the buttons it will open the bot menu, you can use the fire and aim buttons to navigate through the menus and use the knife button to conform, the grenade buttons to go back and close the menu.
Once bots are spawned they will stat in the session till you kick them, they will go from match to match.
The bots will try to act like players, they will dropshot and jumpshot from time to time, say random stuff in chat and can be found having camo's on their guns.

Disclaimer, if you leave the match to go back to the menu, you will have to shutdown the game and restart the server again.

Customizing the experience
The next topics are:
More maps
Renaming bots
Simple launch from steam

If you just install the mod and do nothing else then it will come with just one map in rotation, but the mod has everything it needs to add the bots onto other maps as well, to add the maps you will have to navigate to the map ''Main'' in the Call of Duty 4 directory and look for a file called ''localbotserver.cfg'', open this with notepad and it should say the following in the file:
set sv_hostname "^1Bot ^3War^5fare ^7Local server"
set sv_punkbuster "0"

set g_gametype "dom"
set sv_mapRotation "map mp_shipment"

if you want all the maps to be playable in the game you can replace the full text with the following:
set sv_hostname "^1Bot ^3War^5fare ^7Local server"
set sv_punkbuster "0"
Set scr_allowvote "1"
Set scr_allowvote_changemap "1"

set g_gametype "dom"
set sv_mapRotation "map mp_shipment" "map mp_convoy" "map mp_backlot" "map mp_bloc" "map mp_bog" "map mp_countdown" "map mp_crash" "map mp_crossfire" "map mp_citystreets" "map mp_farm" "map mp_overgrown" "map mp_pipeline" "map mp_showdown" "map mp_strike" "map mp_vacant" "map mp_cargoship" "map mp_crash_snow" "map mp_broadcast" "map mp_carentan" "map mp_creek" "map mp_killhouse"

Save the file and now if you go into the game after the match it will load the next map and auto spawn the bots for you that you used in the last match.
If you want to switch to a specific map, then while in game press ''ESC'', Call for vote, change map to whatever map you want, then it should say vote passed on the left, now you can finish the match or press ''ESC'', Call for vote, next map.

The bots that will join the match are randomly chosen of a list and will have standard the names BotA, BotB, BotC, BotD, ect.
You can change these names to something custom.
in the Call of Duty 4 Directory, go to mods, MP_Bots, Scriptdata. There will be a file called ''botnames'', open this with notepad and you Can change the names to whatever you want, keep in mind the names can be max 15 letters long, including spaces and symbols.
Any longer than 15 will be just cutoff in the scoreboard.

Now let's make the process of starting the game easier.
When you want to start the game from a normal install, you have to go into the game directory and click on the two server programs.
We can make this a one click.
First go into the main directory of Call of Duty 4, and make a copy of ''z_botwarfare_localserver'' and rename the copy to something easy to recognize, I named it ''Launch COD4X bots''.
Leave ''z_botwarfare_localserver'' as it is.
Edit the renamed copy file with Notepad and replace the text with:
START z_botwarfare_localserver.bat
START z_botwarfare_playserver.bat

Now when we open this file it will automatically open the server and launch the game at the same time.
Now make a shortcut of this file, then right click the shortcut and open properties, copy the target line that should look like "C:\Program Files (x86)\Steam\Steamapps\Common\Call of Duty 4\Launch COD4X bots.bat" or where ever you have the game installed.
Now go to steam an go to Call of Duty 4, then click on the gear symbol on the right and go to properties.
Paste the Target line in ''Advanced users may choose to enter modifications to their launch options.'' and add %command% behind it.
it should look like this:
"C:\Program Files (x86)\Steam\Steamapps\Common\Call of Duty 4\Launch COD4X bots.bat" %command%
Including the '' symbols in front and after the file location.
Now you can just launch the game from steam and it will launch both the applications at once and put you right in the match.

Have Fun!, you are now fully set to go and this can be played fully offline without any internet.

https://sp.zhabite.com/sharedfiles/filedetails/?id=3498442654

16 Comments
neek 15 Jun @ 1:40pm 
found it out myself, had to add +set thereisacow 1337 +set developer 1 +set sv_cheats 1 to my localserver batch file.
neek 15 Jun @ 1:04pm 
@lindeboombier alright thanks for the info. Is there any other way I can enable these commands?
/ui_hud_hardcore 0;g_compassshowenemies 1;cg_drawcrosshair 1;
Lindeboombier  [author] 15 Jun @ 12:56pm 
@Jetzs, I don't think that is possible with just this mod, you need NAV-Mesh data on the maps, so the bots can use it to move around, as far as I know the normal maps don't have NAV-Mesh data.
The bot warfare mod adds NAV-Mesh data to the base maps so that they are playable, if you can make NAV-Mesh data for the devmaps, then in theory you could play bots on them.
neek 15 Jun @ 12:48pm 
how can i play on devmaps with this?
sprofile 6 Jun @ 1:51am 
Thanks man
Lindeboombier  [author] 30 May @ 10:50am 
I couldn't tell you, you would need the internal name that is used in the game for oldschool and hardcore.
I tried to google it but didn't find any answers
Lesandi 30 May @ 8:39am 
And how about to add a hardcore/oldachool mode ?
Lindeboombier  [author] 29 May @ 8:06pm 
@alpha_Wiskey you would have to go to the file ''localbotserver.cfg'' and change the set g_gametype in there.
It's standard domination, I haven't tried any other game mode
Lesandi 29 May @ 4:36pm 
How to change a game mode ?
kumoridome 6 May @ 1:42am 
Bot Warfare 2.2.0, when installed with the current CoD4x (client_21_1 and server-windows_21.2), has bugs such as bots not being able to use killstreaks, weapons disappearing when climbing over obstacle, and some perks not working (C4, RPG, Claymore, Last Stand with no handgun).
To work around this and make it work, rollback to 2.1.0, or fix the CoD4x server source code and rebuild it.