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

Maps/Section: Infantry

From ModEnc
Revision as of 15:52, 5 May 2006 by DCoder (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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: Maps/Section: Infantry
File(s): rules(md).ini
Values: ERROR – No value types set! Please edit this page and fix the Flag template!

This entry was copied from DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.

For further information, please read Inclusion of The Guide.




This section simply defines which InfantryTypes are on the map from the start. The section takes the form of a numbered list (the numbering convention is not important but keep them in order to avoid confusion). Each entry in the list takes the following format;-

NUMBER=House,InfantryType,HEALTH,X,Y,SUB-CELL,MISSION,DIRECTION,TAG ID,A,B,C,D,E

NUMBER
Specifies the number of this object for listing purposes. Each line must have an unused value. Keep these in order, although your numbering convention is not important.

House
Specifies the house from the [Houses] section of the map file which will own this object.

InfantryType
Specifies the InfantryType from the RULES file which is placed on the map.

HEALTH
Percentage of this objects Strength= that it has when placed on the map. 1 is minimum, 256 is 100%.

X
Specifies the X co-ordinate of the object on the map, derived in the same manner as waypoints.

Y
Specifies the Y co-ordinate of the object on the map, derived in the same manner as waypoints.

SUB-CELL
Specifies the sub-cell for this InfantryType. Uniquely, you can get more than one InfantryType to occupy a single cell - this value determines where in the cell this infantry is placed. There are five sub-cells numbered '0' to '4' meaning you can place up to 5 units in a single cell, although '0' should be used if this is the only infantry in that cell.

MISSION
Specifies the mission to place the unit in. See the AI.INI Guide and the Mission Control section of the RULES.INI Guide for more details of missions.

DIRECTION
Specifies the direction the object is facing - '0' is North East, '32' is East, '64' is South East, '96' is South, '128' is South West, '160' is West, '192' is North West and '224' is North.

TAG ID
Specifies the Tag= attached to this object. Put here a tag ID number here if you wish to associate this unit to a trigger. Set this to None for no trigger.

A
Specifies the level of veterancy for this object. Set this to '0' for Little Experience, '1' for veteran and '2' for Elite.

B
Specifies the Group= for this object if part of a TeamType. See the AI.INI Guide for more details on the Group= setting.

C
Can be set to '0' or '1' and specifies whether or not this object is on a bridge. This will force the computer to place this object in the nearest occupiable cell should the bridge be initially defined as destroyed.

D
Can be set to '0' or '1' and specifies whether or not this object is recruitable by the AI or if it should stay in it's default mission.

E
Can be set to '0' or '1' and specifies whether or not this object is recruitable from the field by the AI for inclusion in it's AITriggerTypes.