Quote:
Originally Posted by TheDarkWraith
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