View Single Post
Old 02-17-14, 06:02 PM   #2163
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
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.
Makes sense to me. The one doubt I have is: are engagements bi-univocal in game? In other words: if an unit is attacked, does it aumatically lock its guns on the attacker? This is probably of secondary importance for surface engagements, but crucial for aircraft turrets to be used correctly during dogfights
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote