LogoHeader

FoxBot Commands

 

Console Commands:

 

Adding Bots:

addbot [Team: 1-4] [Class: 1-10] [Name] [Skill: 1-5]

There are several different ways you can use the addbot command to add bots to your game.

1) addbot - By typing just the command addbot, a single bot will be added to the game. The computer will select the bots team, class, and name.

2) addbot x – The addbot command followed by a space and a number will add a bot to the team of your choice (1=Blue, 2=Red,   3=Yellow, 4=Green). The computer will select the bots class and name.

3) addbot x x – The addbot command followed by 2 separate numbers will add a bot to the game on the team of your choice, as the class of your choice. The first number is the team number. The second number is the number of the class as seen in the class selection menu. The computer will select the bots name.

4) addbot x x name – This command is identical to the one above, except that you assign the bot a name by adding one to the line after the second number (Example: addbot 1 2 BigBot. This command will add a bot to the blue team(1) as a sniper(2) with the name BigBot.).

5) addbot x x name skill – This command is the most specific. Same as the one above, except after the name you would put another number. This number would be the skill level of this particular bot (Example: addbot 1 2 BigBot 1. This command will add a bot to the blue team(1) as a sniper(2) with the name BigBot and the skill level of 1. (1 is best 5 is worst)).

 

NOTE: From Foxbot version 0.705 onwards, if you do not specify a class with the addbot command then the spawned bot will be able to change class whenever it wants to.

 

Kicking Bots:

kick Name

·You may kick the bots at any time by typing kick followed by the bots name.
·Example: kick BigBot - will kick the bot named BigBot from the game.

kickall

·You may also remove all the bots from the game by typing the command kickall.

 

Bot Skill Level:

botskill_upper Number 1-5

·This command will set the best possible skill level to be randomly assigned to bots that join the game automatically.
Skill levels are a value 1-5. Skill 1 is the best, Skill 5 is worst.

botskill_lower Number 1-5

·This command will set the worst possible skill level to be randomly assigned to bots that join the game automatically.
Skill levels are a value 1-5. Skill 1 is the best, Skill 5 is worst.

 

bot_skill_1_aim Number 0-200

·This command will affect the accuracy of all bots of skill 1 in the game or that join the game. If you set it to 0 then bots of skill 1 will have the best accuracy possible, or you can increase it to increase their inaccuracy(i.e. worsen their aim).

bot_aim_per_skill Number 5-50

·This command will affect the inaccuracy of all bots of skill levels 2-5 in the game or that join the game. This sets the difference in inaccuracy between one bot skill level and the next. For example, if you set it to 20 and bots of skill level 1 have an inaccuracy of 30 then a bot of skill 2 will have an inaccuracy of 50, and a bot of skill level 3 will have an inaccuracy of 70.

 

Waypoint Editing (For more information look at the waypoint tutorial):

bot_debug on/off

·A bot will report at the console if he can't reach a goal (health/flag etc) from a waypoint, giving his goal and current waypoint as well.

locate_waypoint on/off

·Turns waypoint location on/off.

locate_waypoint Number

·Sets the destination of the waypoint locator beam(to help you find specific waypoints). This will also provide information about the waypoint it points to, such as it's physical distance, route distance and height from your location.

pathwaypoint_connect on/off

·Turns on/off automatic path connection to a waypoint useful for when you want to place a waypoint but you don’t want paths to be automatically generated to and from that point.

pathwaypoint create1

·Stores first waypoint to make a new path connection.

pathwaypoint create2

·Makes the new path connection from the waypoint stored from 'pathwaypoint create1' command.

pathwaypoint remove1

·Stores first waypoint to remove path from this waypoint.

pathwaypoint remove2

·Removes the path connection from the waypoint stored from 'pathwaypoint remove1' command.

waypoint on/off

·Show or hide waypoints, use if you want create waypoints for map.

waypoint add

·Add waypoint to current position (player or spectator).

waypoint delete

·Delete waypoint from current position (player or spectator).

waypoint save

·Save the current maps waypoints to its waypoint file. Each maps waypoint file is stored in: \foxbot\tfc\waypoints\mapname.fwp
·Warning: This command will overwrite the existing waypoint file for the current map.

waypoint load

·Load saved waypoints.

waypoint info

·Get waypoint information for the waypoint nearest to you. For example, what team should use it, etc.

waypoint menu

·Show a waypoint menu for the waypoint nearest to you.

waypoint_author

·Allows you to sign your own waypoint file. Here is how to use it.
·1) Turn on waypoint mode (waypoint on)
·2) Type waypoint_author Myname or waypoint_author "My name" if it contains spaces.
·3) Then you must save the waypoints (waypoint save)
·The result will be seen at the beginning of the round in a listen server.

 

Other Console Commands:

bot_chat Number 0 - 1000

This command lets you influence how often the bots trash talk. Set it higher if you want more chat, or 0 for none.

min_bots Number 0 - 32 [-1 Turns this off]

Minimum bots in server.

max_bots Number 0 - 32 [-1 Turns this off]

Maximum bots in server.

bot_total_varies 0 - 3

When this setting is set to 1, 2, or 3 the number of bots on the server will fluctuate from min_bots to max_bots randomly(to simulate playing on an Internet public server).
The higher you set it the more often the numbers of bots playing will change.

bot_team_balance Number 0 for off, 1 for on

Turn this on to have the bots auto switch when teams become uneven.
If you turn this off the bots will be allowed to decide for themselves if and when they balance the teams out.

bot_bot_balance Number 0 for off, 1 for on

Turn this on to balance the teams in a bot to human ratio (May be buggy).

pause Number 0-100

Number of seconds before bots join.

bot_create_interval 1 - 8

Time(measured in seconds) between auto-creating one bot and the next. Note: On slower machines and/or old versions of TFC setting this to 1 or 2 might(or might not) cause your server to crash(caused by a Half-Life bug).
Setting this to 3 will be safe if settings 1 or 2 cause any instability.

bot_xmas on/off

Controls whether or not the bots celebrate Christmas.

bot_allow_moods 0 = off, 1 = on

If this is set to 1 any bots created will be given random personality traits and/or moods.
Set this to 0 if you want all the bots to have the same personality profile.

bot_allow_humour 0 = off, 1 = on

If this is set to 1 then the bots are allowed to go crazy occasionally and do daft stuff such as using melee weapons only, or go looking for walls to graffiti.

defensive_chatter Number 0 for off, 1 for on

Controls bots announcing defense related messages.

offensive_chatter Number 0 for off, 1 for on

Controls bots announcing offense related messages.

bot_can_use_teleporter on/off

Controls whether or not you want bots using Teleporters.

bot_can_build_teleporter on/off

Controls whether or not you want bot Engineers to build Teleporters.
Note: It's Best to execute this command before a map starts.

bot_use_grenades 0 - 2

Controls whether or not you want the bots to use grenades.
0 = No grenade usage at all.
1 = Concussion jumping is allowed.
2 = The bots can use all grenades freely.

botdontshoot Number 1-2

This command is used to turn off the bots shooting. Useful for testing purposes.
When enabled, the bots will just run past each other without fighting.
1 = Bots hold fire, 2 = Bots shoot.

bot_info

Show information such as: foxbot variables, foxbot info, foxbot version.

botcam a_bots_name

The botcam allows you to see through the eyes of the bot showing what it sees and targets. It also reveals debug information about the bot.

spectate_debug 0 - 3

This command only works on listen servers, and was created mainly for development use. When the (spectating)host player gets near to a bot some information will appear about the bot and the waypoints it is interested in.
0 = off,
1 = show the bots job buffer(what it's thinking about),
2 = show any blacklisted jobs(any jobs it is temporarily ignoring),
3 = show some of the bots navigation info.

 

Dedicated Servers:

All the commands above can be used in a dedicated server. With a dedicated server you must prefix each command with the word 'bot' and surround the command with quotation marks.

For example: bot "max_bots 10"

 

NOTE: The waypoint editing commands were intended for use on a listen server, not a dedicated server.

 

Command Menu:

"commandmenu.txt" in tfc folder, file expanded with FoxBot.