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

◆ magazinesHaveEqualSizes()

bool magazinesHaveEqualSizes ( notnull Magazine mag,
notnull Magazine mag2 )

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

99{
100 int w, h;
101 GetGame().GetInventoryItemSize(mag, w, h);
102 int w2, h2;
103 GetGame().GetInventoryItemSize(mag2, w2, h2);
104 if (w == w2 && h == h2)
105 {
106 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] guard - same inventory sizes"); }
107 return true;
108 }
109
110 if (LogManager.IsWeaponLogEnable()) { wpnDebugPrint("[wpnfsm] guard - different inventory sizes"); }
111 return false;
112}
void wpnDebugPrint(string s)
Определения Debug.c:9
proto void GetInventoryItemSize(InventoryItem item, out int width, out int height)
static bool IsWeaponLogEnable()
Определения Debug.c:718
Определения Debug.c:594
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetInventoryItemSize(), LogManager::IsWeaponLogEnable() и wpnDebugPrint().

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