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

MovementZone: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


MovementZone says where is the unit allowed to go and helps the [[AI]] pathfinding routines. The possible values it takes are:
MovementZone says where is the unit allowed to go and helps the [[AI]] pathfinding routines. The possible values it takes are:
 
{| align="center" cellpadding="6" class="table_descrowdesccol"
* <tt>Amphibious</tt> - when pathfinding, the unit will consider both ground and water as passable.
!''MovementZone''
* <tt>AmphibiousCrusher</tt> - when pathfinding, the unit will consider both ground and water as passible. In addition, it will assume that it is capable of crushing infantry, but is unarmed.<sup>[[#Notes|1]]</sup>.
!''Description''
* <tt>AmphibiousDestroyer</tt> - Same as above, additionally can destroy terrain obstacles. In RA2 this is tied to being an amphibious infantry.
|-
* <tt>Crusher</tt> - when pathfinding, only clear ground is considered passable. Also assumes that it can crush infantry, but is not armed.<sup>[[#Notes|1]]</sup>
!Amphibious
* <tt>CrusherAll</tt> - Same as above, additionally assumes that it can crush any mobile object, as well as walls. <sup>[[#Notes|2]]</sup>
|When pathfinding, the unit will consider both ground and water as passable.
* <tt>Destroyer</tt> - when pathfinding, considers ground passable. Can destroy terrain obstacles and crush infantry obstacles.
|-
* <tt>Fly</tt> - when pathfinding, it assumes everything passable.
!AmphibiousCrusher
* <tt>Infantry</tt> - when pathfinding, only clear ground is considered passable.
|When pathfinding, the unit will consider both ground and water as passible. In addition, it will assume that it is capable of crushing infantry, but is unarmed.<sup>[[#Notes|1]]</sup>
* <tt>InfantryDestroyer</tt> - Same as above, but can destroy terrain obstacles such as trees.
|-
* <tt>Normal</tt> - when pathfinding, considers clear ground passable. Assumes it can destroy terrain obstacles and crush infantry.
!AmphibiousDestroyer
* <tt>Subterannean</tt> - when pathfinding, considers clear ground passable. When destination is too far away for surface travel, or there is an obstacle in the way, unit will dig underground. Unit cannot dig on pavement. In other cases, when subterranean travel is not possible, or surface travel is quicker, acts like a unit with MovementZone=Crusher or MovementZone=Destroyer.
|Same as '''AmphibiousCrusher''', additionally can destroy terrain obstacles. In RA2 this is tied to being an amphibious infantry.
* <tt>Water</tt> - when pathfinding, considers only water as passable.
|-
!Crusher
|When pathfinding, only clear ground is considered passable. Also assumes that it can crush infantry, but is not armed.<sup>[[#Notes|1]]</sup>
|-
!CrusherAll
|Same as '''Crusher''', additionally assumes that it can crush any mobile object, as well as walls.<sup>[[#Notes|2]]</sup>
|-
!Destroyer
|When pathfinding, considers ground passable. Can destroy terrain obstacles and crush infantry obstacles.
|-
!Fly
|When pathfinding, it assumes everything passable.
|-
!Infantry
|When pathfinding, only clear ground is considered passable.
|-
!InfantryDestroyer
|Same as '''Infantry''', but can destroy terrain obstacles such as trees.
|-
!Normal
|When pathfinding, considers clear ground passable. Assumes it can destroy terrain obstacles and crush infantry.
|-
!Subterannean
|When pathfinding, considers clear ground passable. When destination is too far away for surface travel, or there is an obstacle in the way, unit will dig underground. Unit cannot dig on pavement. In other cases, when subterranean travel is not possible, or surface travel is quicker, acts like a unit with MovementZone=Crusher or MovementZone=Destroyer.
|-
!Water
|When pathfinding, considers only water as passable.
|}


=== Notes ===
=== Notes ===

Revision as of 05:14, 7 November 2013

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: MovementZone
File(s): rules(md).ini
Values: special strings
Default: Normal
Applicable to: InfantryTypes, VehicleTypes, AircraftTypes, BuildingTypes (to the same extent as Locomotors do)


MovementZone says where is the unit allowed to go and helps the AI pathfinding routines. The possible values it takes are:

MovementZone Description
Amphibious When pathfinding, the unit will consider both ground and water as passable.
AmphibiousCrusher When pathfinding, the unit will consider both ground and water as passible. In addition, it will assume that it is capable of crushing infantry, but is unarmed.1
AmphibiousDestroyer Same as AmphibiousCrusher, additionally can destroy terrain obstacles. In RA2 this is tied to being an amphibious infantry.
Crusher When pathfinding, only clear ground is considered passable. Also assumes that it can crush infantry, but is not armed.1
CrusherAll Same as Crusher, additionally assumes that it can crush any mobile object, as well as walls.2
Destroyer When pathfinding, considers ground passable. Can destroy terrain obstacles and crush infantry obstacles.
Fly When pathfinding, it assumes everything passable.
Infantry When pathfinding, only clear ground is considered passable.
InfantryDestroyer Same as Infantry, but can destroy terrain obstacles such as trees.
Normal When pathfinding, considers clear ground passable. Assumes it can destroy terrain obstacles and crush infantry.
Subterannean When pathfinding, considers clear ground passable. When destination is too far away for surface travel, or there is an obstacle in the way, unit will dig underground. Unit cannot dig on pavement. In other cases, when subterranean travel is not possible, or surface travel is quicker, acts like a unit with MovementZone=Crusher or MovementZone=Destroyer.
Water When pathfinding, considers only water as passable.

Notes

1: To actually crush infantry, it needs to be Crusher=yes. Infantry which has Crushable=no or DeployedCrushable=no (YR only, only works when deployed, obviously) set will not be crushable.
2: In order to actually crush vehicles, it needs to be OmniCrusher=yes. Objects which have OmniCrushResistant=yes will not be crushable.