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

Prevent ACEX HC transfer before unloading #479

Merged
merged 10 commits into from
Oct 20, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ switch (_groupBehaviour) do

private _rpLogic = [_lzPos, _allRpLogics, _rpAlgorithm] call Achilles_fnc_logicSelector;
private _rpPos = position _rpLogic;
_infantryGroup addWaypoint [_rpPos, _rpSize];
private _infantryRallyWp = _infantryGroup addWaypoint [_rpPos, _rpSize];

// Load the units into the vehicle.
{
Expand Down Expand Up @@ -301,6 +301,19 @@ if (_vehicleBehaviour == 0) then
_vehicleReturnWp setWaypointStatements ["true", "deleteVehicle (vehicle this); {deleteVehicle _x} foreach thisList;"];
};

//Check ACEX Headless Client
if (acex_headless_enabled && {isClass(configFile >> "CfgPatches" >> "acex_headless")}) then
ampersand38 marked this conversation as resolved.
Show resolved Hide resolved
{
//to ensure unload, blacklist
_vehicleGroup setVariable ["acex_headless_blacklist", true, true];
_infantryGroup setVariable ["acex_headless_blacklist", true, true];

//after unload, unblacklist _vehicleGroup
_vehicleUnloadWp setWaypointStatements ["true", "(group this) setVariable ['acex_headless_blacklist', false, true];"];
//after rally, unblacklist _infantryGroup
_infantryRallyWp setWaypointStatements ["true", "(group this) setVariable ['acex_headless_blacklist', false, true];"];
};

// print a confirmation
[localize "STR_AMAE_REINFORCEMENT_DISPATCHED"] call Ares_fnc_showZeusMessage;

Expand Down