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

MinimumRange: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Testid123 (talk | contribs)
mNo edit summary
Testid123 (talk | contribs)
mNo edit summary
 
Line 18: Line 18:
(Like with <tt>[[Range]]=</tt>, positive values are literal distances, and -2 means infinite.)
(Like with <tt>[[Range]]=</tt>, positive values are literal distances, and -2 means infinite.)
==Note==
==Note==
It also affects distance in the form of vertical <b>(from top to bottom or from bottom to top)</b>.
*It also affects distance in the form of vertical <b>(from top to bottom or from bottom to top)</b>.<br>
*If the '''MinimumRange''' tag is applied to a weapon specified in [[OccupyWeapon]],[[EliteOccupyWeapon ]], the following results will be applied:
-Used to set the minimum range of all weapons that [[InfantryTypes]] will use when inside a building<br>
-'''MinimumRange''' will only be read for the first weapon of [[InfantryTypes]] that enters the building<br>
>>means that If the 1st infantry's weapon does not have the '''MinimumRange''' tag, but the 2nd infantry's weapon There is a '''MinimumRange''' tag The game will ignore this tag. Make this tag unused. '''(Even if there is)'''<br>
-If the weapon of the 1st [[InfantryTypes]] has '''MinimumRange=2''' but the 2nd [[InfantryTypes]] has '''MinimumRange=3'''
The game will always use the '''MinimumRange''' of the [[InfantryTypes]] who is the first to enter a building.

Latest revision as of 06:31, 30 November 2024

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: MinimumRange
File(s): rules(md).ini
Values: float
Special Values: -2
Default: 0 (no minimum range)
Applicable to: Weapons


This defines the minimum allowed distance (in cells) for this weapon. If the target is closer than this, the unit will move to get at least this far away before firing.

(Like with Range=, positive values are literal distances, and -2 means infinite.)

Note

  • It also affects distance in the form of vertical (from top to bottom or from bottom to top).
  • If the MinimumRange tag is applied to a weapon specified in OccupyWeapon,EliteOccupyWeapon , the following results will be applied:

-Used to set the minimum range of all weapons that InfantryTypes will use when inside a building
-MinimumRange will only be read for the first weapon of InfantryTypes that enters the building
>>means that If the 1st infantry's weapon does not have the MinimumRange tag, but the 2nd infantry's weapon There is a MinimumRange tag The game will ignore this tag. Make this tag unused. (Even if there is)
-If the weapon of the 1st InfantryTypes has MinimumRange=2 but the 2nd InfantryTypes has MinimumRange=3 The game will always use the MinimumRange of the InfantryTypes who is the first to enter a building.