Fixed a few issues script errors that went under the radar until now

This commit is contained in:
lambdatiger 2024-01-11 16:13:02 -06:00
parent fbc710ce47
commit 1cf901703a
2 changed files with 2 additions and 13 deletions

View File

@ -2,19 +2,10 @@
["CBA_settingsInitialized", {
if (isServer) then {
[QGVAR(frag_eh), LINKFUNC(doFrag)] call CBA_fnc_addEventHandler;
[QGVAR(spall_eh), LINKFUNC(doFragMomentum)] call CBA_fnc_addEventHandler;
[] call FUNC(initBlackList);
[] call FUNC(initMaterialCache);
};
/*if (hasInterface) then {
["ace_firedPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
};
["ace_firedNonPlayer", LINKFUNC(fired)] call CBA_fnc_addEventHandler;
["ace_firedNonPlayerVehicle", LINKFUNC(fired)] call CBA_fnc_addEventHandler;*/
#ifdef DEBUG_MODE_DRAW
if (hasInterface && GVAR(debugOptions)) then {
@ -27,8 +18,6 @@
}] call CBA_fnc_addEventHandler;
// Debug stuff:
#ifdef LOG_FRAG_INFO
[true, true, 30] call FUNC(dev_debugAmmo);
#endif

View File

@ -58,7 +58,7 @@ if (GVAR(spallEnabled) && {_shouldSpall}) then
[
QGVAR(spall_eh),
[_proj, _hitObj, _posASL, _vel, _sNorm, _surfType, _ammo, _shotPrnt, _vUp]
] call CBA_fnc_serverEvent;
};
] call CBA_fnc_execNextFrame;
}
];
};