From fe5dd3fe766cbe0f8964ec782aa2052db1f87841 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 20 Jun 2016 13:58:37 -0500 Subject: [PATCH] Cleanup some undefined functions and strings --- addons/common/functions/fnc_setProne.sqf | 4 +--- addons/explosives/CfgVehicles.hpp | 4 ++-- addons/minedetector/functions/fnc_detectorLoop.sqf | 2 +- addons/minedetector/script_component.hpp | 5 +++++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/addons/common/functions/fnc_setProne.sqf b/addons/common/functions/fnc_setProne.sqf index 75be8bac2d..c40b0de254 100644 --- a/addons/common/functions/fnc_setProne.sqf +++ b/addons/common/functions/fnc_setProne.sqf @@ -9,8 +9,6 @@ * None * * Public: Yes - * - * Note: Not functional, because FUNC(localAnim) does no longer exist */ #include "script_component.hpp" @@ -19,4 +17,4 @@ params ["_unit"]; [ _unit, ["amovppnemstpsnonwnondnon", "amovppnemstpsraswrfldnon", "amovppnemstpsraswlnrdnon", "amovppnemstpsraswpstdnon"] select (([primaryWeapon _unit, secondaryWeapon _unit, handgunWeapon _unit] find currentWeapon _unit) + 1) -] call FUNC(localAnim); +] call FUNC(doAnimation); diff --git a/addons/explosives/CfgVehicles.hpp b/addons/explosives/CfgVehicles.hpp index dcfb01c489..b2cd562b18 100644 --- a/addons/explosives/CfgVehicles.hpp +++ b/addons/explosives/CfgVehicles.hpp @@ -44,7 +44,7 @@ class CfgVehicles { class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {}; }; - author = ECSTRING(common,Author); + author = ECSTRING(common,aceteam); _generalMacro = "ACE_DefuseObject"; displayName = "ACE Defuse Helper"; model = "\A3\Weapons_f\dummyweapon.p3d"; @@ -67,7 +67,7 @@ class CfgVehicles { class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {}; }; - author = "ACE"; + author = ECSTRING(common,aceteam); _generalMacro = "ACE_Explosives_Place"; displayName = "Multi-meter"; mapSize = 0.2; diff --git a/addons/minedetector/functions/fnc_detectorLoop.sqf b/addons/minedetector/functions/fnc_detectorLoop.sqf index ad3fc0cf05..4a708147e2 100644 --- a/addons/minedetector/functions/fnc_detectorLoop.sqf +++ b/addons/minedetector/functions/fnc_detectorLoop.sqf @@ -17,7 +17,7 @@ params ["_args", "_idPFH"]; _args params ["_unit", "_type", "_detectorConfig", "_lastPlayed"]; -if !([_unit, _type] call FUNC(hasDetectorType)) exitWith { +if !([_unit, _type] call FUNC(hasDetector)) exitWith { // disable detector type [_unit, _type] call FUNC(disableDetector); [_idPFH] call CBA_fnc_removePerFrameHandler; diff --git a/addons/minedetector/script_component.hpp b/addons/minedetector/script_component.hpp index 1093d7f51e..935825a31c 100644 --- a/addons/minedetector/script_component.hpp +++ b/addons/minedetector/script_component.hpp @@ -2,6 +2,11 @@ #define COMPONENT_BEAUTIFIED Mine Detector #include "\z\ace\addons\main\script_mod.hpp" +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE +// #define CBA_DEBUG_SYNCHRONOUS +// #define ENABLE_PERFORMANCE_COUNTERS + #ifdef DEBUG_ENABLED_MINEDETECTOR #define DEBUG_MODE_FULL #endif