[0.14.22] Turret attack parameters bug

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Dysoch
Filter Inserter
Filter Inserter
Posts: 445
Joined: Fri Oct 18, 2013 2:27 pm
Contact:

[0.14.22] Turret attack parameters bug

Post by Dysoch »

When you add this to a turret in its attack_parameters:

Code: Select all

range = 25,
min_range = 5,
turn_range = 1.5/3.0,
it works as expected, like the flamethrower turret (where this code is from).
Image
It fires in its arc, and when enemies get to close, it stops firing like it should.

But here is the bug:
when you place a turret facing the north side, and an enemy moves from north to east side, the turret automatically switches from north side to east as well, even though it shouldnt (aka, it changes it arc from north to east).

i know that it wasnt really intended for a gun-turret type entity, just a fluid-turret type, but still it sounds like a bug
i have tried it with smaller arcs as well, same result. it can always switch sides.
Creator of:
- DyTech
- DyWorld
- DyWorld-Dynamics
- DyWorld-Dynamics 2
Active since Factorio 0.6

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.14.22] Turret attack parameters bug

Post by posila »

Hi, Dysoch.
Somebody already made modding request about this, so we added following for 0.15.
- Added property "turret_base_has_direction" to turret entity types. Set it to true if you want to use turn_range property in turret attack_parameters.
This property has to be true for any fluid-turret, because of pipe connections.

Post Reply

Return to “Resolved Problems and Bugs”