Page 1 of 1

[0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Posted: Fri May 19, 2017 5:40 pm
by LethargicChii
Attachments and documentation: viewtopic.php?f=93&t=47497&p=277549#p277549

I'm not sure if it can be classified as a bug, as to achieve this result you must modify the game code, although it is only 1 line and 1 setting. Set the turret range of the base game turret to 80, place it near biters, let it kill them all, then watch as new biters enter its range. They will only be killed at what I think is a range setting of 55. The turret will kill everything in it's range once a single biter passes this threshold.

I am sorry if this is determined not to be a bug, as it's beyond the current/original game settings thus making it a modification. However, if you ever implement turrets with longer range, it may become an issue.

Re: [0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Posted: Fri May 19, 2017 10:58 pm
by Rseding91
This is related to the activation distance of enemy units.

When an enemy is more than the activation distance away it won't activate enemy-conditional entities (turrets, biters). You'll have to increase that value in the map settings if you want the turret to activate at that distance.

A warning though: doing that will reduce game performance by large amounts for every increase you do. What I recommend is to just not have the turret shoot that far as it also means that the turret has to scan the entire area around it in that distance for enemies each time it has to shoot which will be a large drain on game performance as well.

Re: [0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Posted: Sat May 20, 2017 1:01 am
by LethargicChii
Wow thank you for that insight. I see now. Seems that I will have to reduce the range of the turret.