bms_bot

From Valve Developer Community
Jump to: navigation, 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/CommandParameters or default valueDescriptorEffect
bot_addVoidSpawn 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_changeclassStringChange class for all bots. It is Team Fortress 2 Team Fortress 2 leftover, Black Mesa don't provide any classes for players.
bot_crouch0BoolForce all bots to crouch. Doesn't work.
bot_flipout0BoolWhen on, all bots fire their guns.
bot_forcefireweaponStringForce all bots to use and fire from specified weapon. Use classname as parameter.
bot_forceattackon1BoolForce all bots to hold attack button instead of spamming it.
bot_forceattack20BoolForce all bots to fire secondary attack instead of main.
bot_mimic0IntegerBot uses usercmd of player by index.
bot_mimic_yaw_offset0IntegerOffsets the bot yaw.
bot_modelmodels/player/mp_scientist_hev.mdlStringModel to use. Doesn't seems work.
bot_sendcmdStringForces bots to send the specified command.
bot_killIntegerKills 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.