Skip to content

Commit

Permalink
Medical - add dummy cfgVehicle entries for old modules (#7091)
Browse files Browse the repository at this point in the history
* Medical - add dummy cfgVehicle entries for old modules

* add medical_menu

* Update addons/medical/CfgVehicles.hpp

Co-Authored-By: jonpas <jonpas33@gmail.com>
  • Loading branch information
PabstMirror and jonpas authored Jul 5, 2019
1 parent 1534f8c commit e1c650d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
20 changes: 18 additions & 2 deletions addons/medical/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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 {};
};
6 changes: 3 additions & 3 deletions addons/medical_treatment/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1c650d

Please sign in to comment.