ACE3/addons/goggles/functions/fnc_removeGlassesEffect.sqf

30 lines
658 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: Garth 'L-H' de Wet
2015-09-29 19:28:57 +00:00
* 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:
2015-09-29 19:28:57 +00:00
* call ace_goggles_fnc_removeGlassesEffect
*
* Public: Yes
*/
2015-09-29 19:28:57 +00:00
GVAR(EffectsActive) = false;
GVAR(PostProcess) ppEffectEnable false;
2015-09-29 19:28:57 +00:00
if (!isNull (GLASSDISPLAY)) then {
GLASSDISPLAY closeDisplay 0;
};
if (GVAR(effects) in [2, 3]) then {
call FUNC(removeDirtEffect);
call FUNC(removeRainEffect);
call FUNC(removeDustEffect);
};