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

Difference between revisions of "UseChargeDrain"

From ModEnc
Jump to: navigation, search
 
(minor rewording/consistency, other SW example)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{Flag
Can be set to 'true' or 'false'. Although some of the Charge Drain functionality has been removed, the effect of this is that the weapon discharges at a rate proportional to the weapons' RechargeTime=. Within this 'discharge' time, the Super Weapon can be continually activated until the charge has expired, since until the charge has expired the weapon is still considered fully charged and ready. You can control the degree of this discharge with the ChargeToDrainRatio= statement in the [General] section, which should be set to the proportion of the RechargeTime= that it takes for this Super Weapon to discharge. For example, if your RechargeTime= is set to 3 (minutes) and ChargeToDrainRatio= is set at 0.3, then the Super Weapon will take 3 minutes to charge and 1 minute to discharge.
+
|values={{values|boolean}}
 +
|types={{Categ|SuperWeaponTypes}}
 +
|default=no
 +
|ts=yes
 +
|fs=yes
 +
|ra2obsolete=yes
 +
}}
 +
 
 +
This flag indicates that the super weapon has an effect that is applied over time instead of in one burst - after it is fired, the super weapon gradually discharges. Whilst the super weapon has some charge, it can be fired again to switch its effect off. Once the effect is turned off or the charge is drained completely, it starts recharging again. The super weapon's own {{f|RechargeTime|link}} determines how long it takes to recharge completely, and {{sl|General|ChargeToDrainRatio}} is a multiplier to that charge time used to calculate how long it will take the super weapon to drain its charge completely.
 +
 
 +
This flag was designed for the {{f|Type|Firestorm}} super weapon and has a lot of hardcoded behaviour related to it. As such, it is not advised to use this flag on other SuperWeaponTypes. For example, using this flag on the Iron Curtain super weapon would allow the owner to fire the Iron Curtain many times during the discharge period, because at no point does firing an Iron Curtain count as switching it off.

Latest revision as of 09:23, 17 May 2010

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

Cc cnrdelete-all.pngLogic related to UseChargeDrain, as a whole or in part, is obsolete in Red Alert 2 and/or Yuri's Revenge.



This flag indicates that the super weapon has an effect that is applied over time instead of in one burst - after it is fired, the super weapon gradually discharges. Whilst the super weapon has some charge, it can be fired again to switch its effect off. Once the effect is turned off or the charge is drained completely, it starts recharging again. The super weapon's own RechargeTime determines how long it takes to recharge completely, and [General]ChargeToDrainRatio= is a multiplier to that charge time used to calculate how long it will take the super weapon to drain its charge completely.

This flag was designed for the Type=Firestorm super weapon and has a lot of hardcoded behaviour related to it. As such, it is not advised to use this flag on other SuperWeaponTypes. For example, using this flag on the Iron Curtain super weapon would allow the owner to fire the Iron Curtain many times during the discharge period, because at no point does firing an Iron Curtain count as switching it off.