246 {
247 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
248
250 {
251 if (newLevel == GameConstants.STATE_RUINED)
252 {
253 for (int attachmentIdx = 0; attachmentIdx < GetInventory().AttachmentCount(); attachmentIdx++)
254 {
255 ItemBase attachment =
ItemBase.Cast(GetInventory().GetAttachmentFromIndex(attachmentIdx));
256 if (attachment)
257 {
258 attachment.UnlockFromParent();
259 attachment.SetHealth("", "", 0.0);
260 }
261 }
262
265 }
266 }
267 }
void SetArmed(bool state)
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
proto native CGame GetGame()