Console Commands and Variables - OfficerSpy/TF2-MvM-Defender-TFBots GitHub Wiki

Regular Commands

Command Note
sm_votebotssm_vb Starts a vote to summon the bots.
sm_botprefsm_botpreferences Opens the player bot preferences menu.
sm_viewbotchancessm_botchances Shows the current chances of each bot class to be chosen.
sm_viewbotlineupsm_botlineup Shows the current group of bots that will spawn in on the next summon.
sm_rerollbotclassessm_rerollbotssm_rollbots Shuffle the current bot lineup.
sm_playwithbots Summons a random group of bots when on Blue team.
sm_requestbot Adds an additional bot, if possible. The amount that can be added is based on the value of sm_redbots_manager_extra_bots. Can specify a class name to add a specific kind of bot. Can specify "random" to add a bot with a randomly chosen class.
sm_choosebotteamsm_cbt Choose your ideal lineup of bots.

Admin Commands

Command Note
sm_addbots Shows a menu of each class. Selecting any item will spawn a bot under that class.
sm_purgebots Kicks all current active bots from the game. Specify argument "1" to also stop the bot manager from managing bots.
sm_botmanager_stop Tells the bot manager to stop managing bots.
sm_view_bot_upgrades Gives attribute data of the specified player. You can specify a slot to the attributes of a certain weapon.

Console Variables

Command Default Value Note
sm_redbots_manager_debug 0 Enables debug mode for the bot manager.
sm_redbots_manager_debug_actions 0 Enables debug mode for bot actions.
sm_redbots_manager_mode 0 The current mode of the bot manager controlling how bots are added.0 = summoned by vote1 = summoned by players using ready status toggle2 = summoned only when the wave starts
sm_redbots_manager_bot_lineup_mode 0 How the mod handles bot team composition.0 = random classes1 = classes by RED players' preferences2 = class must be chosen by a RED player3 = class by player preference or chosen
sm_redbots_manager_use_custom_loadouts 0 Allows bots to spawn in the game with their own unique set of weapons.
sm_redbots_manager_kick_bots 1 Kicks all active bots when the wave completed or failed.
sm_redbots_manager_min_players 3 Minimum amount of human players and Defender bots required to start the game. It serves as a baseline and is adjusted based on the mission difficulty. Only used in mode MANAGER_MODE_MANUAL_BOTS.
sm_redbots_manager_defender_team_size 6 The ideal team size of Red team. This value is factored in calculating how many bots to add appropriately.
sm_redbots_manager_ready_cooldown 30.0 Delay before anyone can be ready again.
sm_redbots_manager_keep_bot_upgrades 0 TBD
sm_redbots_manager_bot_upgrade_interval 0.1 The time (in seconds) between each upgrade purchase the bot does during the Upgrade behavior. Set to -1 to use random variance.
sm_redbots_manager_bot_use_upgrades 1 Allow bots to purchase upgrades.
sm_redbots_manager_bot_buyback_chance 5 Chance the bot decides to buyback into the game while dead.
sm_redbots_manager_bot_buy_upgrades_chance 50 Chance the bot decides to buy upgrades after respawning.
sm_redbots_manager_bot_max_tank_attackers 3 Maximum amount of bots that are allowed to focus on Tank.
sm_redbots_manager_bot_aim_skill 0 Method of bot aiming:0 = normal1 = more reactive2 = way more reactive
sm_redbots_manager_bot_reflect_skill 1 How bot uses airblast:0 = normal1 = improved against players2 = improved against players and projectiles
redbots_manager_bot_reflect_chance 100.0 Percentage chance bot will reflect incoming projectiles. Only used when sm_redbots_manager_bot_reflect_skill is ≥ 2.
sm_redbots_manager_bot_backstab_skill 0 How bot backstabs:0 = backstab based on player's angles1 = backstab based on when knife is raised
sm_redbots_manager_bot_hear_spy_range 3000.0 Range (HU/s) at which bots will react to visible robot Spy laughter.
sm_redbots_manager_extra_bots 1 How many more extra bots are allowed to be added.
sm_redbots_manager_bot_notice_spy_time 0.0 How long before bots react to Spy robot laughter.