diff --git a/addons/vehicledamage/XEH_preInit.sqf b/addons/vehicledamage/XEH_preInit.sqf index 16419542aa..88bb160fb1 100644 --- a/addons/vehicledamage/XEH_preInit.sqf +++ b/addons/vehicledamage/XEH_preInit.sqf @@ -14,8 +14,9 @@ GVAR(ready) = false; #ifdef DEBUG_LOG_EXTENSION GVAR(debug_log) = []; -PREP(exportLogClipboard); -PREP(exportLogFile); +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 diff --git a/addons/vehicledamage/functions/fnc_debug_animateCurrentVehicle.sqf b/addons/vehicledamage/functions/fnc_debug_animateCurrentVehicle.sqf new file mode 100644 index 0000000000..65316285a9 --- /dev/null +++ b/addons/vehicledamage/functions/fnc_debug_animateCurrentVehicle.sqf @@ -0,0 +1,10 @@ +#include "script_component.hpp" + +"debug_render:" call FUNC(callExtension); + +_animateCurrentVehicleWorker = { + if( (vehicle ACE_player) != ACE_player) then { + [(vehicle ACE_player), true] call FUNC(getAnimationStates); + }; +}; +[_animateCurrentVehicleWorker, 0, []] call CBA_fnc_addPerFrameHandler; \ No newline at end of file diff --git a/addons/vehicledamage/functions/fnc_exportLogClipboard.sqf b/addons/vehicledamage/functions/fnc_debug_exportLogClipboard.sqf similarity index 100% rename from addons/vehicledamage/functions/fnc_exportLogClipboard.sqf rename to addons/vehicledamage/functions/fnc_debug_exportLogClipboard.sqf diff --git a/addons/vehicledamage/functions/fnc_exportLogFile.sqf b/addons/vehicledamage/functions/fnc_debug_exportLogFile.sqf similarity index 100% rename from addons/vehicledamage/functions/fnc_exportLogFile.sqf rename to addons/vehicledamage/functions/fnc_debug_exportLogFile.sqf