That code looks much better! I definitely noticed a difference in XL1DM3. Even with 4 bots, they rarely ever spawned within firing radius of another bot.
I guess that concludes the list of bugs! The only one remaining is that bots sometimes try to get to the wrong waypoint when they die, but I can't tell you how to reproduce this, or why exactly it is even happening. It may not have anything to do with the bot remembering an old waypoint after respawning. I noticed that sometimes when a bot first spawns, it runs up against a wall as if trying to get to the incorrect waypoint before resetting itself and getting on track. This is rare enough that you could probably spawn 100 bots and not even see it happen. With all the hours of testing I do with bots and waypoints, I just happen to come across this bug every now and then. I will understand if you chose not to bother fixing it, however.
Did you see my post about the Painkeep mod? It's ok if you decide not to implement your updates to the Painkeep mod of course. I just thought it would be a nice addition to the Frikbot definitive pack in the next release. If you decide to take a look at it, I uploaded my whole painkeep folder for you. It contains the source (located in the fbxpk_src folder), the main game files, and all the maps I have waypointed for the mod. I may waypoint even more maps if the code is updated to reflect your changes.
Download:
https://www.mediafire.com/?ccxj87cvecsigueI must thank you again for all your hard work, Shadowborg. A lot of these bugs really have been on my nerves for a long time, and I feel that the next release of the Definitive Frikbot Waypack will be more complete with these fixes. I have some more work to do on waypoints, but it won't be too long now.
