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