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

LaserDuration

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: LaserDuration
File(s): rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 10
Applicable to: Weapons


This flag defines the laser's lifetime, in frames, for IsLaser=yes and IsBigLaser=yes weapons.

Notes

Since this value is stored as int8, its valid range is -127 to 128, meaning that 257 is equivalent to 1, while 135 will not display any visual effect.

Ares Info

In Ares, it is allowed for the support weapon of Prism Tower to use an actual weapon, in this case, the LaserDuration of that weapon serves as the original PrismSupportDuration.

Bugs/Side-Effects/Unexpected Limitations

This flag is only correctly read from the object's Primary weapon; If the object has a Secondary laser weapon, it will use the LaserDuration values of the Primary weapon.

  • Starting from Phobos Build#29 this bug has been fixed.