ACE3/addons/common/XEH_preInit.sqf

267 lines
5.8 KiB
Plaintext
Raw Normal View History

// by commy2
#include "script_component.hpp"
2015-01-29 07:38:46 +00:00
ADDON = false;
2015-01-12 18:22:58 +00:00
// ACE Common Function
2015-01-12 04:27:21 +00:00
PREP(addActionEventHandler);
PREP(addActionMenuEventHandler);
2015-03-15 15:12:37 +00:00
PREP(addCanInteractWithCondition);
PREP(addLineToDebugDraw);
2015-01-12 04:27:21 +00:00
PREP(addMapMarkerCreatedEventHandler);
PREP(addScrollWheelEventHandler);
PREP(addSetting);
2015-01-12 04:27:21 +00:00
PREP(adminKick);
PREP(ambientBrightness);
PREP(applyForceWalkStatus);
PREP(ASLToPosition);
PREP(beingCarried);
2015-01-12 04:27:21 +00:00
PREP(binarizeNumber);
PREP(blurScreen);
PREP(cachedCall);
2015-01-12 04:27:21 +00:00
PREP(canGetInPosition);
PREP(canInteract);
2015-01-12 04:27:21 +00:00
PREP(canInteractWith);
PREP(canUseWeapon);
PREP(carriedByObj);
PREP(carryObj);
2015-01-12 04:27:21 +00:00
PREP(changeProjectileDirection);
PREP(checkPBOs);
PREP(claim);
PREP(closeDialogIfTargetMoves);
PREP(codeToLetter);
PREP(codeToString);
PREP(convertKeyCode);
PREP(createOrthonormalReference);
2015-01-12 04:27:21 +00:00
PREP(currentChannel);
PREP(debug);
PREP(debugModule);
PREP(defineVariable);
PREP(disableAI);
2015-01-12 04:27:21 +00:00
PREP(disableUserInput);
PREP(displayIcon);
2015-01-12 04:27:21 +00:00
PREP(displayText);
PREP(displayTextPicture);
PREP(displayTextStructured);
PREP(doAnimation);
PREP(endRadioTransmission);
PREP(eraseCache);
2015-01-17 16:56:24 +00:00
PREP(execNextFrame);
2015-01-12 04:27:21 +00:00
PREP(execPersistentFnc);
PREP(execRemoteFnc);
PREP(executePersistent);
PREP(filter);
PREP(fixCollision);
PREP(fixFloating);
2015-01-12 04:27:21 +00:00
PREP(fixLoweredRifleAnimation);
PREP(fixPosition);
PREP(getAllDefinedSetVariables);
PREP(getAllGear);
2015-01-12 04:27:21 +00:00
PREP(getCaptivityStatus);
PREP(getCarriedBy);
PREP(getCarriedObj);
2015-01-12 04:27:21 +00:00
PREP(getConfigCommander);
PREP(getConfigGunner);
PREP(getDeathAnim);
2015-01-12 04:27:21 +00:00
PREP(getDefaultAnim);
PREP(getDefinedVariable);
PREP(getDefinedVariableDefault);
PREP(getDefinedVariableInfo);
2015-01-12 04:27:21 +00:00
PREP(getDoorTurrets);
PREP(getFirstObjectIntersection);
PREP(getFirstTerrainIntersection);
2015-01-12 04:27:21 +00:00
PREP(getForceWalkStatus);
2015-02-04 02:20:55 +00:00
PREP(getGunner);
2015-01-12 04:27:21 +00:00
PREP(getHitPoints);
PREP(getHitPointsWithSelections);
PREP(getInPosition);
PREP(getMarkerType);
PREP(getName);
PREP(getNumberFromMissionSQM);
PREP(getNumberMagazinesIn);
2015-01-12 04:27:21 +00:00
PREP(getPitchBankYaw);
PREP(getSettingData);
2015-01-12 04:27:21 +00:00
PREP(getStringFromMissionSQM);
PREP(getTargetAzimuthAndInclination);
PREP(getTargetDistance);
PREP(getTargetObject);
PREP(getTurretCommander);
PREP(getTurretConfigPath);
PREP(getTurretCopilot);
PREP(getTurretGunner);
PREP(getTurretIndex);
PREP(getTurrets);
PREP(getTurretsFFV);
PREP(getTurretsOther);
PREP(getUavControlPosition);
PREP(getVehicleCargo);
PREP(getVehicleCodriver);
PREP(getVehicleCrew);
PREP(getVersion);
2015-01-12 04:27:21 +00:00
PREP(getWeaponAzimuthAndInclination);
2015-02-12 14:57:55 +00:00
PREP(getWeaponIndex);
2015-01-12 04:27:21 +00:00
PREP(getWeaponType);
PREP(getWindDirection);
PREP(goKneeling);
PREP(hadamardProduct);
PREP(hasItem);
PREP(hasMagazine);
PREP(inheritsFrom);
PREP(insertionSort);
2015-01-12 04:27:21 +00:00
PREP(interpolateFromArray);
PREP(inTransitionAnim);
PREP(inWater);
PREP(isAlive);
PREP(isArrested);
2015-01-12 04:27:21 +00:00
PREP(isAutoWind);
PREP(isAwake);
2015-01-12 04:27:21 +00:00
PREP(isEngineer);
PREP(isEOD);
PREP(isInBuilding);
PREP(isModLoaded);
2015-01-12 04:27:21 +00:00
PREP(isPlayer);
PREP(isTurnedOut);
PREP(letterToCode);
PREP(limitMovementSpeed);
PREP(loadPerson);
PREP(loadPersonLocal);
2015-02-03 19:49:40 +00:00
PREP(loadSettingsFromProfile);
2015-01-30 21:56:45 +00:00
PREP(loadSettingsOnServer);
2015-01-12 04:27:21 +00:00
PREP(map);
PREP(moduleCheckPBOs);
PREP(moduleLSDVehicles);
PREP(moveToTempGroup);
2015-01-12 04:27:21 +00:00
PREP(muteUnit);
PREP(numberToDigits);
PREP(numberToDigitsString);
PREP(onAnswerRequest);
2015-01-12 04:27:21 +00:00
PREP(onLoadRscDisplayChannel);
PREP(owned);
PREP(player);
PREP(playerSide);
PREP(positionToASL);
2015-01-12 04:27:21 +00:00
PREP(progressBar);
PREP(queueAnimation);
PREP(readSettingFromModule);
PREP(receiveRequest);
2015-01-12 04:27:21 +00:00
PREP(removeActionEventHandler);
PREP(removeActionMenuEventHandler);
2015-03-15 15:12:37 +00:00
PREP(removeCanInteractWithCondition);
2015-01-12 04:27:21 +00:00
PREP(removeMapMarkerCreatedEventHandler);
PREP(removeScrollWheelEventHandler);
PREP(removeSpecificMagazine);
PREP(requestCallback);
PREP(resetAllDefaults);
2015-01-12 04:27:21 +00:00
PREP(restoreVariablesJIP);
PREP(revertKeyCodeLocalized);
PREP(sanitizeString);
PREP(sendRequest);
2015-01-12 04:27:21 +00:00
PREP(serverLog);
PREP(setArrestState);
PREP(setCanInteract);
2015-01-12 04:27:21 +00:00
PREP(setCaptivityStatus);
PREP(setCarriedBy);
PREP(setDefinedVariable);
PREP(setDisableUserInputStatus);
2015-01-12 04:27:21 +00:00
PREP(setForceWalkStatus);
PREP(setHearingCapability);
2015-01-12 04:27:21 +00:00
PREP(setName);
PREP(setParameter);
PREP(setPitchBankYaw);
PREP(setProne);
2015-01-30 21:56:45 +00:00
PREP(setSetting);
PREP(setSettingFromConfig);
PREP(setVariableJIP);
PREP(setVariablePublic);
PREP(setVolume);
PREP(sortAlphabeticallyBy);
PREP(stringCompare);
2015-01-12 04:27:21 +00:00
PREP(stringToColoredText);
PREP(stringRemoveWhiteSpace);
2015-01-12 04:27:21 +00:00
PREP(subString);
PREP(switchToGroupSide);
PREP(throttledPublicVariable);
2015-01-12 04:27:21 +00:00
PREP(toBin);
PREP(toBitmask);
PREP(toHex);
PREP(toNumber);
PREP(uniqueElementsOnly);
PREP(unloadPerson);
2015-01-12 04:27:21 +00:00
PREP(unmuteUnit);
PREP(useItem);
PREP(useMagazine);
2015-01-17 05:58:24 +00:00
PREP(waitAndExecute);
// ACE_Debug
2015-01-12 04:27:21 +00:00
PREP(exportConfig);
PREP(getChildren);
PREP(getDisplayConfigName);
PREP(log);
PREP(logControls);
PREP(logDisplays);
PREP(monitor);
PREP(showUser);
2015-03-10 19:59:40 +00:00
PREP(dumpPerformanceCounters);
PREP(dumpArray);
// ACE_CuratorFix
2015-01-13 18:31:26 +00:00
PREP(addCuratorUnloadEventhandler);
2015-01-12 04:27:21 +00:00
PREP(fixCrateContent);
//ACE events global variables
GVAR(events) = [[],[]];
PREP(globalEvent);
PREP(_handleNetEvent);
PREP(addEventHandler);
PREP(targetEvent);
PREP(serverEvent);
PREP(localEvent);
PREP(removeEventHandler);
PREP(removeAlLEventHandlers);
2015-01-14 21:29:52 +00:00
// hashes
PREP(hashCreate);
PREP(hashSet);
PREP(hashGet);
PREP(hashHasKey);
PREP(hashRem);
PREP(hashListCreateList);
PREP(hashListCreateHash);
PREP(hashListSelect);
PREP(hashListSet);
PREP(hashListPush);
2015-03-10 19:59:40 +00:00
//Debug
ACE_COUNTERS = [];
2015-01-30 21:56:45 +00:00
// Load settings
2015-02-03 00:13:31 +00:00
if (isServer) then {
2015-01-30 21:56:45 +00:00
call FUNC(loadSettingsOnServer);
};
ACE_player = player;
if (hasInterface) then {
// PFH to update the ACE_player variable
[{
2015-01-12 21:34:01 +00:00
if !(ACE_player isEqualTo (missionNamespace getVariable ["BIS_fnc_moduleRemoteControl_unit", player])) then {
_oldPlayer = ACE_player;
2015-01-12 21:34:01 +00:00
ACE_player = missionNamespace getVariable ["BIS_fnc_moduleRemoteControl_unit", player];
uiNamespace setVariable ["ACE_player", ACE_player];
// Raise ACE event
["playerChanged", [ACE_player, _oldPlayer]] call FUNC(localEvent);
2015-01-12 21:34:01 +00:00
};
}, 0, []] call cba_fnc_addPerFrameHandler;
};
2015-01-14 21:29:52 +00:00
2015-03-23 15:16:50 +00:00
// Init toHex
[0] call FUNC(toHex);
2015-01-16 23:21:47 +00:00
ADDON = true;
isHC = !(hasInterface || isDedicated);