Display MoreI've been using your mod and the behaviour changes are quite good, but I think the default configuration provided isn't that great for most people. For example, the default config I had did not seem to spawn PMCs at all until set "Automatically add PMCs" to true in the Spawns section of the configuration. This also seems to cause PMCs to replace scav spawns (like sniper scavs). Also, for some reason the "All PMCs are BEARs" option was set to True by default - is this intentional? Regardless, this is not a huge problem, but a default configuration that spawns scavs and PMCs much like you would expect in the live version would be preferable (i.e. scavs as live, with the appropriate number of PMCs spawning at map start all over the map).
For reference, I downloaded and am using v1.19.4b of the mod with SPT-AKI v2.1.0.
The main problem I have with the mod is that enabling gear changes destroys the durability of all equipment used by scavs and PMCs. I did some basic debugging and it seems that the durability reduction function is called twice for each piece of equipment.
In the pmcScavAlliance static function, in the for loop that iterates across all bot instances, I can see this sort of thing:
Code//Lowering weapon durability. First one reduces max durability, second one reduces current AITweaks.reduceDurability(primaryWep, config.AIgearChanges[AIGearCategory].weaponMaxDurabilityMin_Max[0], config.AIgearChanges[AIGearCategory].weaponMaxDurabilityMin_Max[1], true) AITweaks.reduceDurability(primaryWep, config.AIgearChanges[AIGearCategory].weaponDurabilityMin_Max[0], config.AIgearChanges[AIGearCategory].weaponDurabilityMin_Max[1], false)
Removing the second (redundant) call, for all weapon categories, provides the expected behaviour.
Which file should we edit to fix that? Should we instead wait for an update directly from Fin?