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

◆ InitLegacyExclusionCheck()

bool Entity::InitLegacyExclusionCheck ( )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 4337

4338 {
4339 //first check the globals
4340 if (m_AttachmentExclusionMaskGlobal.Count() > 0)
4341 return false;
4342
4343 //now the map
4344 int count = m_AttachmentExclusionSlotMap.Count();
4345 if (count > 1) //more than InventorySlots.INVALID
4346 {
4347 for (int i = 0; i < count; i++)
4348 {
4349 int countSet = m_AttachmentExclusionSlotMap.GetElement(i).Count();
4350 if (countSet > 0) //SOMETHING is defined
4351 {
4352 return false;
4353 }
4354 }
4355 }
4356
4357 return true;
4358 }
ref map< int, ref set< int > > m_AttachmentExclusionSlotMap
ref set< int > m_AttachmentExclusionMaskGlobal

Перекрестные ссылки m_AttachmentExclusionMaskGlobal и m_AttachmentExclusionSlotMap.

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