182 {
183 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
184
186 {
187 if (newLevel == GameConstants.STATE_RUINED)
188 {
189 for (int attachmentIdx = 0; attachmentIdx < GetInventory().AttachmentCount(); attachmentIdx++)
190 {
191 ItemBase attachment =
ItemBase.Cast(GetInventory().GetAttachmentFromIndex(attachmentIdx));
192 if (attachment)
193 {
194 attachment.UnlockFromParent();
195 attachment.SetHealth("", "", 0.0);
196 }
197 }
198
201 }
202 }
203 }
void SetArmed(bool state)
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
proto native CGame GetGame()