69 {
73
77
80
81
82
84 {
85 string baseStringBegin = Watchtower.BASE_VIEW_NAME;
86 string baseIgnoreStringEnd = Watchtower.BASE_WALL_NAME;
87
88 int floors = Watchtower.MAX_WATCHTOWER_FLOORS;
89 int walls = Watchtower.MAX_WATCHTOWER_WALLS;
90
91 string compName;
92 for (int i = 1; i < floors + 1; ++i)
93 {
94 compName = baseStringBegin + i.
ToString();
95 for (int j = 1; j < walls + 1; ++j)
97
98 if (i != 1)
100 else
102 }
103 }
104
105 string configPathProjectionTypename =
string.Format(
"CfgVehicles %1 projectionTypename",
m_Parent.GetType());
106 if (
GetGame().ConfigIsExisting(configPathProjectionTypename))
107 {
109 }
110
113 {
115 projectionEntity.SetAllowDamage(false);
118 }
119 else
120 {
122 if (projectionEntity == null)
123 {
125 return;
126 }
127
132 }
133
134 if (
ItemBase.Cast(projectionEntity))
135 {
137 }
138
140 if (
GetGame().ConfigIsExisting(configPathSlope))
141 {
143 }
144
146 if (
GetGame().ConfigIsExisting(configPathAlign))
147 {
149 }
150
152 if (
GetGame().ConfigIsExisting(configPathOrientationLimit))
153 {
155 }
156 }
eBleedingSourceType GetType()
const int ECE_PLACE_ON_SURFACE
class GP5GasMask extends MaskBase ItemBase
proto native vector ConfigGetVector(string path)
Get vector value from config on path.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
string ConfigGetTextOut(string path)
Get string value from config on path.
proto native int ConfigGetInt(string path)
Get int value from config on path.
void SetProjectionEntity(EntityAI projection)
vector m_YawPitchRollLimit
ref array< string > m_WatchtowerBlockedComponentNames
string m_ProjectionTypename
ProjectionTrigger m_ProjectionTrigger
EntityAI GetProjectionEntity()
string ProjectionBasedOnParent()
ref array< string > m_WatchtowerIgnoreComponentNames
proto native CGame GetGame()
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.