From e1c650d56ef1c5480f5f8c7633b34c02c60020a9 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 5 Jul 2019 15:32:19 -0500 Subject: [PATCH] Medical - add dummy cfgVehicle entries for old modules (#7091) * Medical - add dummy cfgVehicle entries for old modules * add medical_menu * Update addons/medical/CfgVehicles.hpp Co-Authored-By: jonpas --- addons/medical/CfgVehicles.hpp | 20 +++++++++++++++++-- addons/medical_treatment/script_component.hpp | 6 +++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/addons/medical/CfgVehicles.hpp b/addons/medical/CfgVehicles.hpp index 424059c8e1e..60bac164237 100644 --- a/addons/medical/CfgVehicles.hpp +++ b/addons/medical/CfgVehicles.hpp @@ -1,7 +1,23 @@ class CfgVehicles { + // Backwards compatibility + // Left as dumb modules so that old missions don't error about missing vehicles class Logic; - // Left as dumb logic so that old missions don't error about missing vehicle - class ACE_moduleMedicalSettings: Logic { + class Module_F: Logic { + class EventHandlers; + }; + class ACE_moduleMedicalSettings: Module_F { + author = ECSTRING(common,ACETeam); scope = 1; + displayName = "[ACE] Retired Medical module (will have no effect)"; + class EventHandlers: EventHandlers { + init = "diag_log text format ['[ACE] (Medical) Warning retired module [%1] placed (will have no effect)', typeOf (_this select 0)];"; + }; }; + class ACE_moduleBasicMedicalSettings: ACE_moduleMedicalSettings {}; + class ACE_moduleAdvancedMedicalSettings: ACE_moduleMedicalSettings {}; + class ACE_moduleReviveSettings: ACE_moduleMedicalSettings {}; + class ACE_moduleAssignMedicRoles: ACE_moduleMedicalSettings {}; + class ACE_moduleAssignMedicVehicle: ACE_moduleMedicalSettings {}; + class ACE_moduleAssignMedicalFacility: ACE_moduleMedicalSettings {}; + class ACE_moduleMedicalMenuSettings: ACE_moduleMedicalSettings {}; }; diff --git a/addons/medical_treatment/script_component.hpp b/addons/medical_treatment/script_component.hpp index db401332482..bed5241f853 100644 --- a/addons/medical_treatment/script_component.hpp +++ b/addons/medical_treatment/script_component.hpp @@ -2,9 +2,9 @@ #define COMPONENT_BEAUTIFIED Medical Treatment #include "\z\ace\addons\main\script_mod.hpp" -#define DEBUG_MODE_FULL -#define DISABLE_COMPILE_CACHE -#define ENABLE_PERFORMANCE_COUNTERS +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE +// #define ENABLE_PERFORMANCE_COUNTERS #ifdef DEBUG_ENABLED_MEDICAL_TREATMENT #define DEBUG_MODE_FULL