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

◆ InitDOFAvailability()

bool ItemOptics::InitDOFAvailability ( )
inlineprotected

optics with more than 1x zoom do not allow DOF changes

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

460 {
461 float fov_max;
462 string path = "cfgVehicles " + GetType() + " OpticsInfo";
463
464 /*
465 Weapon_Base weapon = Weapon_Base.Cast(GetHierarchyParent());
466 if (!weapon)
467 return false; // no DOF for handheld optics
468 */
469 fov_max = g_Game.ConfigGetFloat(path + " opticsZoomMax");
470 if (fov_max >= GameConstants.DZPLAYER_CAMERA_FOV_IRONSIGHTS)
471 {
472 return true;
473 }
474 return false;
475 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
string path
Определения OptionSelectorMultistate.c:142

Перекрестные ссылки GameConstants::DZPLAYER_CAMERA_FOV_IRONSIGHTS, g_Game, GetType() и path.

Используется в InitOpticsPPInfo().