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

◆ InitDOFAvailability()

bool ItemOptics::InitDOFAvailability ( )
inlineprivate

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

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

366 {
367 float fov_max;
368 string path = "cfgVehicles " + GetType() + " OpticsInfo";
369
370 /*
371 Weapon_Base weapon = Weapon_Base.Cast(GetHierarchyParent());
372 if (!weapon)
373 return false; // no DOF for handheld optics
374 */
375 fov_max = GetGame().ConfigGetFloat(path + " opticsZoomMax");
376 if (fov_max >= GameConstants.DZPLAYER_CAMERA_FOV_IRONSIGHTS)
377 {
378 return true;
379 }
380 return false;
381 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
string path
Определения OptionSelectorMultistate.c:142
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native CGame GetGame()

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

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