fix daylasers being a virtual light source, fix #2416

This commit is contained in:
commy2
2015-09-17 14:17:48 +02:00
parent b8c687611e
commit 864c0b4baf

View File

@ -42,6 +42,8 @@ if (_lightSource isKindOf "CAManBase") then {
default {""};
};
if (getNumber (configFile >> "CfgWeapons" >> _flashlight >> "ACE_laserpointer") == 1) exitWith {_lightLevel = 0};
_properties = [[_flashlight], FUNC(getLightPropertiesWeapon), uiNamespace, format [QEGVAR(cache,%1_%2), QUOTE(DFUNC(getLightPropertiesWeapon)), _flashlight], 1E11] call FUNC(cachedCall);
//_properties = [_flashlight] call FUNC(getLightPropertiesWeapon);