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

◆ GetPreparedMagazine()

Magazine WeaponManager::GetPreparedMagazine ( )
inlineprivate

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

1079 {
1080 Magazine mag;
1081 for (int i = 0; i < m_SuitableMagazines.Count(); i++)
1082 {
1083 mag = m_SuitableMagazines[i];
1084 if (!mag || mag.IsRuined() || (mag.GetHierarchyParent() && mag.GetHierarchyParent().IsWeapon()) )
1085 {
1086 m_SuitableMagazines.Remove(i);
1087 i--;
1088 continue;
1089 }
1090
1091 if(!mag.GetHierarchyParent() || mag.GetHierarchyParent().GetInventory().AreChildrenAccessible())
1092 {
1093 if (mag.GetAmmoCount() > 0)
1094 return mag;
1095 }
1096 }
1097
1098 return null;
1099 }
ref array< Magazine > m_SuitableMagazines
Определения WeaponManager.c:35

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