From fe6a01b626189193f04904a5b7bda1b05a84ca58 Mon Sep 17 00:00:00 2001 From: mrschick <58027418+mrschick@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:50:20 +0200 Subject: [PATCH] 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. --- addons/scopes/functions/fnc_getCurrentZeroRange.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/scopes/functions/fnc_getCurrentZeroRange.sqf b/addons/scopes/functions/fnc_getCurrentZeroRange.sqf index 2c78e9e402..ae641371ca 100644 --- a/addons/scopes/functions/fnc_getCurrentZeroRange.sqf +++ b/addons/scopes/functions/fnc_getCurrentZeroRange.sqf @@ -52,6 +52,7 @@ private _opticConfig = if (_optic != "") then { 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 if ( + (_local) && (GVAR(canAdjustElevation) select _weaponIndex) && {GVAR(overwriteZeroRange) || {getNumber (_opticConfig >> "ItemInfo" >> "OpticsModes" >> (_unit getOpticsMode _weaponIndex) >> "opticsZoomMax") > MIN_ZOOM_NAKEDEYE}} ) then {