Console Commands

Topics

  1. About FlexBot Console Commands
  2. Commands To The FlexBot System
  3. Commands To Individual Bots
  4. Commands To All Bots
  5. Commands To Groups of Bots
  6. Commands To Bots On Specific Team
  7. Using .cfg Files To Automate Bot Control Tasks

About FlexBot Console Commands

Although there is a menu system for managing the bots, every feature available on the menu is also available from the console. In fact, when a user chooses a menu option, the menu simply dispatches the appropriate console command. Therefore, the method of control is entirely the user’s preference.


Commands To The FlexBot System


Commands To Individual Bots

(where n is the bot's player number and square brackets indicate mutually exclusive arguments)


Commands To All Bots


Commands To Groups of Bots


Commands To Bots On Specific Team


Using .cfg Files To Automate Bot Control Tasks

Because all control features are implemented as console commands, standard Half-Life configuration files (.cfg files) can be used to automate any bot control tasks.

Using configuration files to automate bot management tasks can be a simple and convenient way to ease debugging. Key binds are the most basic form of automation. If you would like to make the bot menu pop up with a single key press, you could put a line in your .cfg file to bind it to the "m" key:

bind "m" "bot menu"

A more complex task might be to pause all of the bots in the game, add a new bot, and then make the bot menu pop up. This could be achieved by defining an alias:

alias "task1" "bot pause;addbot;bot menu"

This task would now be available by typing "task1" into the console. It could also be bound to a key:

bind "t" "task1"

See http://www.ukterrorist.com/guides/scripting/intro/ for more information on scripting Half-Life tasks.