Don't override default zero on remote units

Because `currentZeroing` always returns the desired "main scope" zero for remote units, it won't ever return secondary scope zero.
This commit is contained in:
mrschick 2024-08-23 15:50:20 +02:00
parent 50da8341cd
commit fe6a01b626

View File

@ -52,6 +52,7 @@ private _opticConfig = if (_optic != "") then {
private _zeroRange = currentZeroing _unit; private _zeroRange = currentZeroing _unit;
// Revert zeroing to default if overriding is enabled OR the selected sight's magnification is not higher than that of the naked eye, meaning that it is a secondary iron/holo sight // Revert zeroing to default if overriding is enabled OR the selected sight's magnification is not higher than that of the naked eye, meaning that it is a secondary iron/holo sight
if ( if (
(_local) &&
(GVAR(canAdjustElevation) select _weaponIndex) && (GVAR(canAdjustElevation) select _weaponIndex) &&
{GVAR(overwriteZeroRange) || {getNumber (_opticConfig >> "ItemInfo" >> "OpticsModes" >> (_unit getOpticsMode _weaponIndex) >> "opticsZoomMax") > MIN_ZOOM_NAKEDEYE}} {GVAR(overwriteZeroRange) || {getNumber (_opticConfig >> "ItemInfo" >> "OpticsModes" >> (_unit getOpticsMode _weaponIndex) >> "opticsZoomMax") > MIN_ZOOM_NAKEDEYE}}
) then { ) then {