ACE3/addons/frag/XEH_preInit.sqf

43 lines
944 B
Plaintext
Raw Normal View History

2024-01-11 21:44:15 +00:00
#include "script_component.hpp"
2016-05-30 16:37:03 +00:00
ADDON = false;
PREP_RECOMPILE_START;
2016-05-30 16:37:03 +00:00
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
2016-05-30 16:37:03 +00:00
2024-03-17 12:41:09 +00:00
call FUNC(initMaterialCache);
GVAR(spallInfoCache) = createHashMap;
GVAR(shouldSpallCache) = createHashMap;
GVAR(nextSpallAllowTime) = -1;
2016-05-30 16:37:03 +00:00
GVAR(shouldFragCache) = createHashMap;
GVAR(fragInfoCache) = createHashMap;
GVAR(lastFragTime) = -1;
2016-05-30 16:37:03 +00:00
#include "initSettings.inc.sqf"
GVAR(dev_trackLines) = createHashMap;
GVAR(dev_hitBoxes) = createHashMap;
GVAR(dev_eventSpheres) = [];
GVAR(dev_drawPFEH) = -1;
2024-03-17 12:41:09 +00:00
#ifdef DEBUG_MODE_DRAW
#include "initSettingsDebug.inc.sqf"
#endif
2024-03-17 12:41:09 +00:00
if (isServer) then {
[
QGVAR(explosionEvent),
{
params ["_posASL", "_velocity", "_ammo", "_shotParents"];
[_posASL, _velocity, _ammo, _shotParents] call FUNC(doFrag);
}
] call CBA_fnc_addEventHandler;
[QGVAR(spallEvent), LINKFUNC(doSpallServer)] call CBA_fnc_addEventHandler;
2024-03-17 12:41:09 +00:00
};
2016-05-30 16:37:03 +00:00
ADDON = true;