1095 {
1097 {
1099 }
1100 else
1101 {
1103 }
1104
1105 CfgParamArray presetParam;
1107 for (int i = 0; i < camera_params.Count(); i++)
1108 {
1109 presetParam = CfgParamArray.Cast(camera_params.Get(i));
1110 if (!presetParam)
1111 continue;
1112
1113 CfgParamString paramCName = CfgParamString.Cast(presetParam.GetValueByName(
"Name",
CFG_TYPE_STRING));
1114 CfgParamFloat paramFocusDistance = CfgParamFloat.Cast(presetParam.GetValueByName(
"FocusDistance",
CFG_TYPE_FLOAT));
1115 CfgParamFloat paramFocusLength = CfgParamFloat.Cast(presetParam.GetValueByName(
"FocusLength",
CFG_TYPE_FLOAT));
1116 CfgParamFloat paramFocusLengthNear = CfgParamFloat.Cast(presetParam.GetValueByName(
"FocusLengthNear",
CFG_TYPE_FLOAT));
1117 CfgParamFloat paramBlur = CfgParamFloat.Cast(presetParam.GetValueByName(
"Blur",
CFG_TYPE_FLOAT));
1118 CfgParamFloat paramFocusDepthOffset = CfgParamFloat.Cast(presetParam.GetValueByName(
"FocusDepthOffset",
CFG_TYPE_FLOAT));
1119
1120 ScriptConsoleCameraDOFPreset preset = new ScriptConsoleCameraDOFPreset();
1121 preset.
Name = paramCName.GetValue();
1125 preset.
Blur = paramBlur.GetValue();
1128 }
1129 }
const int CFG_TYPE_STRING
ref array< ref ScriptConsoleCameraDOFPreset > m_CameraPresets
const string CAMERA_PRESETS_LIST
array< ref CfgParam > GetArray(string key)