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

◆ InitLegacySlotExclusionValuesDerived()

void Entity::InitLegacySlotExclusionValuesDerived ( )
inlineprotected

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

4294 {
4295 int slotId;
4296 int slotCount = GetInventory().GetSlotIdCount();
4297 for (int i = 0; i < slotCount; i++)
4298 {
4299 slotId = GetInventory().GetSlotId(i);
4300 set<int> tmp;
4301 switch (slotId)
4302 {
4303 case InventorySlots.HEADGEAR:
4304 {
4305 tmp = new set<int>;
4306 tmp.Copy(GetAttachmentExclusionMaskSlot(slotId));
4307 if (ConfigGetBool("noNVStrap"))
4308 {
4309 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_HEADGEAR);
4310 }
4311 if (ConfigGetBool("noMask"))
4312 {
4313 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADGEAR);
4314 }
4315 if (ConfigGetBool("noEyewear"))
4316 {
4317 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_HEADGEAR);
4318 }
4320 break;
4321 }
4322
4323 case InventorySlots.MASK:
4324 {
4325 tmp = new set<int>;
4326 tmp.Copy(GetAttachmentExclusionMaskSlot(slotId));
4327 if (ConfigGetBool("noNVStrap"))
4328 {
4329 tmp.Insert(EAttExclusions.LEGACY_HEADSTRAP_MASK);
4330 }
4331 if (ConfigGetBool("noHelmet"))
4332 {
4333 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_MASK);
4334 }
4335 if (ConfigGetBool("noEyewear"))
4336 {
4337 tmp.Insert(EAttExclusions.LEGACY_EYEWEAR_MASK);
4338 }
4340 break;
4341 }
4342
4343 case InventorySlots.EYEWEAR:
4344 {
4345 tmp = new set<int>;
4346 tmp.Copy(GetAttachmentExclusionMaskSlot(slotId));
4347 if (ConfigGetBool("isStrap"))
4348 {
4349 if (ConfigGetBool("noHelmet"))
4350 {
4351 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_HEADSTRAP);
4352 }
4353 if (ConfigGetBool("noMask"))
4354 {
4355 tmp.Insert(EAttExclusions.LEGACY_MASK_HEADSTRAP);
4356 }
4357 }
4358 else
4359 {
4360 if (ConfigGetBool("noHelmet"))
4361 {
4362 tmp.Insert(EAttExclusions.LEGACY_HEADGEAR_EYEWEWEAR);
4363 }
4364 if (ConfigGetBool("noMask"))
4365 {
4366 tmp.Insert(EAttExclusions.LEGACY_MASK_EYEWEWEAR);
4367 }
4368 }
4370 break;
4371 }
4372 }
4373 }
4374 }
set< int > GetAttachmentExclusionMaskSlot(int slotId)
Specific slot behavior.
Определения EntityAI.c:4463
void SetAttachmentExclusionMaskSlot(int slotId, set< int > values)
sets values for specific slot
Определения EntityAI.c:4401
proto native GameInventory GetInventory()
proto native int GetSlotId(int index)
attachments
proto native int GetSlotIdCount()

Перекрестные ссылки GetAttachmentExclusionMaskSlot(), GetInventory() и SetAttachmentExclusionMaskSlot().

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