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:
SilentSpike 2015-08-31 15:25:40 +01:00
parent 543e829278
commit 397d77e5b5

View File

@ -21,13 +21,8 @@ private ["_currentGlasses", "_result", "_position", "_visible"];
_currentGlasses = goggles _unit;
_result = false;
if ((vehicle _unit) != _unit) exitWith {
(cameraView != "GUNNER") ||
{[_unit] call EFUNC(common,canUseWeapon)}
};
if (_currentGlasses != "") then {
_position =(getPosASLW _unit);
_position = getPosASLW _unit;
if (surfaceIsWater _position && {((_position select 2) < 0.25)}) exitWith {
_result = ([_currentGlasses] call FUNC(isDivingGoggles));
};