Meledy-PlayerBots icon

PlayerBots

Adds AI controlled teammates to your game.

Last updated 2 weeks ago
Total downloads 96877
Total rating 29 
Categories Mods Server-side
Dependency string Meledy-PlayerBots-1.7.1
Dependants 15 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2117 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2117
RiskofThunder-HookGenPatcher-1.2.5 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.5

README

PlayerBots

Adds AI controlled teammates to your game.

Features

  • Playerbots can be spawned as regular summons or as players. They spawn as summons by default, but can but spawned as players by changing PlayerMode in the config.
  • Bots spawned as players can pick up items, show up on the scoreboard, influence map player scaling, and all the other stuff that happens when there are multiple players in the game.
  • Each bot has its own owner that it follows.
  • Only the host needs to have this mod installed. However, if the bots are spawned as summons, nameplates will not shown on clients.
  • Bots automatically purchase items when they have enough money AND/OR they can be set to open chests (Toggleable in the config)
  • Bots can continue the run after all human players die (Turned off by default, can be turned on in the config)

Installation

Put Playerbots.dll into your /BepInEx/plugins folder.

How to Spawn Bots

You can spawn bots by opening your console (ctrl + alt + tilda) and running the command addbot [survivor name OR survivor index] [amount] or addrandombot [amount]. All arguements are optional and have a default value if they are not given. Example: addbot engineer 5 will spawn 5 engineers that follow you.

If you have friends in your lobby that you want to spawn bots for, add their slot number in the lobby after the rest of the arguements. Example: addbot engineer 5 3 will spawn 5 engineers for the 3rd player in the lobby.

Alternatively, you can set the amount of bots spawned at the beginning of a run in the config. These bots will default to having the host as their master.

Other Console Commands

pb_startingbots [survivor name OR survivor index] [amount] - Changes the amount of bots spawned at the beginning of a run.

pb_startingbots_random [amount] - Changes the amount of random bots spawned at the beginning of a run.

pb_startingbots_reset - Resets the amount of all bots that spawn at the beginning of a run to 0.

pb_listsurvivors - Lists all the loaded survivors and their index numbers, useful for adding bots

removebots - Removes all bots from the run

killbots - Kills all the bots currently in the run. They will respawn in the next stage.

tpbots - Teleports all the bots to your position

Known Issues

Due to the Skills 2.0 update, bots spawned with PlayerMode set to true no longer have their healthbars show up for people without the mod.

Support

You can support me at https://buymeacoffee.com/melledy if you like my mod. Every tip is appreciated <3.