[BTS] FlankingStrikes doesnt seem to work for Naval

Pir Lan Tota

Warlord
Joined
Jan 28, 2008
Messages
276
Location
Manchester
Hi all,

I tried to give my submarines FlankingStrikes on Transports, so I copied the code from a Horseman, put it into a submarine and changed to target to Transport.

Booted the game, loaded the mod, in the game, it says correctly, submarine gets flanking attacks on transports, however whenever I attack a naval stack, the transports dont get damaged at all (only ones taking damage are those actually defending)

So I though, maybe its hard coded that only SIEGE units can get FlankingStrikes, so I changed the transport from a naval unit to a siege unit. Unfortunately, also this didnt fix it. Any ideas how to get this to work?
 
You need to give the submarines some <iCollateralDamageLimit> and <iCollateralDamageMaxUnits> in the XML to make flanking strikes work. The example is from the Horse Archer.

Code:
            <iCollateralDamage>0</iCollateralDamage>
            <iCollateralDamageLimit>100</iCollateralDamageLimit>
            <iCollateralDamageMaxUnits>6</iCollateralDamageMaxUnits>
 
That's a really good idea by the way.
 
Awesome, thanks for the tip merijn, gonna give that a shot as soon as I get home from work :)
 
Top Bottom