ACE3/addons/goggles/functions/fnc_removeGlassesEffect.sqf
JoramD 68fe594cab
Goggles - Add effects only option (#7808)
* Added effects only option to goggles

* Set default back to 2
2020-07-22 10:24:43 -05:00

30 lines
655 B
Plaintext

#include "script_component.hpp"
/*
* 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
*/
GVAR(EffectsActive) = false;
GVAR(PostProcess) ppEffectEnable false;
if (!isNull (GLASSDISPLAY)) then {
GLASSDISPLAY closeDisplay 0;
};
if (GVAR(effects) in [2, 3]) then {
call FUNC(removeDirtEffect);
call FUNC(removeRainEffect);
call FUNC(removeDustEffect);
};