segabl / pd2-useful-bots

A lightweight bot overhaul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Useful Bots

A lightweight bot overhaul that improves how bots prioritize enemies, lets them help you dominate, lets them attack turrets, improves their civilian intimidation and other small tweaks.

Requires HopLib

Customizable Features

  • Highly customizable target priority settings to tweak which enemies have priority and how priority is calculated
  • Option to make bots dominate enemies on their own or assist player domination attempts (normal game rules apply to bots, only works with custom target priority enabled)
  • Option to make bots help securing loot once the player they follow does it
  • Option to make bots not crouch and always use a standing pose
  • Option to make bots not abandon their positions when they are too far from the player
  • Option to make bots stop at the player's position when they are told to hold position
  • Option to make bots announce when they are low on health, just like player characters do
  • Option to disable bots marking special enemies
  • Option to disable bot battle cries
  • Option to prevent bots from getting into slow vehicles like forklifts
  • Option to disable ammo drops from enemies killed by bots
  • Option to make bots avoid using Inspire when they are already within revive range
  • Option to make a bots defend a reviving player
  • Option to increase revive range for bots reviving other bots
  • Option to make bots drop bags only when they exceed a certain weight threshold

Target priority

By default, there is some basic setup for improved bot target priority which should already feel a lot better than the vanilla targeting. You can fine tune all priority modifiers to your liking in the mod options. Multipliers you set in the options are applied to the calculated base priority of a target. The base priority settings define the initial priority of an enemy, based on the setting:
"By weapon stats" prioritizes targets based on the bots weapon stats for the target distance. "By distance" prioritizes targets only based on their distance to the bot, the bot's weapon stats will not be accounted for. "No changes" disables the custom target priority code entirely and use the vanilla code. Any multipliers defined will be ignored if this setting is used.

Loot securing

If the option is enabled, bots will pick up and secure loot bags when certain conditions are met. For bots to start securing loot, the player they follow must have secured at least one loot bag already. Bots will then pick up bags if they or the player they follow are close to a bag and they will secure bags they carry if they or the player they follow are close to a secure zone. If a player calls a bot that was following them while the bot is trying to pick up or secure bags, that player will have to secure loot again for the bot to continue doing it again as well.

Improvements

  • Improved special spotting code so bots only mark targets they see and are higher priority
  • Improved civilian intimidation code so bots will keep civilians down more reliably and not only when civilians are already running away
  • Improved distance check to determine which bot is selected to revive a player
  • Improved Inspire check to not rely on detected attention objects
  • Changed weapon raycast and enemy slot masks so bots can shoot through each other and target SWAT turrets
  • Escort targets are now considered for civilian intimidation and bots will shout at stopped escorts to keep them moving
  • Bots will no longer be able to damage tied down enemy hostages
  • Bots will use player animations for spotting enemies and intimidating civilians
  • Bots will try to kill Cloakers and Tasers before starting to revive
  • Bots and Jokers will follow more directly to better keep up with players
  • Bots will stop reviving when someone else starts reviving the same person
  • Bots will stop immediately when told to stay and will return to their positions after helping up a downed player

Changes

  • Bots will now fully count for game balancing
  • Bots will now count for the crew alive bonus

About

A lightweight bot overhaul

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%