I've been working on some custom weapon effects, and for the most part it's going well. However, there is currently no way to tell the AI that a zone is dangerous, meaning they gladly do things like fly directly into a black hole.
Would it be possible to add a system to designate areas to avoid so the AI knows to pathfind around them?
I've looked at this more or less recently, and it's actually quite difficult. It does beyond just avoiding something the way it avoids collisions and missiles and such - it would also have to take it into account while traveling somewhere (with the danger zone in the way), and somehow resolve conflicts like "missile avoidance requires me to strafe left, danger zone requires me to strafe right".
I'll probably end up taking another look at it at some point, though.
Hmm. As a
really hacky way of doing it, you might have some high-velocity, invisible missiles at the center of the black hole, pointing out at regular angular intervals - and then reset their location to the center of the black hole every frame. The AI would still see those as moving and would try to avoid them...
I've no idea how well that would work in practice, though. Probably fail horribly and/or have unintended side effects