Page 1 of 1

Support turn_range for artillery type cannons

Posted: Fri Jun 14, 2024 2:02 pm
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

Re: Support turn_range for artillery type cannons

Posted: Sat Jun 15, 2024 12:24 am
by Silari
Second.