Comment 0 for bug 895459

Revision history for this message
FS-21 (jagarni1983) wrote :

Weapon range to "auto-overpower" the Tesla Coil is harcoded by aprox. one cell of distance from the tesla coil (independently of what is specified in the weapon). If you increases the range of the weapon it will work with the new range only if you manually attack your tesla coil.

##### STEPS TO REPRODUCE #####
For example: Change the secondary weapon range of the tesla trooper from "Range=1.83" to "Range=10.83"

[AssaultBolt]
Damage=10
ROF=25
Range=10.83
Speed=100
Warhead=ElectricAssault
Report=TeslaTroopRechargeCoil
Projectile=InvisibleLow
IsElectricBolt=true
IsAlternateColor=true

If the tesla trooper in in less of 10.83 cells of distance it can't start automatically the overpower unless is in aprox. 1 cell of distance (it looks a hardcoded range).
If you force fire against the Tesla coil it uses the "Range=10.83" (the defined range by the modder).

##### ADDITIONAL INFORMATION #####
If they are always overpowering the Tesla coils isn't a problem because unless you force fire the attack against the tesla coil your units will stop overpowering Tesla coils and start attack the enemy in-range of their main weapons.

To be more clear I uploaded and example with tesla tanks overpower weapons with range "14.83". Only 1 tank that is very close to the tesla coild will start overpower it.

Added from bugnote:3413: One note about the screenshot, It makes no sense the last line of the manual attack (text of the left part)... I made a copy/paste of the text of the right part sorry :P