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

◆ RefreshAttachements()

void ItemBase::RefreshAttachements ( )
inlineprotected

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

337 {
338 int slot_id_camo;
339 int slot_id_xlights;
340 EntityAI eai_xlights;
341
342 slot_id_camo = InventorySlots.GetSlotIdFromString("CamoNet");
343 m_CamoNet = CamoNet.Cast(GetInventory().FindAttachment(slot_id_camo));
344
345 slot_id_xlights = InventorySlots.GetSlotIdFromString("Lights");
346 eai_xlights = GetInventory().FindAttachment(slot_id_xlights);
347
348 if (m_CamoNet)
349 {
351 //SetAnimationPhase("Camonet", 0);
352
353 if (!IsKindOf("MediumTent"))
354 {
355 AddProxyPhysics("camonet");
356 }
357 }
358
359 if (eai_xlights)
360 {
361 SetAnimationPhase("Xlights", 0);
362 SetAnimationPhase("Xlights_glass_r", 0);
363 SetAnimationPhase("Xlights_glass_g", 0);
364 SetAnimationPhase("Xlights_glass_b", 0);
365 SetAnimationPhase("Xlights_glass_y", 0);
366 }
367 }
class LogManager EntityAI
CamoNet m_CamoNet
Определения TentBase.c:37
void HandleCamoNetAttachment(bool hide)
Определения TentBase.c:776

Перекрестные ссылки InventorySlots::GetSlotIdFromString(), TentBase::HandleCamoNetAttachment() и m_CamoNet.

Используется в OnStoreLoad().