Another small update -
V3B20e:
+Changed a bit and optimized the code for unstuck bots (especially when the bot is stuck with other bots/players).
+Changed finding "BestWaypoint" for navigation (if the new WP in path is used by another bot/player, the bot will take another WP connected with the previous and next WP only if the next is visible from the prevoius one - that check was prevoiously missing).
+Reverted back the check if the heard/last enemy is far away behind any obstacle (to prevent look the bots at the wall).
+Added the new feature - if the bot follows waypoints while walking according to the path and it has to change the direction more than 40 degrees (if it would continue exactly the same direction - the angle would be 0 degrees), then it stops for 0.5 sec and then it continues his way.
That should prevent the situation when - i.e. - the bot changes the direction 90 degrees and it hits the wall instead the door.
Please test it and let me know if this version works better for You.