Allow "turret_base_has_direction = false" to not turn if it has a "turn_range" value

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Fishbus
Inserter
Inserter
Posts: 42
Joined: Sat Sep 28, 2024 8:20 pm
Contact:

Allow "turret_base_has_direction = false" to not turn if it has a "turn_range" value

Post by Fishbus »

Heya,

I have this annoying bug where a turret that has turret_base_has_direction = false and some turn_range limit the turret will turn its base to face the direction if an enemy exits its cone of view and then become locked into that new angle. These turrets also have the 8-way-direction flag.

If I make the turret_base_has_direction = true, the turret will stop rotating its base, sure, but the turret now has a diagonal grid when you place it on a 45 degree angle.

Since the base is a circle/square, I'd expect rotating the base to not change the collision to diagonal (e.g. if the collision is 3x3, it should always be 3x3 even on the diagonal.

Is there a way to make this work? Or is this just a sneaky bug that has flown under the radar for a long time?

Either 1) don't have the turret rotate out of its turn-range, or 2) Allow for a way to disable using a diagonal grid when rotating 45 degrees (e.g. non_diagonal_base = true ).

Cheers!
User avatar
Fishbus
Inserter
Inserter
Posts: 42
Joined: Sat Sep 28, 2024 8:20 pm
Contact:

Re: Allow "turret_base_has_direction = false" to not turn if it has a "turn_range" value

Post by Fishbus »

I've included a zipped .mkv video of in game footage of this issue happening.

(This is when turret_base_has_direction = false)

Cheers
Attachments
2025-09-05 14-22-07.zip
game footage + commentary
(35 MiB) Downloaded 6 times
Post Reply

Return to “Modding interface requests”