191 {
192 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
193
195 return;
196
197 if (zone ==
"" &&
GetState() ==
PITCHED && newLevel == GameConstants.STATE_RUINED &&
GetGame().IsServer())
198 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(
this,
m_HalfExtents);
199
200 if (zone != "Body" && zone != "Inventory" && zone != "")
201 {
202 if (newLevel == GameConstants.STATE_RUINED)
203 {
204 array<string> selections = new array<string>;
205 DamageSystem.GetComponentNamesFromDamageZone(this,zone,selections);
206 for (int j = 0; j < selections.Count(); j++)
207 {
208 if (selections.Get(j) != "")
209 {
210 RemoveProxyPhysics(selections.Get(j));
211
213 }
214 }
215 }
216 else if (oldLevel == GameConstants.STATE_RUINED)
217 {
219 {
221 }
222 }
223 }
224 }
bool m_FixDamageSystemInit
void TryPitch(bool update_navmesh, bool init=false)
void AnimateCamonetByOpeningSelection(string opening_selection)
proto native CGame GetGame()