Openra: AttackTurreted should allow individual turrets to have a limited traverse arc and acquire multiple targets

Created on 5 Oct 2019  路  2Comments  路  Source: OpenRA/OpenRA

AttackTurreted should come with an option that lets turrets have a limited arc of fire, that could be determined with a numeric value
ie if you wanted a tank with its main turret to fully rotate but for its frontal hull gun to only fire in a 90 degree arc in front of it:

AttackTurreted:
       Turret@MainTurret:
             Armament@Primary:
             Armament@Secondary:
             LimitedTraverse: 360
       Turret@HullMG:
             Armament@Tertiary
             LimitedTraverse: 90

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.

Feature

Most helpful comment

I am currently in the middle of a major refactoring of the attack traits, precisely to make things such as these possible. Turrets with limited firing arcs will be made possible by #16696, but support for different firing arcs and targeting per armament will come much later (see also #16501)

All 2 comments

AttackTurreted should come with an option that lets turrets have a limited arc of fire

See #16696 which may introduce such a feature (as also requested in #10855).

I am currently in the middle of a major refactoring of the attack traits, precisely to make things such as these possible. Turrets with limited firing arcs will be made possible by #16696, but support for different firing arcs and targeting per armament will come much later (see also #16501)

Was this page helpful?
0 / 5 - 0 ratings