For Modders
Thanks to @dwesterwick!
Adds support for external commands without requiring LootingBots as a dependency for mods. Full documentation
The two external commands this PR introduces are:
- Force a loot scan: Forces a bot to scan for loot the next time it is able to do so
- Inhibit looting: Stops a bot from looting and prevents them from scanning for loot for a specified amount of seconds
To take advantage of these, you can copy LootingBotsInterop.cs into your projects, and those methods will invoke matching ones in External.cs
Changes
2/7
- New setting
Loot Finder (Timing): Enable examine time- Adds a delay before looting an item to simulate the time it takes for a bot to "uncover (examine)" an item when searching containers, items and corpses. The delay is calculated using theExamineTimeof an object and theAttentionExamineTimeof the bot. Without any mods changing these values, it seems like the average examine time is 1 second. Looting should take a bit more time now depending on the amount of items in the container/corpse - Lowered the time to simulate the UI opening and beginning the search process to 2500 ms
- Renamed
Transaction DelaytoDelay after taking itemand clarified the behavior in the description
2/3
- Allow bots to try and loot "searchable" items even if they do not have room to pick them up. Was preventing loose items like backpacks and rigs from being considered as valid loot #107
- Changes to interop methods and usage, check the documentation
- Added logging to interop external methods
1/24
- Added a checkbox for
PlayerScavto all the Loot Finder settings. Now you can enable/disable looting for player scavs separately from normal scavs #101 - Only prevent friendly bots from looting things the player is looting. Enemies can still try to loot the same object as the player #96
- Hide debugging F12 settings under the "advanced settings" checkbox at the top of the menu
1/22
- A bot will now end exit the loot finding logic if the first three items found are not within the acceptable looting range. This is to prevent bots from performing the expensive path distance calculation multiple times unnecessarily as its usually the case that if the first 3 items are not in range then none of the following items will be in range. #99
- When the player searches a container/item/corpse, we check to see if that item is currently marked as active by a bot and stop them from looting. They will execute their next loot scan at the specified interval in the settings. The loot will be ignored in any following loot scans until the player closes the inventory screen and stops looting #96
- Only show top level items in looting results when searching containers/equipment
- Fixed issue with debug spheres not working