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

Difference between revisions of "TemperateOccupationBits"

From ModEnc
Jump to: navigation, search
(Splitting Page)
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
+
{{Flag
Specific to trees and specifies how many 'bits' high off the ground this object occupies in standard theaters. Assists with drawing logic when objects move 'behind' it. The 'occupied' bits are the parts that a unit cannot move 'through'.<br />
+
|name={{PAGENAME}}
<br />
+
|files={{Categ|Rules(md).ini}}
 +
|values={{values|int}}
 +
|default=7
 +
|types={{Categ|TerrainTypes}}
 +
|ra=no
 +
|cs=no
 +
|am=no
 +
|ts=yes
 +
|fs=yes
 +
|ets=yes
 +
|ra2=yes
 +
|yr=yes
 +
|rp=yes
 +
}}
 +
 
 +
This flag determines if and how a 1x1 [[TerrainTypes|TerrainType]] object allows [[InfantryTypes]] to occupy{{Fnl|1}} its cell. The values and their effects are listed below:
 +
 
 +
{|class="wikitable"
 +
|-
 +
!Value
 +
!colspan="2"|Effect
 +
|-
 +
|-
 +
|0
 +
|Allows occupation of all three [[Cell_Spots|corners]], south, east, and west {{Fnl|2}}
 +
|[[File:Occupationbits0.png]]
 +
|-
 +
|1
 +
|Allows occupation of south and west corners
 +
|[[File:Occupationbits1.png]]
 +
|-
 +
|2
 +
|Allows occupation of south and east corners
 +
|[[File:Occupationbits2.png]]
 +
|-
 +
|3
 +
|Allows occupation of only south corner
 +
|[[File:Occupationbits3.png]]
 +
|-
 +
|4
 +
|Allows occupation of east and west corners
 +
|[[File:Occupationbits4.png]]
 +
|-
 +
|5
 +
|Allows occupation of only west corner
 +
|[[File:Occupationbits5.png]]
 +
|-
 +
|6
 +
|Allows occupation of only east corner
 +
|[[File:Occupationbits6.png]]
 +
|-
 +
|7
 +
|No occupation allowed
 +
|[[File:Occupationbits7.png]]
 +
|-
 +
|>7
 +
|colspan="2"|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==
 +
*[[Cell_Spots|Cell Spots]]
 +
*[[SnowOccupationBits]]
 +
 
 +
==Footnotes==
 +
 
 +
{{Fn|1|InfantryTypes are unique in that they can move between and occupy [[Cell_Spots|subunits of a map cell]].}}
 +
{{Fn|2|In {{ts}} through {{yr}}, infantry can never actually occupy the north corner, only move through it.}}

Latest revision as of 10:52, 24 June 2019

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: 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 Occupationbits0.png
1 Allows occupation of south and west corners Occupationbits1.png
2 Allows occupation of south and east corners Occupationbits2.png
3 Allows occupation of only south corner Occupationbits3.png
4 Allows occupation of east and west corners Occupationbits4.png
5 Allows occupation of only west corner Occupationbits5.png
6 Allows occupation of only east corner Occupationbits6.png
7 No occupation allowed Occupationbits7.png
>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.