Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AttackTurreted should allow individual turrets to have a limited traverse arc and acquire multiple targets #17185
AttackTurreted should come with an option that lets turrets have a limited arc of fire, that could be determined with a numeric value
Realistically this would probably require reworking the OpportunityFire sub-trait so that it applies to specific turrets rather than the entire vehicle, since making it so the tank won't always rotate to fire on the object with all its weapons. This might also require a reworking of the way units attack, so that units with multiple guns can acquire multiple targets independently of eachother, ie a battleship having its flak cannons target aircraft while its main guns fire at a surface target.
Limited traverse would also be useful for base planning if applied to defenses as well, since you could have structures that could only fire outward in a certain arc. This would also gel nicely with the feature to have multiple structure directional placement options (I believe this feature was being tested to allow for refineries to have multiple facings the player could choose)
EDIT: This might also require a rework to the way units will always close with the maximum range of their shortest-range weapon, since in a scenario with an artillery piece has an opportunity-fire hull MG, you would want the vehicle to always fire from the range of its artillery, not its MG.