Jump to content

IsGattling

From ModEnc²
Revision as of 15:41, 19 January 2025 by en>Testid123
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
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)
Even weapons are normally assigned to attack in the sky only. (AA=yes)
Even if you specify even-numbered weapons to attack on the ground but TechnoTypes will only use weapons(Weapon1=, EliteWeapon1= [Odd number weapons]) to attack the target.

Note

  • in the real world Infantry can use the gatling gun, but I don't know why Westwood doesn't allow this for InfantryTypes 🤔.

You should understand that, aside from the most fundamental data, each logic was initially created for a specific unit, especially under the relatively rushed development process of Yuri's Revenge. The names of the functions don't have much to do with any real-world settings. For example, a building with Armory=yes isn't actually for units to switch to a certain type of weapon, but rather it's so powerful that it allows any type of unit to practice and gain weapon usage experience here!!!(Heaven knows how many types of weapons are in this armory, even including those technologies that the player doesn't possess.) And Pushy=yes doesn't directly give a unit a weapon for pushing; instead, it addresses the limitations when a unit uses a warhead with DirectRocker=yes.
That being said, this is not an appropriate place for chatting. If you're looking for someone to chat with, you can go to 20400prosperous.ys168.com and leave me your email address. Messages are hidden by default, so others won't be able to see them. Also, its interface will remain in English display for you today. :) (All of this content will be removed later)


"each logic was initially created for a specific unit"


Other extensions such as Ares allow unlimited use And I really liked that Ares did that 🙂.

Bugs/Side-Effects/Unexpected Limitations Even though there IsGattling=yes But if VehicleTypes hasIsSimpleDeployer=yesWeapon2 and EliteWeapon2 formed from the IsSimpleDeployer=yes

There will be no sequence Weapon4,Weapon6 With logic IsGattling=yes Only Report has changed 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).

Disable Report for any weapon If it is used with InfantryTypes ;;Solved the problem by

Adding the tag IsGattling=yes (without any additional logic involved) give to TechnoTypes will make those Secondary,EliteSecondary of TechnoTypes Ignored(Except for weapons that come from tags Deployer=yes ,DeployFire=yes).
Adding the tag IsGattling=yes (without any additional logic involved) give to VehicleTypes(UnitNavalTypes) will make those Secondary,EliteSecondary of VehicleTypes(UnitNavalTypes) Ignored(Except for weapons that come from tags Deployer=yes ,DeployFire=yes).
VehicleTypes(UnitNavalTypes) in water can attack on land if their Primary,ElitePrimary can attack on land (in some cases, those units will ignore it). LandTargeting=2 also).