ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

IsGattling

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: IsGattling
File(s): Rules(md).ini
Values: boolean
Default: no
Applicable to: VehicleTypes, BuildingTypes


If set, specifies that this object uses a Gattling Weapon System, which consists of multiple weapon stages. Originally used on the Gattling Tank/Cannon.

Odd number weapons are normally assigned to attack only on the ground (AG=yes) while even numbered weapons are normally assigned to attack air only (AA=yes). Even if you specify even-numbered weapons to attack on the ground, TechnoTypes will only use weapons(Weapon1=, EliteWeapon1= [Odd number weapons]) to attack the target.


Bugs/Side-Effects/Unexpected Limitations

If a VehicleTypes has IsSimpleDeployer=yes then it will force Weapon2 and EliteWeapon2 over gattling logic.

IsGattling=true can not fall back to secondary weapon slot (even-numbered WeaponX slots) if primary one (odd-numbered) cannot fire at current target

  • This bug has been fixed in Phobos Build#34.

There will be no sequence for Weapon4 and Weapon6 with IsGattling=yes logic, only Report changes in order of weapons.

  • However, DeployFireWeapon can still be used to control whether to use Weapon 1 or Weapon 2 in deployment mode.

Although it is not possible to replace weapons, the counter accumulates normally (that's why there were changes in the Report), so after undeploy, the corresponding stage's weapon will be used (of course, RateDown caused by deployment interruption firing will also be calculated).

Disables Report for any weapon if it is used with InfantryTypes; Can be solved by:

Adding the tag IsGattling=yes (without any additional logic involved) to TechnoTypes will make those Secondary and EliteSecondary of TechnoTypes ignored (except for weapons that come from Deployer=yes and DeployFire=yes tags).

Adding the tag IsGattling=yes (without any additional logic involved) to VehicleTypes(UnitNavalTypes) will make those Secondary and EliteSecondary of VehicleTypes(UnitNavalTypes) ignored (except for weapons that come from Deployer=yes and DeployFire=yes tags).

VehicleTypes(UnitNavalTypes) in water can attack on land if their Primary or ElitePrimary can attack on land or have LandTargeting=2 (in some cases, those units will ignore it).