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

◆ InitDOFAvailability()

bool ItemOptics::InitDOFAvailability ( )
inlineprotected

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

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

431 {
432 float fov_max;
433 string path = "cfgVehicles " + GetType() + " OpticsInfo";
434
435 /*
436 Weapon_Base weapon = Weapon_Base.Cast(GetHierarchyParent());
437 if (!weapon)
438 return false; // no DOF for handheld optics
439 */
440 fov_max = g_Game.ConfigGetFloat(path + " opticsZoomMax");
441 if (fov_max >= GameConstants.DZPLAYER_CAMERA_FOV_IRONSIGHTS)
442 {
443 return true;
444 }
445 return false;
446 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:3942
string path
Определения OptionSelectorMultistate.c:142

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

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