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

Difference between revisions of "SizeLimit"

From ModEnc
Jump to: navigation, search
 
(0054D10A because of this if bigger than 2)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{Flag
Specifies the maximum amount of space this VehicleType= with a Passengers= value set can hold. Defaults to '0' and the size is inclusive so in other words if this was set to '3' then it could hold 3 units with Size=1, or 1 unit with Size=2 and 1 unit with Size=1.
+
|name=SizeLimit
 +
|files={{Categ|Rules(md).ini}}
 +
|values=integers
 +
|default=0
 +
|types={{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}
 +
|ra2=yes
 +
|yr=yes
 +
|rp=yes
 +
}}
 +
 
 +
In RA2/YR, <tt>SizeLimit</tt>= determines the maximum <tt>[[Size]]=</tt> of a unit that is allowed to enter this unit as a passenger.
 +
 
 +
In RA1/TS, there was no such flag, and the transport size limit was hardcoded to 1. In RA1, all objects, including vehicles, were hardcoded to act as if they had <tt>[[Size]]=1</tt> , while in TS, vehicles were hardcoded not to behave as passengers, and the infantry was again treated as <tt>[[Size]]=1</tt>.
 +
 
 +
{{Bugs}}
 +
Giving a vehicle with <tt>Size</tt> smaller than <tt>SizeLimit</tt> of an amphibiuos transport a <tt>SizeLimit</tt> bigger than 2 (i.e. can load actual tanks)will result in a seemingly random crash when ordered to enter said transport. <tt>(RA2 Eip:0054D10A)</tt>

Latest revision as of 11:24, 27 February 2017

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: SizeLimit
File(s): Rules(md).ini
Values: integers
Default: 0
Applicable to: VehicleTypes, AircraftTypes


In RA2/YR, SizeLimit= determines the maximum Size= of a unit that is allowed to enter this unit as a passenger.

In RA1/TS, there was no such flag, and the transport size limit was hardcoded to 1. In RA1, all objects, including vehicles, were hardcoded to act as if they had Size=1 , while in TS, vehicles were hardcoded not to behave as passengers, and the infantry was again treated as Size=1.

Cc alert.png Bugs/Side-Effects/Unexpected Limitations

Giving a vehicle with Size smaller than SizeLimit of an amphibiuos transport a SizeLimit bigger than 2 (i.e. can load actual tanks)will result in a seemingly random crash when ordered to enter said transport. (RA2 Eip:0054D10A)