2015-08-16 21:52:37 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(hardpointGroupsCache) = [] call CBA_fnc_createNamespace;
|
|
|
|
GVAR(configTypesAdded) = [];
|
|
|
|
["ace_settingsInitialized", {
|
|
|
|
TRACE_2("settingsInit",GVAR(level),GVAR(supply));
|
|
|
|
["LandVehicle", "Init", {_this call FUNC(initSupplyVehicle)}, true, ["StaticWeapon"], true] call CBA_fnc_addClassEventHandler;
|
|
|
|
["ReammoBox_F", "Init", {_this call FUNC(initSupplyVehicle)}, true, [], true] call CBA_fnc_addClassEventHandler;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
2017-05-18 16:13:31 +00:00
|
|
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
2018-11-02 21:56:16 +00:00
|
|
|
[QGVAR(initSupplyVehicle), {
|
|
|
|
TRACE_1("initSupplyVehicle EH",_this); // Warning: this can run before settings are init
|
|
|
|
[FUNC(initSupplyVehicle), _this] call EFUNC(common,runAfterSettingsInit);
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
2018-07-09 17:20:55 +00:00
|
|
|
|
2016-06-21 23:39:20 +00:00
|
|
|
["vehicle", {
|
|
|
|
params ["_unit"];
|
|
|
|
[_unit] call FUNC(dropAmmo);
|
|
|
|
}] call CBA_fnc_addPlayerEventHandler;
|
2016-02-19 16:32:02 +00:00
|
|
|
|
|
|
|
if (isServer) then {
|
|
|
|
addMissionEventHandler ["HandleDisconnect", {params ["_unit"]; [_unit] call FUNC(dropAmmo)}];
|
|
|
|
};
|
2016-03-06 10:14:34 +00:00
|
|
|
|
2017-05-18 16:13:31 +00:00
|
|
|
[QGVAR(makeDummyEH), LINKFUNC(makeDummy)] call CBA_fnc_addEventHandler;
|
2017-07-10 15:17:44 +00:00
|
|
|
[QGVAR(rearmEntireVehicleSuccessEH), LINKFUNC(rearmEntireVehicleSuccess)] call CBA_fnc_addEventHandler;
|
2017-05-18 16:13:31 +00:00
|
|
|
[QGVAR(rearmEntireVehicleSuccessLocalEH), LINKFUNC(rearmEntireVehicleSuccessLocal)] call CBA_fnc_addEventHandler;
|
2017-07-10 15:17:44 +00:00
|
|
|
[QGVAR(rearmSuccessEH), LINKFUNC(rearmSuccess)] call CBA_fnc_addEventHandler;
|
2017-05-18 16:13:31 +00:00
|
|
|
[QGVAR(rearmSuccessLocalEH), LINKFUNC(rearmSuccessLocal)] call CBA_fnc_addEventHandler;
|
2017-03-15 15:10:53 +00:00
|
|
|
|
2019-01-31 00:31:01 +00:00
|
|
|
|
|
|
|
GVAR(magazineNameCache) = [] call CBA_fnc_createNamespace;
|
|
|
|
GVAR(originalMagazineNames) = [];
|