View Single Post
Old 02-17-14, 05:40 PM   #2162
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
As for the multi unit tracking problem, I think this something we can live with, but have you checked that aircraft under attack can track their pursuer wth their rear/waist/ventral turrets?

Most of the stock aircraft turrets are broken, but I can provide you with a bomber whose turrets are set correctly (during my tests they tracked sea targets).
I haven't dove into how the weapons choose their target yet (haven't found the code for it yet). But I'm almost 99% certain that all the weapons of a unit will use the contact the unit is engaging since in the hierarchy the unit object is at the top with everything related to it under it and the unit currently being engaged is a pointer contained in the unit object. Furthermore since weapons are controllers and controllers are 'attached' to the object they belong to they (controllers) base everything they do off the pointer from the object they are attached to.

Like I said though I haven't found the code that controls the weapons yet so it's all pure speculation.
TheDarkWraith is offline   Reply With Quote