Night Vision - Use default effects when controlling UAVs (#9338)

This commit is contained in:
PabstMirror 2023-08-21 14:23:53 -05:00 committed by GitHub
parent fabd9c5fdb
commit 8e25472d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ GVAR(isUsingMagnification) = false;
["cameraView", LINKFUNC(onCameraViewChanged), true] call CBA_fnc_addPlayerEventHandler; ["cameraView", LINKFUNC(onCameraViewChanged), true] call CBA_fnc_addPlayerEventHandler;
["vehicle", LINKFUNC(refreshGoggleType), false] call CBA_fnc_addPlayerEventHandler; ["vehicle", LINKFUNC(refreshGoggleType), false] call CBA_fnc_addPlayerEventHandler;
["turret", LINKFUNC(refreshGoggleType), true] call CBA_fnc_addPlayerEventHandler; ["turret", LINKFUNC(refreshGoggleType), true] call CBA_fnc_addPlayerEventHandler;
["ACE_controlledUAV", LINKFUNC(refreshGoggleType)] call CBA_fnc_addEventHandler;
// handle only brightness if effects are disabled // handle only brightness if effects are disabled
GVAR(ppEffectNVGBrightness) = ppEffectCreate ["ColorCorrections", 1236]; GVAR(ppEffectNVGBrightness) = ppEffectCreate ["ColorCorrections", 1236];

View File

@ -28,7 +28,7 @@ private _blurRadius = -1;
// Adds Array of Params / Original ACE3's (ST's) by default. (NVG_GREEN_PRESET) // Adds Array of Params / Original ACE3's (ST's) by default. (NVG_GREEN_PRESET)
private _preset = getArray (configFile >> "CfgWeapons" >> "NVGoggles" >> "colorPreset"); private _preset = getArray (configFile >> "CfgWeapons" >> "NVGoggles" >> "colorPreset");
if (alive ACE_player) then { if ((alive ACE_player) && {isNull (ACE_controlledUAV select 0)}) then {
if (((vehicle ACE_player) == ACE_player) || { if (((vehicle ACE_player) == ACE_player) || {
// Test if we are using player's nvg or if sourced from vehicle: // Test if we are using player's nvg or if sourced from vehicle: