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

◆ EEHealthLevelChanged()

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

См. определение в файле 4_World/DayZ/Entities/Core/Inherited/InventoryItem.c строка 347

348 {
349 super.EEHealthLevelChanged( oldLevel, newLevel, zone );
350 #ifdef DIAG_DEVELOPER
351 // used when fixing the whole car through debug
352 if (m_Initialized && newLevel == GameConstants.STATE_PRISTINE)
353 {
354 string newWheel = GetReplacement();
355 if (newWheel != "")
356 {
357 //Unlock to allow creating a new item
358 if (IsLockedInSlot())
360
361 ReplaceWheelLambda lambda = new ReplaceWheelLambda(this, newWheel, null);
362 lambda.SetTransferParams(true, true, true);
363 GetInventory().ReplaceItemWithNew(InventoryMode.SERVER, lambda);
364 }
365 }
366 #endif
367 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void UnlockFromParent()
Unlocks this item from its attachment slot of its parent.
Определения ItemBase.c:774
bool m_Initialized
Определения UiHintPanel.c:317

Перекрестные ссылки GetReplacement(), m_Initialized, GameConstants::STATE_PRISTINE и UnlockFromParent().