mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Setting for adjustment UI while sighted in
This commit is contained in:
parent
4481741393
commit
7911783a73
@ -32,17 +32,23 @@ _adjustment set [_weaponIndex, [_elevation, _windage, _zero]];
|
||||
playSound selectRandom ["ACE_Scopes_Click_1", "ACE_Scopes_Click_2", "ACE_Scopes_Click_3"];
|
||||
|
||||
// slightly rotate the player if looking through optic
|
||||
if (cameraView == "GUNNER" && !GVAR(simplifiedZeroing)) then {
|
||||
// Convert adjustmentDifference from mils to degrees
|
||||
_adjustmentDifference = _adjustmentDifference apply {MRAD_TO_DEG(_x)};
|
||||
_adjustmentDifference params ["_elevationDifference", "_windageDifference"];
|
||||
private _pitchBankYaw = [_unit] call EFUNC(common,getPitchBankYaw);
|
||||
_pitchBankYaw params ["_pitch", "_bank", "_yaw"];
|
||||
_pitch = _pitch + _elevationDifference;
|
||||
_yaw = _yaw + _windageDifference;
|
||||
[_unit, _pitch, _bank, _yaw] call EFUNC(common,setPitchBankYaw);
|
||||
if (cameraView == "GUNNER") then {
|
||||
if (!GVAR(simplifiedZeroing)) then {
|
||||
// Convert adjustmentDifference from mils to degrees
|
||||
_adjustmentDifference = _adjustmentDifference apply {MRAD_TO_DEG(_x)};
|
||||
_adjustmentDifference params ["_elevationDifference", "_windageDifference"];
|
||||
private _pitchBankYaw = [_unit] call EFUNC(common,getPitchBankYaw);
|
||||
_pitchBankYaw params ["_pitch", "_bank", "_yaw"];
|
||||
_pitch = _pitch + _elevationDifference;
|
||||
_yaw = _yaw + _windageDifference;
|
||||
[_unit, _pitch, _bank, _yaw] call EFUNC(common,setPitchBankYaw);
|
||||
};
|
||||
|
||||
if (GVAR(inScopeAdjustment)) then {
|
||||
[] call FUNC(showZeroing);
|
||||
};
|
||||
} else {
|
||||
[] call FUNC(showZeroing);
|
||||
};
|
||||
|
||||
[] call FUNC(showZeroing);
|
||||
|
||||
true
|
||||
|
@ -91,3 +91,11 @@ private _category = format ["ACE %1", localize LSTRING(DisplayName)];
|
||||
false,
|
||||
1
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
QGVAR(inScopeAdjustment), "CHECKBOX",
|
||||
LSTRING(inScopeAdjustment_displayName),
|
||||
_category,
|
||||
false,
|
||||
0
|
||||
] call CBA_fnc_addSetting;
|
||||
|
@ -347,6 +347,11 @@
|
||||
<Czech>Replikuje systém naměřování puškohledů ze základní hry.</Czech>
|
||||
<Spanish>Replica en los visores el sistema de homogeneizado de vanilla</Spanish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Scopes_inScopeAdjustment_displayName">
|
||||
<English>Show adjustment UI in scope</English>
|
||||
<German>Zeige Absehenverstellungs-UI im Zielfernrohr</German>
|
||||
<Italian>Mostra UI delle manopole nel mirino</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Scopes_AdjustUpMinor">
|
||||
<English>Minor adjustment up</English>
|
||||
<German>Kleine Korrektur hoch</German>
|
||||
|
Loading…
Reference in New Issue
Block a user