2015-01-18 21:50:45 +00:00
|
|
|
/*
|
2015-02-02 09:04:53 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Clears all dirt, rain, dust from glasses.
|
|
|
|
* Removes glasses effect (PP, overlay) and then puts it back.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_goggles_fnc_ClearGlasses;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-18 21:50:45 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-18 03:40:37 +00:00
|
|
|
private ["_broken", "_effects"];
|
|
|
|
|
2015-01-18 21:50:45 +00:00
|
|
|
_broken = GETBROKEN;
|
2015-01-18 23:38:54 +00:00
|
|
|
_effects = GLASSESDEFAULT;
|
|
|
|
_effects set [BROKEN, _broken];
|
|
|
|
SETGLASSES(ace_player,_effects);
|
2015-01-18 21:50:45 +00:00
|
|
|
|
|
|
|
if ((stance ace_player) != "PRONE") then {
|
2015-04-06 16:22:43 +00:00
|
|
|
ace_player playActionNow "gestureWipeFace";
|
2015-01-18 21:50:45 +00:00
|
|
|
};
|
2015-01-19 08:34:49 +00:00
|
|
|
[{
|
2015-04-06 16:22:43 +00:00
|
|
|
if (cameraView == "INTERNAL") then {
|
|
|
|
addCamShake [5, 1.75, 2];
|
|
|
|
};
|
2015-01-19 08:34:49 +00:00
|
|
|
}, [], 0.3, 0] call EFUNC(common,waitAndExecute);
|
2015-01-18 21:50:45 +00:00
|
|
|
|
|
|
|
call FUNC(removeDirtEffect);
|
|
|
|
call FUNC(removeRainEffect);
|
|
|
|
call FUNC(removeDustEffect);
|