Set ADDON variable in XEH_preInit

This commit is contained in:
PabstMirror 2015-01-29 01:38:46 -06:00
parent bb48d1234c
commit 9631154926
32 changed files with 117 additions and 7 deletions

View File

@ -1,7 +1,11 @@
#include "script_component.hpp"
ADDON = false;
PREP(attach);
PREP(canAttach);
PREP(canDetach);
PREP(detach);
PREP(openAttachUI);
ADDON = true;

View File

@ -1,5 +1,9 @@
#include "script_component.hpp"
ADDON = false;
PREP(getDistance);
PREP(launcherBackblast);
PREP(tankDangerZone);
ADDON = true;

View File

@ -1,6 +1,8 @@
// by commy2
#include "script_component.hpp"
ADDON = false;
// ACE Common Function
PREP(addActionEventHandler);
PREP(addActionMenuEventHandler);
@ -252,5 +254,4 @@ PREP(loadPersonLocal_F);
PREP(unloadPerson_F);
ADDON = true;

View File

@ -1,6 +1,10 @@
#include "script_component.hpp"
ADDON = false;
PREP(aiDropWeaponCallback);
PREP(replaceATWeapon);
PREP(takeLoadedATWeapon);
PREP(updateInventoryDisplay);
ADDON = true;

View File

@ -18,6 +18,8 @@ None
*/
#include "script_component.hpp"
ADDON = false;
PREP(addClacker);
PREP(canDefuse);
PREP(canDetonate);
@ -49,3 +51,5 @@ PREP(setPosition);
PREP(startDefuse);
PREP(startTimer);
PREP(triggerType);
ADDON = true;

View File

@ -1,6 +1,10 @@
#include "script_component.hpp"
ADDON = false;
PREP(pfhUpdateGForces);
GVAR(GForces) = [];
GVAR(GForces_Index) = 0;
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(applyDirtEffect);
PREP(applyDust);
PREP(applyGlassesEffect);
@ -21,3 +23,5 @@ PREP(removeDirtEffect);
PREP(removeDustEffect);
PREP(removeGlassesEffect);
PREP(removeRainEffect);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(flashbangEffectStages);
PREP(flashbangExplosionEH);
PREP(flashbangThrownFuze);
@ -7,3 +9,5 @@ PREP(nextMode);
PREP(throwGrenade);
["flashbangExplosion", { _this call DFUNC(flashbangExplosionEH) }] call EFUNC(common,addEventHandler);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(addEarPlugs);
PREP(earRinging);
PREP(explosionNear);
@ -8,3 +10,5 @@ PREP(hasEarPlugsIn);
PREP(putInEarPlugs);
PREP(removeEarPlugs);
PREP(updateVolume);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(addInteraction);
PREP(addInteractionSelf);
PREP(addSelectableItem);
@ -45,6 +47,4 @@ PREP(sortOptionsByPriority);
PREP(tapShoulder);
PREP(updateTooltipPosition);
ADDON = true;

View File

@ -1,4 +1,8 @@
#include "script_component.hpp"
ADDON = false;
PREP(drawLaserpoint);
PREP(onDraw);
ADDON = true;

View File

@ -1,5 +1,9 @@
#include "script_component.hpp"
ADDON = false;
PREP(getBackpackAssignedUnit);
PREP(isBackpack);
PREP(onOpenInventory);
ADDON = true;

View File

@ -1,5 +1,9 @@
#include "script_component.hpp"
ADDON = false;
PREP(magazineRepack);
PREP(magazineRepackCallback);
PREP(openSelectMagazineUI);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(addLineMarker);
PREP(blueForceTrackingModule);
PREP(blueForceTrackingUpdate);
@ -29,3 +31,5 @@ PREP(updateLineMarker);
["drawing_requestMarkers", FUNC(copyMapRemoteSend) ] call EFUNC(common,addEventHandler);
["drawing_sendbackMarkers", FUNC(copyMapReceiveMarkers) ] call EFUNC(common,addEventHandler);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(initInsertMarker);
PREP(onLBSelChangedColor);
PREP(onLBSelChangedShape);
@ -72,3 +74,5 @@ if (isNil QGVAR(MarkerColorsCache)) then {
};
[QGVAR(sendMarkersJIP), FUNC(sendMarkersJIP)] call EFUNC(common,addEventHandler);
ADDON = true;

View File

@ -10,6 +10,8 @@
#include "script_component.hpp"
ADDON = false;
PREP(actionCarryUnit);
PREP(ActioncheckBloodPressure);
PREP(ActionCheckBloodPressureLocal);

View File

@ -1,6 +1,10 @@
#include "script_component.hpp"
ADDON = false;
PREP(getWeight);
PREP(canClimb);
PREP(climb);
PREP(handleClimb);
ADDON = true;

View File

@ -1,5 +1,6 @@
#include "script_component.hpp"
ADDON = false;
PREP(canShow);
PREP(doShow);
@ -10,3 +11,5 @@ PREP(onMouseZChanged);
PREP(setText);
GVAR(ShowNamesTime) = -10;
ADDON = true;

View File

@ -1,6 +1,10 @@
#include "script_component.hpp"
ADDON = false;
PREP(blending);
PREP(decreaseNVGBrightness);
PREP(increaseNVGBrightness);
PREP(updatePPEffects);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(checkTemperature);
PREP(clearJam);
PREP(cooldown);
@ -8,3 +10,5 @@ PREP(jamWeapon);
PREP(overheat);
PREP(swapBarrel);
PREP(swapBarrelCallback);
ADDON = true;

View File

@ -1,4 +1,8 @@
#include "script_component.hpp"
ADDON = false;
PREP(burstDispersion);
PREP(camShake);
ADDON = true;

View File

@ -1,3 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(checkAmmo);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(canMoveRallypoint);
PREP(handleKilled);
PREP(handleRespawn);
@ -13,3 +15,5 @@ PREP(removeDisconnectedPlayer);
PREP(restoreGear);
PREP(showFriendlyFireMessage);
PREP(teleportToRallypoint);
ADDON = true;

View File

@ -1,7 +1,11 @@
#include "script_component.hpp"
ADDON = false;
PREP(getIntersection);
PREP(hasBipod);
PREP(pfhCheckRest);
PREP(restWeapon);
PREP(unRestWeapon);
ADDON = true;

View File

@ -1,7 +1,11 @@
#include "script_component.hpp"
ADDON = false;
PREP(firstMode);
PREP(lockSafety);
PREP(playChangeFiremodeSound);
PREP(setSafeModeVisual);
PREP(unlockSafety);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(adjustScope);
PREP(canAdjustScope);
PREP(firedEH);
@ -8,3 +10,5 @@ PREP(hideZeroing);
PREP(inventoryCheck);
GVAR(fadeScript) = scriptNull;
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(clearDisplay);
PREP(convertToTexturesDegree);
PREP(convertToTexturesDistance);
@ -37,3 +39,5 @@ GVAR(keyDownTimeDistance) = -1;
GVAR(useMil) = false;
GVAR(useFeet) = false;
GVAR(modeReticle) = 0;
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(addKeyForVehicle);
PREP(getVehicleSideKey);
PREP(hasKeyForVehicle);
@ -12,3 +14,5 @@ PREP(setVehicleLockEH);
//Add Event Handlers
["SetupCustomKey", {_this call FUNC(serverSetupCustomKeyEH)}] call EFUNC(common,addEventHandler);
["SetVehicleLock", {_this call FUNC(setVehicleLockEH)}] call EFUNC(common,addEventHandler);
ADDON = true;

View File

@ -1,4 +1,8 @@
#include "script_component.hpp"
ADDON = false;
PREP(speedLimiter);
PREP(startEngine);
ADDON = true;

View File

@ -1,5 +1,7 @@
#include "script_component.hpp"
ADDON = false;
PREP(countMagazinesForGrenadeMuzzle);
PREP(displayGrenadeTypeAndNumber);
PREP(findNextGrenadeMagazine);
@ -63,3 +65,5 @@ GVAR(AllMuzzles) = uiNamespace getVariable QGVAR(AllMuzzles);
GVAR(FragMagazines) = uiNamespace getVariable QGVAR(FragMagazines);
GVAR(NonFragMagazines) = uiNamespace getVariable QGVAR(NonFragMagazines);
GVAR(AllMagazines) = uiNamespace getVariable QGVAR(AllMagazines);
ADDON = true;