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

◆ magazinesHaveEqualSizes()

bool magazinesHaveEqualSizes ( notnull Magazine mag,
notnull Magazine mag2 )

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

101{
102 int w, h;
103 g_Game.GetInventoryItemSize(mag, w, h);
104 int w2, h2;
105 g_Game.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)
DayZGame g_Game
Определения DayZGame.c:3942
static bool IsWeaponLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:816

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

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