ACE3/addons/goggles/functions/fnc_removeGlassesEffect.sqf
PabstMirror 5108ffe20c Add goggles setting for level of effects
Can chose between none, tint/colorCC/ and full dust/dirt/rain/rotorwash
2016-06-25 19:16:26 -05:00

30 lines
650 B
Plaintext

/*
* Author: Garth 'L-H' de Wet
* Removes the glasses effect from the screen, removes dirt effect, removes rain effect, removes dust effect. Does not reset array (glasses will still be broken, dirty, ect.)
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* call ace_goggles_fnc_removeGlassesEffect
*
* Public: Yes
*/
#include "script_component.hpp"
GVAR(EffectsActive) = false;
GVAR(PostProcess) ppEffectEnable false;
if (!isNull (GLASSDISPLAY)) then {
GLASSDISPLAY closeDisplay 0;
};
if (GVAR(effects) == 2) then {
call FUNC(removeDirtEffect);
call FUNC(removeRainEffect);
call FUNC(removeDustEffect);
};