Page 1 of 1

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

Posted: Sat Feb 23, 2019 9:49 pm
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

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

Posted: Tue Aug 06, 2019 1:23 pm
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.