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

◆ InitOpticsDOFProperties()

bool ItemOptics::InitOpticsDOFProperties ( out array< float > temp_array)
inlineprotected

Initializes DOF properties for optic's alternate ironsights (ACOG etc.)

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

467 {
468 if (GetGame().ConfigIsExisting("cfgVehicles " + GetType() + " OpticsInfo PPDOFProperties"))
469 {
470 GetGame().ConfigGetFloatArray("cfgVehicles " + GetType() + " OpticsInfo PPDOFProperties", temp_array);
471 return true;
472 }
473 else if (GetGame().ConfigIsExisting("cfgVehicles " + GetType() + " OpticsInfoWeaponOverride PPDOFProperties"))
474 {
475 GetGame().ConfigGetFloatArray("cfgVehicles " + GetType() + " OpticsInfoWeaponOverride PPDOFProperties", temp_array);
476 return true;
477 }
478 return false;
479 }
eBleedingSourceType GetType()
proto native void ConfigGetFloatArray(string path, out TFloatArray values)
Get array of floats from config on path.
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetFloatArray(), GetGame() и GetType().

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