87 {
88 bool is_closed;
89 bool is_ruined;
91 string zone;
92 string camo_off;
93 string camo_on;
94 ToggleAnimations toggle;
95
96 for (int i = 0; i < m_ToggleAnimations.Count(); i++)
97 {
98 toggle = m_ToggleAnimations.GetKey(i);
101
102 if (hide)
103 {
104 SetAnimationPhase( camo_off, hide );
105 SetAnimationPhase( camo_on, hide );
106 }
107 else
108 {
111 DamageSystem.GetDamageZoneFromComponentName(
this,
component,zone);
112 is_ruined = GetHealthLevel(zone) == GameConstants.STATE_RUINED;
114
115 if (is_closed)
116 {
117 SetAnimationPhase( camo_on, is_ruined );
118 }
119 else
120 {
121 SetAnimationPhase( camo_off, is_ruined );
122 }
123 }
124 }
125
126 SetAnimationPhase( "Camo_Roof", hide );
127 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.