Author Topic: Bots  (Read 943 times)

Offline pat300

  • Rank: Private
  • *
  • Posts: 15
Bots
« on: November 02, 2010, 08:42:27 am »
I know that this topic was already discussed in the forum, but I still do not know how to add bots, please help me write everything in order (most points)
I do not want to play through LAN and Internet






 sorry for my english

Offline =DCS=Chewylouie

  • Rank: Private
  • *
  • Posts: 5
Re: Bots
« Reply #1 on: November 02, 2010, 10:25:38 am »
in my server.cfg i have this
et sv_punkbuster "1" but in my startup lin which is called from a batch file i have this
as my command line @echo off
echo **************************************
echo * DCS_Snipers CoD 4 Modern warfare startup script *
echo **************************************
::
:: the drive your program is installed
set MYDRIVE=C:
::
:: the directory you installed Cod 4 modern warefare. Use " " to enclose the path!
set PROGDIR="C:\Program Files\Activision\Call of Duty 4 - Modern Warfare"

::  set the name of your mod here. The name of the mod MUST be one word.
set MYMODNAME=Extreme_v3
::
:: set the maximum number of players you allow on your server
set MAXCLIENTS=32
::
:: set the port here. Standard is 28960
set MYPORT=28960
::
:: depending on the language version you bought you must set the appropriate number
:: English = 0, French = 1, German = 2, Italian = 3, Spanish = 4
set LANGUAGE=0
::
:: Punkbuster Settings: on = 1, off = 0
set PUNKB=0
::
:: set the IP. If your PC is running behind a router use "localhost" otherwise your IP address
set MYIP=localhost
%MYDRIVE%
cd %PROGDIR%
%PROGDIR%\iw3mp.exe +set fs_game mods/%MYMODNAME% +set dedicated 1 +set net_ip %MYIP% +set net_port %MYPORT% +set sv_punkbuster %PUNKB% +set sv_maxclients %MAXCLIENTS% +set ui_maxclients %MAXCLIENTS% +exec server.cfg +map_rotate

then a little lower in my server.cfg i have this

// test bots (can crash the server on next map!)
 set scr_testclients "10"  make sure the //  are removed  on this and the next line.

// freeze the bots to the ground?, easier when testing!
set scr_botfreeze "1"  0 will alow them to move 1 freezes them on the spot

Offline Egilan

  • Rank: Private
  • *
  • Posts: 4
Re: Bots
« Reply #2 on: November 02, 2010, 11:45:25 am »
I solved it by putting to shortcut preferences, "target"-field this: +set scr_testclients "10" after the path and last " (it should be something similar to this: "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +set scr_testclients "10" ). Then open your game, make a dedicated server, open new cod4 and join to your local IP, something like: 192.168.1.1, you can check it from Windows Network "thing". :D But, don't be confused, you won't get score from killing (at least I didn't get) --> it is unranked.

Hope this helps. :)