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

◆ GetPreparedMagazine()

Magazine WeaponManager::GetPreparedMagazine ( )
inlineprivate

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

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

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