Prevent getting zero from unmagnified secondary optic

This commit is contained in:
mrschick 2024-08-18 00:59:19 +02:00
parent fcfb2121be
commit fb7cff2eb4

View File

@ -35,7 +35,10 @@ private _opticConfig = if (_optic != "") then {
}; };
private _zeroRange = currentZeroing _unit; private _zeroRange = currentZeroing _unit;
if (GVAR(overwriteZeroRange) && {GVAR(canAdjustElevation) select _weaponIndex}) then { if (
(GVAR(canAdjustElevation) select _weaponIndex) &&
{GVAR(overwriteZeroRange) || {getNumber (_opticConfig >> "ItemInfo" >> "OpticsModes" >> (_unit getOpticsMode _weaponIndex) >> "opticsZoomMax") > 0.2}}
) then {
_zeroRange = GVAR(defaultZeroRange); _zeroRange = GVAR(defaultZeroRange);
}; };
if (isNumber (_opticConfig >> "ACE_ScopeZeroRange")) then { if (isNumber (_opticConfig >> "ACE_ScopeZeroRange")) then {