mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove special goggles treatment of vehicle units
The condition to disable the overlay for gunners introduces more problems (and inconsistencies for that matter) than it was worth. Vehicle gunners using camera based weapons should probably consider not wearing a pair of glasses/goggles before doing so.
This commit is contained in:
@ -21,13 +21,8 @@ private ["_currentGlasses", "_result", "_position", "_visible"];
|
|||||||
_currentGlasses = goggles _unit;
|
_currentGlasses = goggles _unit;
|
||||||
_result = false;
|
_result = false;
|
||||||
|
|
||||||
if ((vehicle _unit) != _unit) exitWith {
|
|
||||||
(cameraView != "GUNNER") ||
|
|
||||||
{[_unit] call EFUNC(common,canUseWeapon)}
|
|
||||||
};
|
|
||||||
|
|
||||||
if (_currentGlasses != "") then {
|
if (_currentGlasses != "") then {
|
||||||
_position =(getPosASLW _unit);
|
_position = getPosASLW _unit;
|
||||||
if (surfaceIsWater _position && {((_position select 2) < 0.25)}) exitWith {
|
if (surfaceIsWater _position && {((_position select 2) < 0.25)}) exitWith {
|
||||||
_result = ([_currentGlasses] call FUNC(isDivingGoggles));
|
_result = ([_currentGlasses] call FUNC(isDivingGoggles));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user