2015-05-09 20:32:36 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
2015-05-10 18:00:31 +00:00
|
|
|
// Extension engine functions
|
2015-05-10 16:51:16 +00:00
|
|
|
PREP(initializeExtension);
|
2015-05-09 20:32:36 +00:00
|
|
|
PREP(monitorResultsPFH);
|
2015-05-10 16:51:16 +00:00
|
|
|
PREP(parseResult);
|
2015-05-09 20:32:36 +00:00
|
|
|
|
2015-05-10 18:00:31 +00:00
|
|
|
PREP(callExtension);
|
2015-05-11 23:01:58 +00:00
|
|
|
|
2015-05-10 18:00:31 +00:00
|
|
|
GVAR(async) = true;
|
|
|
|
GVAR(ready) = false;
|
|
|
|
|
2015-05-11 18:01:53 +00:00
|
|
|
// Extension dispatch events
|
|
|
|
PREP(setAnimationNames);
|
2015-05-20 16:46:23 +00:00
|
|
|
PREP(doDamageResults);
|
2015-05-11 18:01:53 +00:00
|
|
|
|
|
|
|
// To extension send events
|
|
|
|
PREP(getAnimationStates);
|
|
|
|
|
2015-05-10 18:00:31 +00:00
|
|
|
// Core functionality
|
2015-05-09 20:32:36 +00:00
|
|
|
PREP(registerVehicleDamageHandler);
|
|
|
|
PREP(registerVehicleWithExtension);
|
|
|
|
PREP(unregisterWithExtension);
|
|
|
|
|
|
|
|
PREP(dispatchHitPart);
|
|
|
|
PREP(dispatchDamage);
|
|
|
|
PREP(doHit);
|
|
|
|
|
2015-05-20 16:46:23 +00:00
|
|
|
|
2015-05-09 20:32:36 +00:00
|
|
|
GVAR(vehicle_id) = 0;
|
2015-05-11 18:01:53 +00:00
|
|
|
GVAR(vehicles) = HASH_CREATE;
|
2015-05-09 20:32:36 +00:00
|
|
|
|
2015-05-16 19:19:59 +00:00
|
|
|
// Begin Debug functions
|
|
|
|
// **************************
|
2015-05-09 20:32:36 +00:00
|
|
|
|
2015-05-11 23:01:58 +00:00
|
|
|
#ifdef DEBUG_LOG_EXTENSION
|
2015-05-16 19:19:59 +00:00
|
|
|
GVAR(debug_log) = [];
|
|
|
|
PREP(debug_exportLogClipboard);
|
|
|
|
PREP(debug_exportLogFile);
|
|
|
|
PREP(debug_animateCurrentVehicle);
|
|
|
|
#endif
|
|
|
|
#ifdef DEBUG_EXTENSION_DYNLOAD
|
|
|
|
// This value is used for debug loading of the extension with dynload
|
|
|
|
GVAR(extensionLibrary) = "z\ace\extensions\build\vd\Debug\ace_vd_Debug.dll";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_DRAW_LINES
|
|
|
|
GVAR(debug_lines) = [];
|
2015-05-16 01:48:53 +00:00
|
|
|
|
2015-05-16 19:19:59 +00:00
|
|
|
PREP(debug_drawFace);
|
|
|
|
PREP(debug_drawLinesPFH);
|
2015-05-11 23:01:58 +00:00
|
|
|
#endif
|
|
|
|
|
2015-05-16 19:19:59 +00:00
|
|
|
// **************************
|
|
|
|
// End debug functions
|
2015-05-11 23:01:58 +00:00
|
|
|
|
2015-05-16 19:19:59 +00:00
|
|
|
FUNC(_textVector) = {
|
|
|
|
private["_str"];
|
|
|
|
_str = format["%1;%2;%3", ((_this select 0) select 0), ((_this select 0) select 1), ((_this select 0) select 2)];
|
|
|
|
_str
|
|
|
|
};
|
2015-05-11 23:01:58 +00:00
|
|
|
|
2015-05-11 00:45:38 +00:00
|
|
|
[] call FUNC(initializeExtension);
|
|
|
|
|
2015-05-09 20:32:36 +00:00
|
|
|
ADDON = true;
|