bms_bot

From Valve Developer Community
Jump to navigation Jump to search
Info player sALT2.png
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map.

bms_bot is a point entity available in Black Mesa Black Mesa. A NextBot entity that acts like a player entity. Unlike Counter-Strike: Global Offensive Counter-Strike: Global Offensive, this bot does not have complex artificial intelligence, all it can do is walk randomly and execute certain commands, which is why this bot is only suitable for testing of some mechanics and optimization if there is more than one player on your map. All keyvalues, outputs and inputs are same as player entity in Black Mesa Black Mesa.

Icon-Bug.pngBug:Creating the entity through ent_create will crash the game. Use the bot_add command.
Icon-Bug.pngBug:It doesn't move if damaged.
Icon-Bug.pngBug:It spams GetUserSetting: cvar 'cl_toggle_duck' unknown. message (the message visible only with enabled developer command).

Dedicated Console Variables

Cvar/Command Parameters or default value Descriptor Effect
bot_add Void Spawn a bot. The bot will have a unique numbering depending on how many bots you have already spawned (the first bot will use Bot01 name).
bot_changeclass String Change class for all bots. It is Team Fortress 2 Team Fortress 2 leftover, Black Mesa don't provide any classes for players.
bot_crouch 0 Bool Force all bots to crouch. Doesn't work.
bot_flipout 0 Bool When on, all bots fire their guns.
bot_forcefireweapon String Force all bots to use and fire from specified weapon. Use classname as parameter.
bot_forceattackon 1 Bool Force all bots to hold attack button instead of spamming it.
bot_forceattack2 0 Bool Force all bots to fire secondary attack instead of main.
bot_mimic 0 Integer Bot uses usercmd of player by index.
bot_mimic_yaw_offset 0 Integer Offsets the bot yaw.
bot_model models/player/mp_scientist_hev.mdl String Model to use. Doesn't seems work.
bot_sendcmd String Forces bots to send the specified command.
bot_kill Integer Kills the bot with the specified userid or kills all of them if no id is given.
Note.pngNote:There are many cvars with nb_ prefix. These doesn't affect this entity.