[Twinsen] [0.16.51] Ammo range modifier doesn't affect turrets properly

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
QGamer
Fast Inserter
Fast Inserter
Posts: 213
Joined: Fri Apr 14, 2017 9:27 pm
Contact:

[Twinsen] [0.16.51] Ammo range modifier doesn't affect turrets properly

Post by QGamer »

If I define an ammo such that:

Code: Select all

ammo_type =
{
	...
	--Range is decreased by 30%
	range_modifier = 0.7,
	cooldown_modifier = 1.3,
	...
},
The range modifier doesn't affect turrets properly. The turret will not fire unless the enemy is within the range specified by the ammo, but will still "follow" the enemy if the enemy is inside the normal range but outside the range specified by the ammo. However, the turret range visualization (in map view or if I move the cursor over the turret) does not show the correct range as specified by the ammo; instead it shows the turret's original range.

In addition, neither the range modifier nor the cooldown modifier will affect the value shown in the entity tooltip for the turret, nor the item tooltip for the gun that can shoot these projectiles. I would like to see a (-30%) for the turret and gun range, similar to how assembling machines display consumption, pollution, speed, and productivity modifiers.

Steps to reproduce:
1) Change the range modifiers of regular bullet ammo to different amounts
2) Do the same with the cooldown modifiers
"Adam fell that men might be; and men are, that they might have joy."

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen] [0.16.51] Ammo range modifier doesn't affect turrets properly

Post by Twinsen »

Fixed in Version: 0.17.64
- Range modifier and shooting speed modifier are now shown in ammo tooltip and ammo turret tooltip, as separate lines in both cases.
- Fixed turret range drawing not accounting for ammo range modifier in world and in map view. Fixed turret unfolding and animation not accounting for ammo range modifier.


Thanks for the report.

Post Reply

Return to “Resolved Problems and Bugs”