Call of Duty 4: Modern Warfare (2007)

Call of Duty 4: Modern Warfare (2007)

Zbyt mało ocen
How to mod Bots for Offline play (COD4X)
Autorstwa: 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.

1. -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.

2. -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.

3. -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 traget 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 thier 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.
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Komentarzy: 7
MarkedOne 6 maja o 1:42 
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.
Shepherd 3 marca o 7:26 
Nvm fixed it though by reinstalling Cod 4 tysm dude! :steamhappy:
Shepherd 2 marca o 20:36 
Probably because i'm doing something wrong but i'm pretty sure i've put where everything belongs but whenever i open z_botwarfare_localserver.bat and z_botwarfare_playserver.bat it goes into a waiting for connection screen before coming up with an error that says, could not find zone in some usermaps file that isn't in my cod 4 directory and plus send me to the menu after 16 seconds and says sever connection timeout. I've been trying to do this for a week and some help would be greatly appreciated!
Zerhuskly 25 lutego o 0:58 
Thank you, this was nice and easy to understand. I was driving myself crazy trying to figure out how to get bots to work and I just so happened to stumble upon your guide, you're a lifesaver.
Lindeboombier  [autor] 20 lutego o 13:50 
@WaterTypeMaster yes, but you play on a offline account, so this will not transfer to your main profile. but everything works like it would be in multiplayer. level up, unlock weapons, unlock camo's, unlock attachments, prestige, complete challenges ect. it's just against bots instead of players.
WaterTypeMaster 20 lutego o 10:14 
Do you still level up and get to complete challenges, e.g., camos with this?
toe sniffer 13 lutego o 7:16 
Thank you for this, works perfectly!!!! You're a legend