Artificial Intelligence
-
Howdy, I’m Weredragon from Freelancer: Black Dawn, and I’ve a problem which, I hope, can be solved. One of the unique things about Black Dawn is its very long range (one hundred or more kilometers) combat, which I’ve been working on translating to the NPC ships. I’ve managed to get them to spawn at the proper variable distance, in the proper numbers, and with their own faction.
What they’ve been so far disinterested in doing is actually engaging my ship. Now, they open fire on it from their weapons range as per pilots_population.ini and the jobblock (and I’ve already played with the .dlls for it as well), but they steadfastly refuse to charge at me the way fighters seem to. Interestingly enough, the lead ship of the nine-ship formation almost always heads towards me after becoming hostile, but breaks off onto a perpendicular vector at about twenty klicks from my position. Despite my best efforts to force no formation, the other ships continue to follow the leader.
Also interesting is that the warships, when spawning close (within five klicks) of my ship, will all engage me properly when rendered hostile. This includes the leader.
What bits of the code would y’all like to see for this? There’s an awful lot of it, so…
-
This old post might help you a bit.
http://www.the-starport.net/archive/viewtopic.php?t=44438&highlight=npc+distance+spawn