Page 1 of 1

Allow turn_range to be greater than 0.5

Posted: Tue Jan 19, 2021 3:19 pm
by wodzu93
When turret has been set up with following parameters:

Code: Select all

	turret_base_has_direction = true,
	...
	attack_parameters = {
	...
	turn_range = X,
	...
	},
Any X greater than 0.5 (ie. 180 degree arc) will result in the turret not detecting hostiles outside around 90 degree firing cone, despite visual preview showing otherwise.

Tested with stock Factorio with no mods, outside of modifying Laser Turret prototype with above parameters to demonstrate the issue. Video example:
Anim2D.gif
Anim2D.gif (1.06 MiB) Viewed 2219 times

Re: Allow turn_range to be greater than 0.5

Posted: Tue Jan 19, 2021 7:37 pm
by posila
Thanks for the report.
Values in range (0.5, 1.0) are no supported. It is an implementation gap, and I don't feel like closing this gap as a bug fix at the moment, so I am gonna move this thread to modding interface requests and make the game clamp the value to 0.5.