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

Difference between revisions of "IsLaser"

From ModEnc
Jump to: navigation, search
 
(Added info about a bug related to the flag)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{Flag
Can be set to 'yes' or 'no' and specifies whether or not the weapon should use the special 'laser draw' effect along its projectile path.
+
|name=IsLaser
 +
|files={{Categ|Rules(md).ini}}
 +
|values=boolean
 +
|default=no
 +
|types={{Categ|Weapon|Weapons}}
 +
|ts=yes
 +
|fs=yes
 +
|ets=yes
 +
|ra2=yes
 +
|yr=yes
 +
|rp=yes
 +
}}
 +
 
 +
If set, the game will draw a laser along the projectile path. The laser's lifetime is defined by <tt>[[LaserDuration]]</tt>, and its colors are defined by <tt>[[LaserInnerColor]]</tt>, <tt>[[LaserOuterColor]]</tt>, <tt>[[LaserOuterSpread]]</tt> and <tt>[[IsHouseColor]]</tt>.
 +
 
 +
{{bugs}}
 +
This flag is only correctly read from the object's {{f|Primary|link}} weapon; If the object's {{f|Secondary|link}} weapon has {{f|IsLaser|yes}} but the {{f|Primary}} does not, then no laser is drawn for the {{f|Secondary}}.

Latest revision as of 23:48, 8 November 2022

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: IsLaser
File(s): Rules(md).ini
Values: boolean
Default: no
Applicable to: Weapons


If set, the game will draw a laser along the projectile path. The laser's lifetime is defined by LaserDuration, and its colors are defined by LaserInnerColor, LaserOuterColor, LaserOuterSpread and IsHouseColor.

Cc alert.png Bugs/Side-Effects/Unexpected Limitations

This flag is only correctly read from the object's Primary weapon; If the object's Secondary weapon has IsLaser=yes but the Primary does not, then no laser is drawn for the Secondary.