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

ReloadIncrement: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m Updating
Vinifera7 (talk | contribs)
m Minor revisions.
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|values={{Values|integers}}
|values={{Values|integers}}
|default=0
|default=0
|types={{CatAllTypes}}
|types={{Categ|Technoes}}
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
}}
}}


On units that have {{TTL|PipWrap|0}}, this flag will simply add (or subtract if a negative value is used) this value from the number of frames those units take to {{TTL|Reload}} each round of {{TTL|Ammo}}.
On units that have {{f|PipWrap|0|link}}, this flag will simply add this value to the number of frames those units take to automatically{{fnl|1}} {{f|Reload|link}} each round of {{f|Ammo|link}}.


If {{tt|PipWrap}} is supplied with any value other than <code>0</code>, {{TTL|ReloadIncrement}} can be used to speed up (or slow down) the rate at which a unit will reload with each successive {{tt|PipWrap}} set. The exact reloading time can be calculated using the following formula{{fnl|1}}:
If {{f|PipWrap}} is set to a positive integer greater than 0, {{f|ReloadIncrement|link}} can be used to speed up (or slow down if a negative value is used) the rate at which a unit will reload with each successive {{f|PipWrap}} tier. The exact reloading time can be calculated using the following formula{{fnl|2}}:
<pre>"total reload frames" = Reload + ( ReloadIncrement * ( "unit's current ammo" / PipWrap )^2 )</pre>
<pre>"total reload frames" = Reload + ( ReloadIncrement * ( "current ammo" / PipWrap )^2 )</pre>


==Notes==
==See also==
{{fn|1|The division of "unit's current ammo" into {{tt|PipWrap}} is integer division, which means that any decimal places will be knocked off; i.e. 5/2 {{equal}} 2, not 2.5.}}
* {{f|Ammo|link}}
* {{f|InitialAmmo|link}}
* {{f|Reload|link}}
* {{f|EmptyReload|link}}
* {{f|DamageReducesReadiness|link}}
* {{f|ReadinessReductionMultiplier|link}}
* {{f|PipScale|link}}
* {{f|PipWrap|link}}


==References==
==References==
{{SourceCode|http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp}}
{{SourceCode|http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp}}


==See also==
==Notes==
* {{TTL|InitialAmmo}}
{{fn|1|As opposed to manually; see [[ManualReload]].}}
* {{TTL|EmptyReload}}
{{fn|2|The division of "unit's current ammo" into {{f|PipWrap}} is integer division, which means that any decimal places will be knocked off; i.e. 5/2 {{=}} 2, not 2.5.}}
* {{TTL|PipScale}}
* {{TTL|DamageReducesReadiness}}
* {{TTL|ReadinessReductionMultiplier}}

Latest revision as of 05:58, 20 December 2009

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

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



On units that have PipWrap=0, this flag will simply add this value to the number of frames those units take to automatically1 Reload each round of Ammo.

If PipWrap is set to a positive integer greater than 0, ReloadIncrement can be used to speed up (or slow down if a negative value is used) the rate at which a unit will reload with each successive PipWrap tier. The exact reloading time can be calculated using the following formula2:

"total reload frames" = Reload + ( ReloadIncrement * ( "current ammo" / PipWrap )^2 )

See also

References

Relevant pseudocode is available at http://dc.strategy-x.com/src2/TechnoClass/Ammo.cpp.

Notes

1 As opposed to manually; see ManualReload.

2 The division of "unit's current ammo" into PipWrap is integer division, which means that any decimal places will be knocked off; i.e. 5/2 = 2, not 2.5.