SnowOccupationBits: Difference between revisions
Appearance
en>Crimsonum No edit summary |
en>Crimsonum m Better wording. |
||
| Line 54: | Line 54: | ||
==Negative values== | ==Negative values== | ||
Negative values have the | Negative values have the above pattern reversed. In other words, SnowOccupationBits=-1 is the same as SnowOccupationBits=7; Infantry cannot occupy any corner. SnowOccupationBits=-2 is the same as SnowOccupationBits=6; Infantry can only occupy the east corner. And so on. | ||
{{Fn|1|InfantryTypes are unique in that they can move between and occupy subunits of a [[cell]]. In TD and RA, there are five subunits; in TS, RA2 and YR, there are four, but only three of these (south, east and west corner) can be occupied, regardless of the cell content.}} | {{Fn|1|InfantryTypes are unique in that they can move between and occupy subunits of a [[cell]]. In TD and RA, there are five subunits; in TS, RA2 and YR, there are four, but only three of these (south, east and west corner) can be occupied, regardless of the cell content.}} | ||
Revision as of 11:18, 23 October 2016
|
|
|
|
|
|
| Flag: | SnowOccupationBits |
| File(s): | Rules(md).ini |
| Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. |
| Default: | 7 |
| Applicable to: | TerrainTypes |
This flag determines if and how a 1x1 TerrainType object allows InfantryTypes to occupy its cell. The values and their effects are listed below:
| Value | Effect |
|---|---|
| 0 | Allows occupation of all south, east and west corners1 |
| 1 | Allows occupation of south and west corners |
| 2 | Allows occupation of south and east corners |
| 3 | Allows occupation of only south corner |
| 4 | Allows occupation of east and west corners |
| 5 | Allows occupation of only west corner |
| 6 | Allows occupation of only east corner |
| 7 | No occupation allowed |
| >7 | The above pattern repeats itself. |
Negative values
Negative values have the above pattern reversed. In other words, SnowOccupationBits=-1 is the same as SnowOccupationBits=7; Infantry cannot occupy any corner. SnowOccupationBits=-2 is the same as SnowOccupationBits=6; Infantry can only occupy the east corner. And so on.
1 ↑ InfantryTypes are unique in that they can move between and occupy subunits of a cell. In TD and RA, there are five subunits; in TS, RA2 and YR, there are four, but only three of these (south, east and west corner) can be occupied, regardless of the cell content.





