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"
|
|
|
|
|
|
|
|
private "_broken";
|
|
|
|
_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 {
|
|
|
|
ace_player playActionNow "gestureWipeFace";
|
|
|
|
};
|
2015-01-19 08:34:49 +00:00
|
|
|
[{
|
2015-01-18 21:50:45 +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);
|