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

◆ magazinesHaveEqualSizes()

bool magazinesHaveEqualSizes ( notnull Magazine mag,
notnull Magazine mag2 )

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

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

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

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