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

◆ InitLegacyExclusionCheck()

bool Entity::InitLegacyExclusionCheck ( )
inlineprotected

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

4271 {
4272 //first check the globals
4273 if (m_AttachmentExclusionMaskGlobal.Count() > 0)
4274 return false;
4275
4276 //now the map
4277 int count = m_AttachmentExclusionSlotMap.Count();
4278 if (count > 1) //more than InventorySlots.INVALID
4279 {
4280 for (int i = 0; i < count; i++)
4281 {
4282 int countSet = m_AttachmentExclusionSlotMap.GetElement(i).Count();
4283 if (countSet > 0) //SOMETHING is defined
4284 {
4285 return false;
4286 }
4287 }
4288 }
4289
4290 return true;
4291 }
ref map< int, ref set< int > > m_AttachmentExclusionSlotMap
ref set< int > m_AttachmentExclusionMaskGlobal

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

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