Introducing Frontlines, a small mod with a big ambition. Frontlines plans to bring new exciting content, revitalize the stale game-play mechanics of Zero Hour, and to provide both an interesting single player and multiplayer experience. Frontlines is an open-source mod, our assets are free to use, as long as we are credited.
The Component Gattling Cannon is General Yang’s main defence. It directly replaces the Gattling Cannon, while the Bunker is removed. It is armed with a single gattling cannon by default, each of which does 60% the damage of one Gattling Cannon defence of other Chinese generals. Once built, the player has the option to choose from either upgrading it with a flamethrower, an anti-tank cannon or another gattling cannon. It has a slightly lower build cost, without including the upgrade cost. Its armour however is the same as the default Gattling Cannon.
exelent
interesting concept
impressive
Nice idea! Also nice red alert 2 style update. :p
Good idea for a modular design, although which target will it pick if it is armed with both an anti-tank cannon and the gattling cannon, and air and ground targets enter it's range at the same time?
Probably random, same as what a normal Gattling Cannon would. You can't really change that.
From what I understand, the object will check across three of it's allowable weapons as soon as an enemy object approaches their VisionRange. Once the object finds a weapon to deal with the enemy object, it will use it on that until the either:
a) the object is killed
b) it has gone off-range(unless the object is mobile, it will instead pursue the object)
That's how it picks the targets.
Now what if it's multiple targets at once?
The first target will always be the one to get to object's VisionRange first and if the object has the appropriate weapon to use.
Then the second target will based on how near it is from the object[sic] and once more if it has the appropriate weapon.
It get more complicated if there's two kinds of units engaging the object, an air unit, and a ground. Typically, it will engage the air unit first if their anti-air weapon has that range, otherwise it will almost always use the PRIMARY weapon of the object if the PRIMARY weapon of the object can engage the appropriate target(it will if it's an anti-ground weapon) otherwise it moves on to the next weapon-- this is why you set PreferredAgainst on the weaponsets to speed up the process.
You can mitigate the issue of engaging multiple targets if the object is actually a bunker with pre-garrisoned units that you can't evacuate it's just that their weapons come out from the guns of the turret since garrisoned units have their own targeting-- hence give your targeting having two or more brains.