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

◆ InitOpticsDOFProperties()

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

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

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

407 {
408 if (GetGame().ConfigIsExisting("cfgVehicles " + GetType() + " OpticsInfo PPDOFProperties"))
409 {
410 GetGame().ConfigGetFloatArray("cfgVehicles " + GetType() + " OpticsInfo PPDOFProperties", temp_array);
411 return true;
412 }
413 else if (GetGame().ConfigIsExisting("cfgVehicles " + GetType() + " OpticsInfoWeaponOverride PPDOFProperties"))
414 {
415 GetGame().ConfigGetFloatArray("cfgVehicles " + GetType() + " OpticsInfoWeaponOverride PPDOFProperties", temp_array);
416 return true;
417 }
418 return false;
419 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
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().