Skip to content

Commit

Permalink
Crack glasses in third person
Browse files Browse the repository at this point in the history
  • Loading branch information
DartRuffian committed Jan 13, 2025
1 parent 5afc739 commit 4cc2d08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/goggles/functions/fnc_applyCrackEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* Public: Yes
*/

if ([] call FUNC(externalCamera)) exitWith { false };
if (GETBROKEN) exitWith { true };

private _unit = ACE_player;
Expand All @@ -32,7 +31,7 @@ _effects set [BROKEN, true];
SETGLASSES(_unit,_effects);

if (getText (_config >> "ACE_OverlayCracked") != "") then {

if ([] call FUNC(externalCamera)) exitWith { false };
if (isNull (GLASSDISPLAY)) then {
GVAR(GogglesLayer) cutRsc ["RscACE_Goggles", "PLAIN", 1, false, false];
};
Expand Down

0 comments on commit 4cc2d08

Please sign in to comment.