Allow turn_range to be greater than 0.5

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
wodzu93
Inserter
Inserter
Posts: 31
Joined: Thu Apr 20, 2017 3:57 pm
Contact:

Allow turn_range to be greater than 0.5

Post 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 1850 times
Attachments
factorio-current.log
(5.32 KiB) Downloaded 101 times
IT student that likes modding in his free time.

Shameless self-promotion:
http://steamcommunity.com/sharedfiles/f ... =555765765
http://steamcommunity.com/sharedfiles/f ... =575758597

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

Re: Allow turn_range to be greater than 0.5

Post 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.

Post Reply

Return to “Modding interface requests”