mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix for BI bug, FFV support
This commit is contained in:
parent
edb76ffae4
commit
e50a28874f
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
params ["_unit"];
|
params ["_unit"];
|
||||||
|
|
||||||
if (GVAR(disableNVGsWithSights) && {(vehicle _unit == _unit) || {isTurnedOut _unit}}) then {
|
if (GVAR(disableNVGsWithSights) && {(hmd _unit) != ""}) then {
|
||||||
|
(assignedVehicleRole _unit) params ["_role", "_turretPath"];
|
||||||
|
if ((vehicle _unit == _unit) || {isTurnedOut _unit} || {_role == "cargo" && {!(isNil "_turretPath")}}) then {
|
||||||
if ((cameraView == "GUNNER") && {currentVisionMode _unit > 0}) then {
|
if ((cameraView == "GUNNER") && {currentVisionMode _unit > 0}) then {
|
||||||
_unit action ["NVGogglesOff", _unit];
|
_unit action ["NVGogglesOff", _unit];
|
||||||
GVAR(reenableNVGs) = true;
|
GVAR(reenableNVGs) = true;
|
||||||
@ -28,4 +30,5 @@ if (GVAR(disableNVGsWithSights) && {(vehicle _unit == _unit) || {isTurnedOut _un
|
|||||||
GVAR(reenableNVGs) = false;
|
GVAR(reenableNVGs) = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user