mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fc17697ef7
* Overpressure - Fix backblast originating at the projectile * RHSUSF - Improve backblast for shoulder launchers * RHSAFRF - Improve backblast for shoulder launchers * RHSGREF - Improve backblast for shoulder launchers * RHSSAF - Improve backblast for shoulder launchers * Overpressure - Simplify projectile offset and cache lookups * Overpressure - Remove parentheses and use array as hash key * Overpressure - Rename caching function and move lookup
15 lines
524 B
Plaintext
15 lines
524 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
TRACE_1("settingsInit eh",GVAR(distanceCoefficient));
|
|
if (GVAR(distanceCoefficient) <= 0) exitWith {};
|
|
|
|
["ace_overpressure", LINKFUNC(overpressureDamage)] call CBA_fnc_addEventHandler;
|
|
|
|
// Register fire event handler
|
|
["ace_firedPlayer", LINKFUNC(firedEHBB)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicle", LINKFUNC(firedEHOP)] call CBA_fnc_addEventHandler;
|
|
|
|
GVAR(cacheHash) = createHashMap;
|
|
}] call CBA_fnc_addEventHandler;
|