Skwizzy / SPT-LootingBots

AI Looting mod for Singleplayer Tarkov
https://hub.sp-tarkov.com/files/file/1096-looting-bots/#overview
31 stars 10 forks source link

"Objective" system #42

Open Skwizzy opened 1 year ago

Skwizzy commented 1 year ago

If a bot has or loots a key that open a door on the current map, it would be nice to be able to give the bot an objective to open that door and loot the room. I think most of these rooms however do not have any nav mesh so this would likely rely on Drakia's nav mesh updates that are currently being developed.

Maybe less applicable to this mod, but PMC bots should sometimes be able to interact with lootable quest items on the map to give the illusion of PMCs completing certain quests that require loose loot quest items

dwesterwick commented 8 months ago

This is currently being done by Questing Bots, so you can probably close this.

However, it might still be interesting to do the following:

  1. For each key in the bot's inventory, check if one or more corresponding doors exist on the map (need to check for multiple doors to protect for the Factory key and maybe others)
  2. If the nearest matching door is still locked, have the bot go and unlock the door. If the door is locked, we can ASSume that area of the map hasn't been looted.
  3. Repeat step (2) until no more matching (locked) doors are found

If you'd like to do something like this, feel free to steal some of my code for having bots unlock doors https://github.com/dwesterwick/SPTQuestingBots/blob/master/bepinex_dev/SPTQuestingBots/BotLogic/Objective/UnlockDoorAction.cs.