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" #include "script_component.hpp"
ADDON = false;
PREP(attach); PREP(attach);
PREP(canAttach); PREP(canAttach);
PREP(canDetach); PREP(canDetach);
PREP(detach); PREP(detach);
PREP(openAttachUI); PREP(openAttachUI);
ADDON = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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