Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Feature Camera Player EH and Handling #6573

Merged
merged 5 commits into from
Oct 12, 2018
Merged

Add Feature Camera Player EH and Handling #6573

merged 5 commits into from
Oct 12, 2018

Conversation

jonpas
Copy link
Member

@jonpas jonpas commented Sep 14, 2018

When merged this pull request will:

  • Replace ACE3's Feature Camera handling with CBA's new Player EH
  • Remove "ace_activeCameraChanged" event.
  • Register Spectator and HuntIR Cameras with CBA

Requires CBA 3.9.0 (unreleased)! (possibly higher) - CBATeam/CBA_A3#982

@jonpas jonpas added kind/enhancement Release Notes: **IMPROVED:** kind/cleanup Release Notes: **CHANGED:** labels Sep 14, 2018
@jonpas jonpas added this to the 3.13.0 milestone Sep 14, 2018
@jonpas jonpas changed the title Feature camera cba Add Feature Camera Player EH and Handling Sep 14, 2018
@@ -22,9 +22,9 @@ if ((currentVisionMode ACE_player) != 1) exitWith {
[GVAR(PFID)] call CBA_fnc_removePerFrameHandler;
GVAR(PFID) = -1;
};
if (EGVAR(common,OldIsCamera)) exitWith {
if (call CBA_fnc_getActiveFeatureCamera != "") exitWith {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs every frame, I'd rather just use the var cba_events_OldIsCamera

Copy link
Member Author

@jonpas jonpas Sep 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not cba_events_OldFeatureCamera != ""?

Copy link
Contributor

@PabstMirror PabstMirror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready to go with cba 3.9

@jonpas jonpas merged commit 4ff0196 into master Oct 12, 2018
@jonpas jonpas deleted the featureCameraCBA branch October 12, 2018 12:59
@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.12.4 Nov 9, 2018
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* Switch to CBA Feature Camera handling

* Register ACE3's Feature Cameras

* Backwards compatiblity for old ace event

* Require CBA 3.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:** kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants