212 {
213 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
214
216 return;
217
218 if (zone ==
"" &&
GetState() ==
PITCHED && newLevel == GameConstants.STATE_RUINED &&
g_Game.IsServer())
219 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(
this,
m_HalfExtents);
220
221 if (zone != "Body" && zone != "Inventory" && zone != "")
222 {
223 if (newLevel == GameConstants.STATE_RUINED)
224 {
225 array<string> selections = new array<string>;
226 DamageSystem.GetComponentNamesFromDamageZone(this,zone,selections);
227 for (int j = 0; j < selections.Count(); j++)
228 {
229 if (selections.Get(j) != "")
230 {
231 RemoveProxyPhysics(selections.Get(j));
232
234 }
235 }
236 }
237 else if (oldLevel == GameConstants.STATE_RUINED)
238 {
240 {
242 }
243 }
244 }
245 }
bool m_FixDamageSystemInit
void TryPitch(bool update_navmesh, bool init=false)
void AnimateCamonetByOpeningSelection(string opening_selection)