2024-01-11 21:44:15 +00:00
|
|
|
#include "script_component.hpp"
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_START;
|
2016-05-30 16:37:03 +00:00
|
|
|
#include "XEH_PREP.hpp"
|
2016-11-23 19:35:25 +00:00
|
|
|
PREP_RECOMPILE_END;
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2024-03-17 12:41:09 +00:00
|
|
|
call FUNC(initMaterialCache);
|
|
|
|
|
2024-01-15 05:08:37 +00:00
|
|
|
GVAR(spallInfoCache) = createHashMap;
|
|
|
|
GVAR(shouldSpallCache) = createHashMap;
|
2024-02-16 03:04:05 +00:00
|
|
|
GVAR(nextSpallAllowTime) = -1;
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2024-01-08 21:22:52 +00:00
|
|
|
GVAR(shouldFragCache) = createHashMap;
|
|
|
|
GVAR(fragInfoCache) = createHashMap;
|
2024-02-16 03:04:05 +00:00
|
|
|
GVAR(lastFragTime) = -1;
|
2016-05-30 16:37:03 +00:00
|
|
|
|
2023-12-07 03:20:47 +00:00
|
|
|
#include "initSettings.inc.sqf"
|
2021-10-11 20:48:30 +00:00
|
|
|
|
2024-01-08 21:22:52 +00:00
|
|
|
GVAR(dev_trackLines) = createHashMap;
|
|
|
|
GVAR(dev_hitBoxes) = createHashMap;
|
|
|
|
GVAR(dev_eventSpheres) = [];
|
2024-01-15 22:30:50 +00:00
|
|
|
GVAR(dev_drawPFEH) = -1;
|
2024-03-17 12:41:09 +00:00
|
|
|
|
2024-01-18 22:00:42 +00:00
|
|
|
#ifdef DEBUG_MODE_DRAW
|
2024-01-08 21:22:52 +00:00
|
|
|
#include "initSettingsDebug.inc.sqf"
|
|
|
|
#endif
|
|
|
|
|
2024-03-17 12:41:09 +00:00
|
|
|
if (isServer) then {
|
2024-07-17 02:30:17 +00:00
|
|
|
[
|
|
|
|
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;
|