mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
49b5a0ea86
* Cleanup frag component * Optimize fnc_addTrack * Add additional cleanup * Please work? * Add more cleanup * Fix script errors * Fix/optimize spalling * Add missing changes
27 lines
946 B
Plaintext
27 lines
946 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (GVAR(EnableDebugTrace) && {!isMultiplayer}) then {
|
|
GVAR(traceFrags) = true;
|
|
GVAR(autoTrace) = true;
|
|
};
|
|
|
|
if (isServer) then {
|
|
[QGVAR(frag_eh), {_this call FUNC(frago);}] call CBA_fnc_addEventHandler;
|
|
};
|
|
|
|
["ace_settingsInitialized", {
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
// Register fire event handler
|
|
["ace_firedPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedNonPlayer", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
["ace_firedNonPlayerVehicle", DFUNC(fired)] call CBA_fnc_addEventHandler;
|
|
|
|
[FUNC(masterPFH), 0, []] call CBA_fnc_addPerFrameHandler;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
// Cache for ammo type configs
|
|
GVAR(cacheRoundsTypesToTrack) = createLocation ["ACE_HashLocation", [-10000, -10000, -10000], 0, 0];
|
|
GVAR(cacheRoundsTypesToTrack) setText QGVAR(cacheRoundsTypesToTrack);
|