Meledy-PlayerBots icon

PlayerBots

Adds ai controlled teammates to your game. Compatible with all survivors from the Scorched Acres update.

Last updated a month ago
Total downloads 2227
Total rating 1 
Dependency string Meledy-PlayerBots-1.1.0
Dependants 0 other mods depend on this mod

This mod requires the following mods to function

bbepis-BepInExPack-2.0.0 icon
bbepis-BepInExPack

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

Preferred version: 2.0.0
tristanmcpherson-R2API-2.1.0 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.1.0
README

PlayerBots

Adds ai controlled teammates to your game. Compatible with all survivors from the Scorched Acres update.

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 SpawnAsPlayers in the config.
  • Each bot has its own owner that it follows.
  • 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 people.
  • Only the host needs to have this mod installed, however, if the bots are spawned as summons, nameplates will not shown on clients.

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.

Installation

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

Important Config Options

AutoPurchaseItems - Allows the bots to purchase items randomly when they have enough money. (Default: true)

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_maxpurchases [amount] - Sets the amount of purchases a bot can do per stage.

removebots - Removes all bots from the run

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

Changelog

- 1.1.0
    - Added bandit compatibility
    - Added extra config options for auto purchasing
    - Added death messages for bots
    - Fixed bots not counting towards the teleporter timer when SpawnAsPlayers == true
- 1.0.1
    - Fixed starting bots attacking you
    - Added pb_listbots command to display bots' owners
- 1.0.0 
    - Initial Release

Available versions

Please note that the install buttons only work if you have compatible client software installed. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2019-7-22 1.1.0 993 Meledy-PlayerBots-1.1.0.zip Install
2019-6-29 1.0.1 1184 Meledy-PlayerBots-1.0.1.zip Install
2019-6-29 1.0.0 50 Meledy-PlayerBots-1.0.0.zip Install