Commands

Automatic Commands
If you want commands to automatically apply when you launch a game or server add the commands to the new_bot.cfg file.

Most commands can be found by typing help into the console, then picking the category you want.

Help

help
Shows new_bot command categories.

help addbot
Shows commands related to adding/removing bots.

help balance
Shows commands related to class balance of joining bots.

help behaviour
Shows commands related to bot behaviour, such as guard time and grenade usage.

help waypoint
Shows commands related to creation of waypoints.

help route
Shows command related to creation of routes.

help debug
Shows command related to debugging the bot.

Add/Remove bots

botmenu
Shows menu to control the bots.

addbot [team] [class] [skill] [name]
All of the values are optional when adding a bot, if you leave any empty they will be randomized.
team accepts: 1/2/allies/axis
class accepts: 1-10/type
skill accepts: 1-5
name accepts: Specified name, otherwise picks from the names.txt files.

For example if you want to add a totally random bot you just need to enter.
addbot

If you would rather add a specific bot.
addbot axis 7 1 AxisMGBot
This would add an axis bot with the highest skill, equipped with an MG42 and called AxisMGBot.

You can also specify just a class type.
addbot assault
This will add a bot on a random team with an assault class.

See the tables below for class number/type references

[class]Allies (1)Axis (2)Brit (1)
1RiflemanGrenadierRifleman
2Master SergeantStosstruppeSergeant Major
3SergeantUnteroffizierMarksman
4Staff SergeantSturmtruppeGunner
5SniperScharfschuetze PIAT
6Support InfantryMG34 
7Machine GunnerMG42 
8BazookaPanzerschreck
9FG42
10Scoped FG42
[class]Allies (1)Axis (2)Brit (1)
rifleGarand/M1 CarbineK98/K42Enfield
assaultThompson/GreaseMP40Sten
supportBARMP44/FG42Bren
sniperSpringfieldScoped KarScoped Enfield
mg30CalMG34/MG42 Bren
rocketBazookaPanzerschreckPIAT

You can specify which bots you want on a per map basis by adding a dod_mapname_bots.cfg file to new_bot/maps and filling out the addbot commands.
For example if you want 6 bots with specified teams/classes/skills on dod_anzio you could add the file dod_anzio_bots.cfg with the contents:

addbot allies rifle 1
addbot 1 3 2
addbot 1 rocket
addbot 2 1 2 RifleMan
addbot axis assault 1
addbot 2


Take note of how you can use multiple different formats for each bot if you so desire.
There is also a default_bot.cfg file which is used if there is no specific map file available, fill this in if you want to have a set amount of bots on every map.

Balance

balance garand [0-100] Default: 50
The percent chance that a US bot added using addbot rifle will pick a Garand over an M1 Carbine.

balance kar [0-100] Default: 50
The percent chance that an axis bot added using addbot rifle will pick a K98 over a K43.

balance thompson [0-100] Default: 50
The percent chance that a US bot added using addbot assault will pick a thompson over a greasegun.

balance fg42 [0-100] Default: 50
The percent chance that an axis bot added using addbot support will pick an FG42 over an MP44.

balance fg42s [0-100] Default: 0
The percent chance that an axis bot added using addbot sniper will pick a Scoped FG42 over a Scoped Kar.
Bot’s don’t spawn with Scoped FG42s even if they pick the class, so this is defaulted to 0

balance MG42 [0-100] Default: 50
The percent chance that an axis bot added using addbot mg will pick an MG42 over an MG34.

Behaviour

observer [on/off]
When on bots won’t shoot at human players

bot_passive [on/off]
When on bots won’t shoot at anyone

bot_run_speed [50-500] Default: 220
The speed that the bots will move forwards/backwards. It is not recommended to change this.

bot_sprint_speed [50-500] Default: 330
The speed that the bots will sprint. It is not recommended to change this.

bot_strafe_speed [50-500] Default: 220
The speed that the bots will strafe sideways. It is not recommended to change this.

bot_strafe_percent [0-100] Default: 10
The percent chance a bot will randomly strafe on it’s way to a waypoint when it can.

flag_priority_percent [0-100] Default: 75
The percent chance a bot without a sniper/mg/rocket will head to a flag instead of a guard point.

flag_defend_percent [0-100] Default: 50
The percent chance the bot will include flags their team already owns when choosing a flag to head to.

wait_for_cap_percent [0-100] Default: 75
The percent chance the bot will wait at a capture area if it wants to leave and the flag hasn’t yet been captured.

min_guard_time [0-60] Default: 5
The minimum time in seconds a bot will stay at a guard point.

max_guard_time [0-60] Default: 10
The maximum time in seconds a bot will stay at a guard point.

bot_grenade_percent [0-100] Default: 25
The percent chance a bot will try throw a grenade if they have one. Also controls the chance for a bot to head to a grenade waypoint.

bot_grenade_time [1-60] Default: 10
The time in seconds the bot will wait between throwing grenades.

bot_call_enemy_percent [0-100] Default: 10
The percent chance the bot will use enemy ahead, MG ahead and sniper voice commands when they see enemies. If you put this too high the bot will be very noisy and annoying.

gun_game_mode [on/off] Default: off
Changes bots weapon behaviour to help them play gun game.

Waypoints

Waypoints can only be created on a listen server.

waypoint [on/off] Default: off
Show/Hide waypoints and paths.

waypoint add
Adds a waypoint at the players position.

waypoint addaim
Add aim target to the nearest waypoint.

waypoint delete
Delete the nearest waypoint.

waypoint deleteaim
Removes aim target from the nearest waypoint.

waypoint save
Save the wpt file, will also rebuild the routes.

waypoint load
Load wpt file, will also rebuild the routes and convert sturmbot waypoints.

waypoint menu
Display the waypoint tagging menu.

waypoint info
Will output the nearest waypoint information into the console.

waypoint update
Will check for weapons or objects near waypoints and add tags appropriately.

waypoint connect [index]
Will connect the nearest waypoint to a flag or obstruction.

waypoint move
Will move the nearest waypoint to your position.

waypoint flipteams
Will flip the team tags on all the waypoints in the map. Allowing you to make reversed team waypoints very quickly. You will need to save the waypoints for the routes to update.

waypoint check
Will run some tests on the waypoints to find any errors.

waypoint checkpaths
Will run some tests on the paths to find any errors.

waypoint team [0/1/2]
Will convert the nearest waypoint to either NEUTRAL/ALLIES/AXIS.

waypoint spawns
Add waypoints on all of the spawn points so it’s easier to know where bots will spawn, some of the spawn points float in the air so you might want to use the waypoint move command to bring them back down to the floor.

waypoint optimize
Will fill gaps in the waypoint file to remove unused waypoints, you will need to save the waypoints again after running this for it to take effect.

pathwaypoint [on/off] Default: off
Show/Hide paths.

pathwaypoint create1
Mark the start point of a new path.

pathwaypoint create2
Mark the end point of a new path, will create the path if valid.

pathwaypoint remove1
Mark the start point of a path to delete.

pathwaypoint remove2
Mark the end point of a path to delete, will delete the path if it exists.

Routes

route menu
Displays a menu to control route creation.

route [start_wpt] [end_wpt]
Will tell you the next waypoint a bot would travel to when travelling from the start_wpt to the end_wpt.

route [on/off]
Will display the routes the bot will take from the nearby waypoint.

route next
Will cycle through the routes the bot will take from the selected waypoint.

Compass

compass [on/off]
Show/Hide the compass beam.

compass [wpt_index]
Point the compass beam at the specified waypoint.

compass [x] [y] [z]
Point the compass beam at the specified location.

Debug

debug add [1/2/allies/axis] [1-10/type]
Adds a debug bot to help test waypoints.

debug goal [1/2]
Tells the debug bot on the specified team to come to the nearest waypoint.

debug goal [1/2] [wpt_index]
Tells the debug bot on the specified time to come to the specified waypoint.

debug goal
Outputs the waypoints that all the bots are currently heading to.

debug flags
Outputs information about control_points and capture areas to the console.

debug flags [flag_index]
Outputs the waypoints connected to the specified flag_index.

debug optimize
Will tell you how many gaps there are in the waypoint file, so you can see if you should run waypoint optimize.

flagdebug
Alternative to debug flags, to make transition from sturmbot easier.