mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 04:42:48 +00:00
@ -114,16 +114,20 @@ private _fnc_checkGoggles = {
|
|||||||
|
|
||||||
// goggles effects main PFH
|
// goggles effects main PFH
|
||||||
[{
|
[{
|
||||||
|
BEGIN_COUNTER(goggles);
|
||||||
|
|
||||||
// rain
|
// rain
|
||||||
call FUNC(applyRainEffect);
|
call FUNC(applyRainEffect);
|
||||||
|
|
||||||
// auto remove effects under water
|
// auto remove effects under water
|
||||||
if (GVAR(EffectsActive) && {[goggles ACE_player] call FUNC(isDivingGoggles) && {underwater ACE_player}}) then {
|
if (GVAR(EffectsActive) && {underwater ACE_player} && {[goggles ACE_player] call FUNC(isDivingGoggles)}) then {
|
||||||
call FUNC(removeRainEffect);
|
call FUNC(removeRainEffect);
|
||||||
call FUNC(removeDirtEffect);
|
call FUNC(removeDirtEffect);
|
||||||
call FUNC(removeDustEffect);
|
call FUNC(removeDustEffect);
|
||||||
};
|
};
|
||||||
|
|
||||||
// rotor wash effect
|
// rotor wash effect
|
||||||
call FUNC(applyRotorWashEffect)
|
call FUNC(applyRotorWashEffect);
|
||||||
}, 0.5, _fnc_checkGoggles] call CBA_fnc_addPerFrameHandler;
|
|
||||||
|
END_COUNTER(goggles);
|
||||||
|
}, 0.5, []] call CBA_fnc_addPerFrameHandler;
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
if (GVAR(showInThirdPerson)) exitWith {false};
|
|
||||||
if (call FUNC(externalCamera)) exitWith {false};
|
if (call FUNC(externalCamera)) exitWith {false};
|
||||||
|
|
||||||
private ["_unit", "_effects"];
|
private ["_unit", "_effects"];
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
if (GVAR(showInThirdPerson)) exitWith {};
|
|
||||||
if (call FUNC(ExternalCamera)) exitWith {};
|
if (call FUNC(ExternalCamera)) exitWith {};
|
||||||
|
|
||||||
private ["_unit", "_amount"];
|
private ["_unit", "_amount"];
|
||||||
|
@ -15,4 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
cameraView in ["EXTERNAL", "GROUP"] || EFUNC(common,isFeatureCameraActive) // return
|
if (GVAR(showInThirdPerson)) then {
|
||||||
|
cameraView in ["GROUP"] || EFUNC(common,isFeatureCameraActive)
|
||||||
|
} else {
|
||||||
|
cameraView in ["EXTERNAL", "GROUP"] || EFUNC(common,isFeatureCameraActive)
|
||||||
|
};
|
||||||
|
@ -37,7 +37,6 @@ _effects set [BROKEN, true];
|
|||||||
SETGLASSES(_unit,_effects);
|
SETGLASSES(_unit,_effects);
|
||||||
|
|
||||||
if (getText (_config >> "ACE_OverlayCracked") != "") then {
|
if (getText (_config >> "ACE_OverlayCracked") != "") then {
|
||||||
if (GVAR(showInThirdPerson)) exitWith {};
|
|
||||||
if (call FUNC(ExternalCamera)) exitWith {};
|
if (call FUNC(ExternalCamera)) exitWith {};
|
||||||
|
|
||||||
if (isNull (GLASSDISPLAY)) then {
|
if (isNull (GLASSDISPLAY)) then {
|
||||||
|
Reference in New Issue
Block a user