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

Passengers: Difference between revisions

From ModEnc
Jump to navigation Jump to search
4SG (talk | contribs)
m Properly re-set to Yes on "PipScale" table portion. Using other pip dependent logics like Ammo can cause internal errors if PipScale isn't Passengers. May also edit memory in other locations when updating passengers if not set, like as BuildingType version of passengers does.
ATHSE (talk | contribs)
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 4: Line 4:
|values=integers
|values=integers
|default=0
|default=0
|types={{Categ|VehicleTypes}}, {{Categ|AircraftTypes}},{{Categ|BuildingTypes}}
|types={{Categ|VehicleTypes}}, {{Categ|AircraftTypes}}, {{Categ|BuildingTypes}}
|ra=yes
|ra=yes
|cs=yes
|cs=yes
Line 16: Line 16:
}}
}}
== On VehicleTypes and AircraftTypes ==
== On VehicleTypes and AircraftTypes ==
This tag is required for all transports. However, its functionality differs between games:
This tag defines the transport units capacity, and is required for all transports. A transport vehicle is defined by the {{f|Category|Transport|link}} tag.


{| border=1 cellspacing=0 class="table_descrow" style="text-align: center; vertical-align: middle;"
Functionality difference between games:
|-
*RA/CS/AM
| colspan=3 | Game
::*capacity is an absolute passenger capacity, every passenger unit using up one slot.
| rowspan=2 style="text-align: left" | Functionality
*TS/FS/RA2/YR
|-
::*passenger capacity equals the transport units own {{f|Size|link}} if not specified.
| RA/CS/AM
::*capacity is the limit of all passenger {{f|Size|link}} values combined allowed to enter.
| TS/FS
::*passengers exceeding this transport units {{f|SizeLimit|link}} are not allowed to enter.
| RA2/YR
::*transport unit should have {{f|PipScale|Passengers|link}} set.
|-
 
| '''Yes'''
Caveat: Certain objects have additional hardcoded conditions preventing some objects from entering others.
| '''Yes'''
| '''Yes'''{{Sup|*}}
| style="text-align:left" | In RA: defines the amount of objects this transport can carry.<br/>In later games: defines the amount of slots this object has for purposes of unit transportation. An object takes up {{f|Size|link}} slots in a transport, and objects with {{f|Size|link}} exceeding this object's {{f|SizeLimit|link}} are not allowed to enter. Certain objects have additional hardcoded conditions preventing some objects from entering.<br />In RA2/YR, {{f|Passengers|link}} cannot exceed {{f|Size|link}}.
|-
| ''No''
| '''Yes'''
| '''Yes'''
| style="text-align: left" | Requires <tt>{{f|PipScale|Passengers|link}}</tt> to be set, or [[Internal Error]]s are bound to occur.
|-
| '''Yes'''
| '''Yes'''
| '''Yes'''
| style="text-align: left" | Defines the amount of pips displayed under this object.
|}


== On BuildingTypes ==
== On BuildingTypes ==
In YR, this flag determines the amount of objects allowed inside if this structure has {{f|InfantryAbsorb|yes|link}} or {{f|UnitAbsorb|yes|link}}. Unlike on transports, each object takes up exactly one slot.
In YR, this tag determines the amount of objects allowed inside if this structure has {{f|InfantryAbsorb|yes|link}} or {{f|UnitAbsorb|yes|link}}.  
==Note==
 
[[File:Passengers=1 SizeLimit=2.gif]]<br>'''Passengers=1''' and '''SizeLimit=2''' in YR.<br>
Unlike on transports, each object takes up exactly one slot.
*For Ra1, oversetting the value of '''Passengers''' such as '''Passengers=999999999''' will not affect the game speed When you choose a transport unit '''(As for games other than Ra1, they all run slower. when doing this)'''.

Latest revision as of 16:15, 20 March 2025

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


On VehicleTypes and AircraftTypes

This tag defines the transport units capacity, and is required for all transports. A transport vehicle is defined by the Category=Transport tag.

Functionality difference between games:

  • RA/CS/AM
  • capacity is an absolute passenger capacity, every passenger unit using up one slot.
  • TS/FS/RA2/YR
  • passenger capacity equals the transport units own Size if not specified.
  • capacity is the limit of all passenger Size values combined allowed to enter.
  • passengers exceeding this transport units SizeLimit are not allowed to enter.
  • transport unit should have PipScale=Passengers set.

Caveat: Certain objects have additional hardcoded conditions preventing some objects from entering others.

On BuildingTypes

In YR, this tag determines the amount of objects allowed inside if this structure has InfantryAbsorb=yes or UnitAbsorb=yes.

Unlike on transports, each object takes up exactly one slot.