mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prevent getting zero from unmagnified secondary optic
This commit is contained in:
parent
fcfb2121be
commit
fb7cff2eb4
@ -35,7 +35,10 @@ private _opticConfig = if (_optic != "") then {
|
||||
};
|
||||
|
||||
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);
|
||||
};
|
||||
if (isNumber (_opticConfig >> "ACE_ScopeZeroRange")) then {
|
||||
|
Loading…
Reference in New Issue
Block a user