Skip to content

Commit

Permalink
event
Browse files Browse the repository at this point in the history
  • Loading branch information
MiszczuZPolski committed Sep 3, 2024
1 parent 73ed46d commit c7c44fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/goggles/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ if (!hasInterface) exitWith {};
params ["_unit"];

_unit setVariable ["ACE_EyesDamaged", true];
[QGVAR(eyeInjury), _unit] call CBA_fnc_localEvent;

GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0.5, 0.5, 0.5, 0.5], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 0;
Expand Down
1 change: 1 addition & 0 deletions addons/goggles/functions/fnc_applyDustEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ GVAR(DustHandler) = [{
if !(_unit getVariable ["ACE_EyesDamaged", false]) then {
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [_amount, _amount, _amount, _amount], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 0.5;
[QGVAR(eyeInjury), _unit] call CBA_fnc_localEvent;
};

if (GETDUSTT(DAMOUNT) <= 0) then {
Expand Down
1 change: 1 addition & 0 deletions addons/goggles/functions/fnc_applyRotorWashEffect.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ if (_rotorWash select 1 > 0) then {
GVAR(PostProcessEyes) ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [_scale, _scale, _scale, _scale], [1, 1, 1, 0]];
GVAR(PostProcessEyes) ppEffectCommit 0.5;
GVAR(PostProcessEyes) ppEffectEnable true;
[QGVAR(eyeInjury), _unit] call CBA_fnc_localEvent;
};
};

0 comments on commit c7c44fd

Please sign in to comment.