Page 1 of 1

[0.14.22] Turret attack parameters bug

Posted: Mon Apr 24, 2017 7:28 am
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.

Re: [0.14.22] Turret attack parameters bug

Posted: Mon Apr 24, 2017 8:58 am
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.