mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
f35f80ee82
* Dynamic Add * Support 1.70 Pylon Loadouts * Properly handle old compat pbos - Update RHS Compat * Re-add documentation * cleanup headers (note from other pr) * Cleanup * Fix var spelling
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
#include "script_component.hpp"
|
|
|
|
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;
|
|
|
|
["ace_unconscious", LINKFUNC(handleUnconscious)] call CBA_fnc_addEventHandler;
|
|
["vehicle", {
|
|
params ["_unit"];
|
|
[_unit] call FUNC(dropAmmo);
|
|
}] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
if (isServer) then {
|
|
addMissionEventHandler ["HandleDisconnect", {params ["_unit"]; [_unit] call FUNC(dropAmmo)}];
|
|
};
|
|
|
|
[QGVAR(makeDummyEH), LINKFUNC(makeDummy)] call CBA_fnc_addEventHandler;
|
|
[QGVAR(rearmEntireVehicleSuccessLocalEH), LINKFUNC(rearmEntireVehicleSuccessLocal)] call CBA_fnc_addEventHandler;
|
|
[QGVAR(rearmSuccessLocalEH), LINKFUNC(rearmSuccessLocal)] call CBA_fnc_addEventHandler;
|
|
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
|
INFO("Showing CfgVehicles with vanilla transportAmmo");
|
|
{
|
|
WARNING_2("Type [%1] needs config [transportAmmo: %2]", configName _x, getNumber (_x >> 'transportAmmo'));
|
|
} forEach (configProperties [configFile >> "CfgVehicles", "(isClass _x) && {(getNumber (_x >> 'transportAmmo')) > 0}", true]);
|
|
#endif
|