2015-02-15 17:11:50 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2021-10-11 20:48:30 +00:00
|
|
|
["CBA_settingsInitialized", {
|
2024-06-20 20:30:33 +00:00
|
|
|
TRACE_2("settingsInit eh",GVAR(backblastDistanceCoefficient),GVAR(overpressureDistanceCoefficient));
|
2016-02-06 21:17:27 +00:00
|
|
|
|
2016-12-22 19:29:05 +00:00
|
|
|
["ace_overpressure", LINKFUNC(overpressureDamage)] call CBA_fnc_addEventHandler;
|
|
|
|
|
2024-06-20 20:30:33 +00:00
|
|
|
// Register fire event handlers
|
|
|
|
if (GVAR(backblastDistanceCoefficient) > 0) then {
|
|
|
|
["ace_firedPlayer", LINKFUNC(firedEHBB)] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
|
|
|
if (GVAR(overpressureDistanceCoefficient) > 0) then {
|
|
|
|
["ace_firedPlayerVehicle", LINKFUNC(firedEHOP)] call CBA_fnc_addEventHandler;
|
|
|
|
};
|
2022-08-01 17:32:02 +00:00
|
|
|
|
|
|
|
GVAR(cacheHash) = createHashMap;
|
2016-12-22 19:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|