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

Fighter

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: Fighter
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Applicable to: AircraftTypes


Specify whether this aircraft is a fighter.

This will allow it to freely launch weapons that use projectile types which do not put the aircraft into a Strafing state without needing to constantly find a suitable position to hover before launching, thus it is very useful.

Notes

The actual effect of this flag is to skip additional checks when firing. For aircraft with Fighter=no, they need to find a point that satisfies the weapon's Range requirement, hover there, and then face the target to fire, even if the weapon has OmniFire=yes. This is particularly evident when both of the following conditions are met: the Locomotor is set to a type like Drive that does not require constant movement, and the unit is constrained by weapon parameters, thus preventing it from entering the Strafing state. Whereas Fighter=yes can truly skip this facing check and ignore OmniFire=no. This is somewhat similar to other shots after successfully firing the first shot and entering the Strafing state, the main difference is that Fighter directly participates in the determination of whether firing is possible at an earlier stage.

Let's take Hornet as an example: in vanilla, each Aircraft Carrier has 3 Hornets as spawnees, each time they are launched, there is a rally behavior among the spawnees that waits for all spawnees to be launched, this causes the first two launched Hornets to circle around before the last Hornet is launched, and this results in them facing a direction that is not towards the target when the rally is complete, if the target is too close, therefore, except for the last one, the Hornets need to make a turn before completing their bombing run, but if the Hornet uses Fighter=yes, then it can smoothly execute the bombing mission after rallying.

The southern one is vanilla behavior, the northern one adds Fighter=yes to the spawnee.

For aircraft with Locomotor={B7B49766-E576-11d3-9BD9-00104B972FE8} (Rocket), due to their unique movement style, they are completely unable to maintain the aforementioned point. Therefore, if you need them to launch weapons, Fighter=yes is almost necessary, especially when MissileSpawn=no so that Strafing may not even operate stably.

Bugs/Side-Effects/Unexpected Limitations

This causes the aircraft to twist its body when firing.

This causes the aircraft to have a very short random delay before firing.

This is the culprit that causes an aircraft with only one Ammo to fire two shots or even three shots in PVP battles.

See Also