mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Night Vision - Use default effects when controlling UAVs (#9338)
This commit is contained in:
parent
fabd9c5fdb
commit
8e25472d5b
@ -31,6 +31,7 @@ GVAR(isUsingMagnification) = false;
|
||||
["cameraView", LINKFUNC(onCameraViewChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
["vehicle", LINKFUNC(refreshGoggleType), false] 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
|
||||
GVAR(ppEffectNVGBrightness) = ppEffectCreate ["ColorCorrections", 1236];
|
||||
|
@ -28,7 +28,7 @@ private _blurRadius = -1;
|
||||
|
||||
// Adds Array of Params / Original ACE3's (ST's) by default. (NVG_GREEN_PRESET)
|
||||
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) || {
|
||||
// Test if we are using player's nvg or if sourced from vehicle:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user