mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
This commit is contained in:
parent
d7d43ce3b1
commit
f83f8dad0e
@ -17,6 +17,7 @@
|
|||||||
PARAMS_3(_unit,_turretAndDirection,_majorStep);
|
PARAMS_3(_unit,_turretAndDirection,_majorStep);
|
||||||
|
|
||||||
if (!(_unit isKindOf "Man")) exitWith {false};
|
if (!(_unit isKindOf "Man")) exitWith {false};
|
||||||
|
if (currentMuzzle _unit != currentWeapon _unit) exitWith {false};
|
||||||
|
|
||||||
private ["_weaponIndex", "_zeroing", "_optic", "_increment", "_maxVertical", "_maxHorizontal", "_elevation", "_windage", "_zero", "_adjustment"];
|
private ["_weaponIndex", "_zeroing", "_optic", "_increment", "_maxVertical", "_maxHorizontal", "_elevation", "_windage", "_zero", "_adjustment"];
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ _increment = getNumber (configFile >> "CfgWeapons" >> _optic >> "ACE_ScopeAdjust
|
|||||||
_maxVertical = getArray (configFile >> "CfgWeapons" >> _optic >> "ACE_ScopeAdjust_Vertical");
|
_maxVertical = getArray (configFile >> "CfgWeapons" >> _optic >> "ACE_ScopeAdjust_Vertical");
|
||||||
_maxHorizontal = getArray (configFile >> "CfgWeapons" >> _optic >> "ACE_ScopeAdjust_Horizontal");
|
_maxHorizontal = getArray (configFile >> "CfgWeapons" >> _optic >> "ACE_ScopeAdjust_Horizontal");
|
||||||
|
|
||||||
if ((count _maxHorizontal < 2) or (count _maxVertical < 2)) exitWith {false};
|
if ((_increment == 0) or (count _maxHorizontal < 2) or (count _maxVertical < 2)) exitWith {false};
|
||||||
|
|
||||||
_zeroing = _adjustment select _weaponIndex;
|
_zeroing = _adjustment select _weaponIndex;
|
||||||
_elevation = _zeroing select 0;
|
_elevation = _zeroing select 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user