DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EEHealthLevelChanged()

override void Plastic_Explosive::EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

См. определение в файле Plastic_Explosive.c строка 181

182 {
183 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
184
185 if (GetGame().IsServer())
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
199 SetArmed(false);
200 SetTakeable(true);
201 }
202 }
203 }
void SetArmed(bool state)
Определения ExplosivesBase.c:271
class GP5GasMask extends MaskBase ItemBase
override void SetTakeable(bool pState)
Определения ItemBase.c:9042
proto native CGame GetGame()

Перекрестные ссылки GetGame(), SetArmed(), SetTakeable() и GameConstants::STATE_RUINED.