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

◆ GetNextPreparedMagazine()

Magazine WeaponManager::GetNextPreparedMagazine ( out int startIdx)
inlineprivate

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

1102 {
1103 int count = m_SuitableMagazines.Count();
1104 Magazine mag;
1105 for (int i = startIdx; i < count; ++i)
1106 {
1107 mag = m_SuitableMagazines[i];
1108 if (mag && mag.GetAmmoCount() > 0 && (!mag.GetHierarchyParent() || mag.GetHierarchyParent().GetInventory().AreChildrenAccessible()))
1109 {
1110 startIdx = i;
1111 return m_SuitableMagazines.Get(i);
1112 }
1113 }
1114 return null;
1115 }
ref array< Magazine > m_SuitableMagazines
Определения WeaponManager.c:35

Перекрестные ссылки m_SuitableMagazines.

Используется в FirearmActionLoadMultiBulletQuick::Start().