Getting Started - T-Rizzle12/Custom-Gmod-Bot GitHub Wiki
Ok, first things first, you need to create a multiplayer game, with at least 2 player slots, (One for you and one for the bot.)
Now that you have loaded in, it’s time to create your bot. First, you should open your developer console (Default key: ~).
Next, enter TRizzleCreateBot into the console. This command is how you create bots. Before you send the command you need to give your bot a name because if you don’t name your bot, nothing will happen. For tutorial purposes I will set the name of my bot to Bot. Your command should like something like this TRizzleCreateBot Bot, there is more arguments for the TRizzleCreateBot command but in this tutorial we will only specify the bot’s name.
If you haven’t noticed already, after entering the command a “player” has joined your server. This is your bot, and it will follow you wherever you go. If the bot gets stuck on walls or can't move then the map your are on might not have a navigation mesh. You should generate some so the bot can follow you properly.
Time for some customization. For this tutorial, I only show the TBotSetPlayerModel command. There will be more pages for each command that will explain what they do in detail and how to use them.
TBotSetPlayerModel will set the player model of specified bot. If no player model is given or the player model given is invalid, it will default to "kleiner".
Lets change your bots player model to Alyx. Open the developer console and enter TBotSetPlayerModel botname alyx. Here is an example: TBotSetPlayerModel Bot alyx
If you did this correctly your bot should have swapped its player model to Alyx. Make sure that you put alyx all lowercase. That is the model’s simple name. My addon will convert the simple name into a model path and apply it on the bot. Most of the time the player model selector should give you the simple name when hovering your mouse over a model. If it doesn’t work contact the owner of the addon for the simple name of the model.