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 <jonpas33@gmail.com>
This commit is contained in:
PabstMirror 2019-07-05 15:32:19 -05:00 committed by GitHub
parent 1534f8cd8d
commit e1c650d56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 6 deletions

View File

@ -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 {
scope = 1;
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 {};
};

View File

@ -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