Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-04-12 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Stupid Bots!  (Read 219 times)

Offline Moose

  • Level 2 Apprentice
  • **
  • Posts: 54
Stupid Bots!
« on: March 13, 2008, 10:48:07 AM »
I have my server set up so that there are always 2 bots on so that people have something to fight against when they join if the server is empty.  My problem is that I can't seem to get the setting configured so that one of the bots leaves when a player joins.  I'm stuck with 2 bots playing all the time unless an admin comes on to kick them.
Basically what I want is to have 2 bots on when no one is playing.  I want one bot to leave (or switch sides) when one player is on server.
Finally, I want all bots to exit when there are 2 or more players on the server.  I can copy/paste my current bot settings from my server.cfg file if needed.
PLEASE HELP!

Offline Hetal

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 417
Re: Stupid Bots!
« Reply #1 on: March 13, 2008, 05:06:26 PM »
Code: [Select]

//General CS:Source BOT Config v5
echo "Loading CS:Source Bot Configuration Settings..."

//Control how bots talk. Allowed values: 'off', 'radio', 'minimal', or 'normal'.
bot_chatter normal

//Set to 0 to let bots complete map objectives. 0/1
bot_defer_to_human 1

//0 is Easy, 1 is Normal, 2 is Hard, & 3 is Expert.
bot_difficulty 2

//Bots wait for a human to join before joining. 0/1
bot_join_after_player 0

//Add bot(s) to a specific team. any/CT/T or Adds a bot to whichever team has fewer players.
//bot_join_team:
//bot_add
//bot_add_ct
//bot_add_t

//Defines a Prefix for all bot's names.
bot_prefix " Moose | "

//Reports on the bots' memory usage
//bot_memory_usage

//Restricts the bots to particular weapons
//bot_knives_only
//bot_pistols_only
//bot_snipers_only
bot_all_weapons

//Weapon Control. 0/1
bot_allow_grenades 1
bot_allow_machine_guns 1
bot_allow_pistols 1
bot_allow_rifles 1
bot_allow_shotguns 0
bot_allow_snipers 1
bot_allow_sub_machine_guns 0

//Bots with high co-op may automatically follow a nearby human player. 0/1
bot_auto_follow 0

//Bots will not buy if their money falls below this amount. Default = 2000
bot_eco_limit "800"

//Bots may occasionally go 'rogue'.
//Rogue bots do not obey radio commands, nor pursue scenario goals. 0/1
bot_allow_rogues 1

//Determines the type of quota. Allowed values: 'normal' and 'fill'.
//If 'fill', the server will adjust bots to keep N players in the game, where N is bot_quota.
bot_quota_mode "fill"

//Bots will automatically leave to make room for human players. 0/1
bot_auto_vacate 1

//Set to min # of bots allowed on server
bot_quota 2

Open Notepad, copy & paste below code and save it as bot.cfg and then move this file to your cfg folder.

Now add the following line in your server.cfg "exec bot.cfg" (with out "")

and restart your server, it should work just like you want and it will also make your server.cfg less Mooseeeeee looking. ;)

Offline Moose

  • Level 2 Apprentice
  • **
  • Posts: 54
Re: Stupid Bots!
« Reply #2 on: March 17, 2008, 03:34:34 PM »
Thanks so much! That works perfectly!

Offline F.o.R

  • Level 0 Beginner
  • Posts: 16
  • I'm a newb - I do my best - live with it
    • [D-u-G] Danish United Gamers
Re: Stupid Bots!
« Reply #3 on: October 17, 2009, 04:49:57 PM »
thanks, this CFG works like a charm!!!

only one thing, is there a command with this cfg to add and remove bots???
Wating for a new better working version of WCS:Python