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

Difference between revisions of "Range"

From ModEnc
Jump to: navigation, search
(Slight rewrite)
m (Special value > separate section)
Line 3: Line 3:
 
|files={{Categ|rules(md).ini}}
 
|files={{Categ|rules(md).ini}}
 
|values=float
 
|values=float
|special=-2
+
|special=-2 (see [[#Special values|below]])
 
|default=?
 
|default=?
 
|types={{Categ|Weapon|Weapons}}
 
|types={{Categ|Weapon|Weapons}}
Line 9: Line 9:
 
}}
 
}}
  
<tt>Range=</tt> defines the distance (in cells) that a weapon can travel (aka the distance from the firing point to the impact point [in 3D, so it makes a difference for targets in different altitudes]). It takes a positive floating point value as literal distance, and special value "-2" as "infinite".
+
<tt>Range=</tt> defines the distance (in cells) that a weapon can travel (aka the distance from the firing point to the impact point [in 3D, so it makes a difference for targets in different altitudes]). It takes a positive floating point value as literal distance, and [[#Special values|-2]] as a special value.
  
 
Mind that this only applies to non-homing projectiles. Homing projectiles (those which have a positive <tt>[[ROT]]=</tt> value) can follow their targets all over the map, unless they are tagged as <tt>[[Ranged]]=</tt>.
 
Mind that this only applies to non-homing projectiles. Homing projectiles (those which have a positive <tt>[[ROT]]=</tt> value) can follow their targets all over the map, unless they are tagged as <tt>[[Ranged]]=</tt>.
 +
 +
== Special values ==
 +
<tt>Range=-2</tt> means infinite range.
  
 
{{meanings|sound(md).ini}}
 
{{meanings|sound(md).ini}}

Revision as of 14:00, 7 May 2006

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: Range
File(s): rules(md).ini
Values: float
Special Values:
Default: ?
Applicable to: Weapons


Range= defines the distance (in cells) that a weapon can travel (aka the distance from the firing point to the impact point [in 3D, so it makes a difference for targets in different altitudes]). It takes a positive floating point value as literal distance, and -2 as a special value.

Mind that this only applies to non-homing projectiles. Homing projectiles (those which have a positive ROT= value) can follow their targets all over the map, unless they are tagged as Ranged=.

Special values

Range=-2 means infinite range.

This is the primary usage of Range; for other meanings, see Range (sound(md).ini).


Allied General notes

Range is the maximum distance that a weapon can travel across the RA2 battlefield.

The maximum for "normal" weapons is 255 whilst -2 is used for special spawn, scanning logic.