-
Notifications
You must be signed in to change notification settings - Fork 737
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 EH for UAV control, Add Hellfire support #5305
Conversation
Used this earlier on a dedicated server. I had the display just fine, but had no option to change the hellfire mode. Will test again tomorrow to be sure. |
@tbeswick96 - Thanks for feedback, I've fixed the cycle guidance keybind for UAVs (Ctrl+Tab) When testing in MP the |
addons/common/XEH_postInit.sqf
Outdated
@@ -317,6 +317,30 @@ GVAR(OldIsCamera) = false; | |||
END_COUNTER(stateChecker); | |||
}, 0.5, []] call CBA_fnc_addPerFrameHandler; | |||
|
|||
// Add event handler for UAV control change | |||
ACE_controlledUAV = [objnull, objnull, [], ""]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Camel case in objNull
.
addons/common/XEH_postInit.sqf
Outdated
params ["", "", "", "", "", "_UAV"]; | ||
|
||
private _position = (UAVControl _UAV) param [1, ""]; | ||
private _seatAI = objnull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
addons/common/XEH_postInit.sqf
Outdated
private _UAV = getConnectedUAV player; | ||
if (!alive player) then {_UAV = objNull;}; | ||
private _position = (UAVControl _UAV) param [1, ""]; | ||
private _seatAI = objnull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
* Switch ACE_Player to uav AI on valid seat change * Different approach to UAV interactions * Forgot to remove a variable * Changed param to select
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some magic, looks good to me.
Fix #5301
Needs testing on dedicated, as
PlayerViewChanged
was unreliable in the past.