EMP.Duration: Difference between revisions
Nighthawk200 (talk | contribs) Created page with '{{Flag |name={{PAGENAME}} |files={{categ|ini=rules}} |types={{categ|Warheads}} |values={{values|unsigned integers}} |extver=<i>All versions</i>. |ares=yes |aresflag=yes }} The E…' |
Nighthawk200 (talk | contribs) Forgot about negative values. |
||
Line 3: | Line 3: | ||
|files={{categ|ini=rules}} | |files={{categ|ini=rules}} | ||
|types={{categ|Warheads}} | |types={{categ|Warheads}} | ||
|values={{values| | |values={{values|signed integers}} | ||
|extver=<i>All versions</i>. | |extver=<i>All versions</i>. | ||
|ares=yes | |ares=yes | ||
Line 19: | Line 19: | ||
EMP.Duration=<integer></pre> | EMP.Duration=<integer></pre> | ||
Remember, 1 second is equal to 15 frames, so adjust your values accordingly. | Remember, <b>1 second is equal to 15 frames</b>, so adjust your values accordingly. | ||
Negative values can also be used. These will have a "reverse-EMP" effect on the unit, reducing the amount of time a unit will be afflicted by EMP. |
Revision as of 19:10, 10 August 2010
Flag: | EMP.Duration |
File(s): | rules(md).ini |
Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. |
Extension Version: | All versions. |
Applicable to: | Warheads |
This flag is part of Ares. Do not use it without Ares installed. |
The EMP logic is something that was used several times in Tiberian Sun, but no longer had any function in RA2. Ares restores the EMP logic with a few more controls than it had in Tiberian Sun.
Usage
In Tiberian Sun, the duration of an EMP outage was controlled through the affecting weapon's Damage flag. However, this meant that any EMP weapons could not cause damage themselves.
In Ares, EMP is no longer controlled through the weapon's Damage. Instead, this flag is used on the weapon's warhead. EMP.Duration sets the length of time in frames that a unit should be disabled for. This means that you can now create EMP weapons that also deal damage.
[Warhead] EMP.Duration=<integer>
Remember, 1 second is equal to 15 frames, so adjust your values accordingly.
Negative values can also be used. These will have a "reverse-EMP" effect on the unit, reducing the amount of time a unit will be afflicted by EMP.