TemperateOccupationBits: Difference between revisions
Appearance
en>Crimsonum Updated information along with helpful images. |
en>Crimsonum mNo edit summary |
||
| Line 63: | Line 63: | ||
Negative values have the above pattern reversed. In other words, TemperateOccupationBits=-1 is the same as TemperateOccupationBits=7; Infantry cannot occupy any corner. TemperateOccupationBits=-2 is the same as TemperateOccupationBits=6; Infantry can only occupy the east corner. And so on. | Negative values have the above pattern reversed. In other words, TemperateOccupationBits=-1 is the same as TemperateOccupationBits=7; Infantry cannot occupy any corner. TemperateOccupationBits=-2 is the same as TemperateOccupationBits=6; Infantry can only occupy the east corner. And so on. | ||
==See Also== | |||
*[[Cell_Spots|Cell Spots]] | |||
==Footnotes== | ==Footnotes== | ||
Revision as of 00:00, 24 June 2019
|
|
|
|
|
|
| Flag: | TemperateOccupationBits |
| 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 occupy1 its cell. The values and their effects are listed below:
| Value | Effect | |
|---|---|---|
| 0 | Allows occupation of all three corners, south, east, and west 2 | |
| 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, TemperateOccupationBits=-1 is the same as TemperateOccupationBits=7; Infantry cannot occupy any corner. TemperateOccupationBits=-2 is the same as TemperateOccupationBits=6; Infantry can only occupy the east corner. And so on.
See Also
Footnotes
1 ↑ InfantryTypes are unique in that they can move between and occupy subunits of a map cell.
2 ↑ In Tiberian Sun through Yuri's Revenge, infantry can never actually occupy the north corner, only move through it.





