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

◆ HideHairSelections()

void ManBase::HideHairSelections ( ItemBase item,
bool state )
inlineprotected

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

8614 {
8615 if (!item || !item.GetHeadHidingSelection() || !m_CharactersHead)
8616 return;
8617
8618 int slot_id; //item currently attached (or detaching from) here
8619 string slot_name; //item currently attached (or detaching from) here
8620 string str
8621 int idx = 0;
8622 int i;
8623 int count;
8624 item.GetInventory().GetCurrentAttachmentSlotInfo(slot_id,slot_name);
8625
8626 if (item.HidesSelectionBySlot())
8627 {
8628 count = item.GetInventory().GetSlotIdCount();
8629 for (i = 0; i < count; i++)
8630 {
8631 if (item.GetInventory().GetSlotId(i) == slot_id)
8632 {
8633 str = item.GetHeadHidingSelection().Get(i);
8634 idx = m_CharactersHead.m_HeadHairSelectionArray.Find(str);
8635 if (idx != -1)
8636 SetHairLevelToHide(idx,state);
8637 #ifdef DEVELOPER
8638 else
8639 Debug.Log("No valid selection '" + str + "' found on head of " + GetType() + ". Verify the p3d, model config, and the 'HAIR_HIDING_SELECTIONS' macro in basicDefines.");
8640 #endif
8641 }
8642 }
8643 }
8644 else
8645 {
8646 count = item.GetHeadHidingSelection().Count();
8647 for (i = 0; i < count; i++)
8648 {
8649 str = item.GetHeadHidingSelection().Get(i);
8650 idx = m_CharactersHead.m_HeadHairSelectionArray.Find(str);
8651 if (idx != -1)
8652 SetHairLevelToHide(idx,state);
8653 #ifdef DEVELOPER
8654 else
8655 Debug.Log("No valid selection '" + str + "' found on head of " + GetType() + ". Verify the p3d, model config, and the 'HAIR_HIDING_SELECTIONS' macro in basicDefines.");
8656 #endif
8657 }
8658 }
8660 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
void UpdateHairSelectionVisibility(bool was_debug=false)
Определения PlayerBase.c:8662
void SetHairLevelToHide(int level, bool state, bool was_debug=false)
Dynamic hair hiding.
Определения PlayerBase.c:8561
Head_Default m_CharactersHead
Определения PlayerBase.c:138

Перекрестные ссылки GetType(), Debug::Log(), m_CharactersHead, SetHairLevelToHide() и UpdateHairSelectionVisibility().

Используется в CheckHairClippingOnCharacterLoad(), EEItemAttached() и EEItemDetached().