P0-B1: Part 1028: Improvements, Random Story System
I have made several improvements to the AI spawning system, such as settings to control how many AI can spawn in the same building, and support for various animations such as sitting, lying, etc, and control over how likely it is for an AI to spawn in a given location.
I have also added the ability for AI to spawn randomly (with a low chance) in the world.
I had some issues here with the fact that when the AI first spawns, they are far enough away from the player that the terrain is of a low resolution and has no collision mesh.
As the player gets close, the terrain subdivides and gets more complex, and the collision mesh is added. I had to work out a way to make sure that the AI is aligned properly with the surface of the terrain.
I also had some issues with the AI colliding with the inside of some small objects, like escape pods, etc, but all of these issues were fixed.
There were also a few other major and minor issues that I fixed while working on this.


