Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttackTurreted should allow individual turrets to have a limited traverse arc and acquire multiple targets #17185

Open
henskelion opened this issue Oct 5, 2019 · 2 comments

Comments

@henskelion
Copy link

commented Oct 5, 2019

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.

@matjaeck

This comment has been minimized.

Copy link
Contributor

commented Oct 5, 2019

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).

@tovl

This comment has been minimized.

Copy link
Contributor

commented Oct 5, 2019

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)

@abcdefg30 abcdefg30 added the Feature label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.