Skip to content

Commit

Permalink
Merge pull request #1679 from CBATeam/opticsPlayerFired
Browse files Browse the repository at this point in the history
Optics - Optimize `Fired` EH to use `CBA_fnc_addBISPlayerEventHandler`
  • Loading branch information
PabstMirror authored Sep 21, 2024
2 parents 543b57c + 745d354 commit 9a6b78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/optics/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ GVAR(disableTilt) = false;
[_unit, _camera isEqualTo ""] call FUNC(restartCamera);
}] call CBA_fnc_addPlayerEventHandler;

["CAManBase", "Fired", FUNC(animateScriptedOpticRecoil)] call CBA_fnc_addClassEventHandler;
[QUOTE(ADDON), "Fired", FUNC(animateScriptedOpticRecoil), true] call CBA_fnc_addBISPlayerEventHandler;

// Handle Arsenal: Switch back to normal classes.
GVAR(inArsenal) = false;
Expand Down

0 comments on commit 9a6b78e

Please sign in to comment.