Support turn_range for artillery type cannons

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
TheKingJo
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Jan 02, 2021 1:22 am
Contact:

Support turn_range for artillery type cannons

Post by TheKingJo »

I would love it and could make use of a turn_range support for artillery type turrets and ~ wagon turrets.

Currently they always have a 360° aiming circle regardless of the value that you set in the gun's attack_parameters of the artillery gun.

Now I dunno how the artillery logic is implemented, but a check for correct angle could be done quite easily
First checking for fitting range, then wheter a turn_range value != 1 is set, and then you would check for fitting angles via some normalised vector dot product and cosine calculations and a final comparison between turret angle and target position
protocol_1903
Fast Inserter
Fast Inserter
Posts: 133
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Support turn_range for artillery type cannons

Post by protocol_1903 »

+1
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Post Reply

Return to “Modding interface requests”