From 676c9a54516eaf38bb2e057055eda249b69eda4b Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Sat, 1 Apr 2017 20:41:45 +0200 Subject: [PATCH] Added seperate status component --- addons/medical_status/$PBOPREFIX$ | 1 + addons/medical_status/config.cpp | 15 +++++++++++++++ .../functions/fnc_hasStableVitals.sqf | 0 .../functions/fnc_hasTourniquetAppliedTo.sqf | 0 .../functions/fnc_isBeingCarried.sqf | 0 .../functions/fnc_isBeingDragged.sqf | 0 .../functions/fnc_isInMedicalFacility.sqf | 0 .../functions/fnc_isInMedicalVehicle.sqf | 0 .../functions/fnc_isInStableCondition.sqf | 0 .../functions/fnc_isMedic.sqf | 0 .../functions/fnc_isMedicalVehicle.sqf | 0 .../functions/fnc_setCardiacArrest.sqf | 0 .../functions/fnc_setDead.sqf | 0 .../functions/fnc_setUnconscious.sqf | 0 addons/medical_status/script_component.hpp | 18 ++++++++++++++++++ 15 files changed, 34 insertions(+) create mode 100644 addons/medical_status/$PBOPREFIX$ create mode 100644 addons/medical_status/config.cpp rename addons/{medical => medical_status}/functions/fnc_hasStableVitals.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_hasTourniquetAppliedTo.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isBeingCarried.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isBeingDragged.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isInMedicalFacility.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isInMedicalVehicle.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isInStableCondition.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isMedic.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_isMedicalVehicle.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_setCardiacArrest.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_setDead.sqf (100%) rename addons/{medical => medical_status}/functions/fnc_setUnconscious.sqf (100%) create mode 100644 addons/medical_status/script_component.hpp diff --git a/addons/medical_status/$PBOPREFIX$ b/addons/medical_status/$PBOPREFIX$ new file mode 100644 index 0000000000..c21e7332eb --- /dev/null +++ b/addons/medical_status/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\medical_status diff --git a/addons/medical_status/config.cpp b/addons/medical_status/config.cpp new file mode 100644 index 0000000000..e2b494b65a --- /dev/null +++ b/addons/medical_status/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_medical"}; + author = ECSTRING(common,ACETeam); + authors[] = {"Glowbal", "KoffeinFlummi"}; + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; diff --git a/addons/medical/functions/fnc_hasStableVitals.sqf b/addons/medical_status/functions/fnc_hasStableVitals.sqf similarity index 100% rename from addons/medical/functions/fnc_hasStableVitals.sqf rename to addons/medical_status/functions/fnc_hasStableVitals.sqf diff --git a/addons/medical/functions/fnc_hasTourniquetAppliedTo.sqf b/addons/medical_status/functions/fnc_hasTourniquetAppliedTo.sqf similarity index 100% rename from addons/medical/functions/fnc_hasTourniquetAppliedTo.sqf rename to addons/medical_status/functions/fnc_hasTourniquetAppliedTo.sqf diff --git a/addons/medical/functions/fnc_isBeingCarried.sqf b/addons/medical_status/functions/fnc_isBeingCarried.sqf similarity index 100% rename from addons/medical/functions/fnc_isBeingCarried.sqf rename to addons/medical_status/functions/fnc_isBeingCarried.sqf diff --git a/addons/medical/functions/fnc_isBeingDragged.sqf b/addons/medical_status/functions/fnc_isBeingDragged.sqf similarity index 100% rename from addons/medical/functions/fnc_isBeingDragged.sqf rename to addons/medical_status/functions/fnc_isBeingDragged.sqf diff --git a/addons/medical/functions/fnc_isInMedicalFacility.sqf b/addons/medical_status/functions/fnc_isInMedicalFacility.sqf similarity index 100% rename from addons/medical/functions/fnc_isInMedicalFacility.sqf rename to addons/medical_status/functions/fnc_isInMedicalFacility.sqf diff --git a/addons/medical/functions/fnc_isInMedicalVehicle.sqf b/addons/medical_status/functions/fnc_isInMedicalVehicle.sqf similarity index 100% rename from addons/medical/functions/fnc_isInMedicalVehicle.sqf rename to addons/medical_status/functions/fnc_isInMedicalVehicle.sqf diff --git a/addons/medical/functions/fnc_isInStableCondition.sqf b/addons/medical_status/functions/fnc_isInStableCondition.sqf similarity index 100% rename from addons/medical/functions/fnc_isInStableCondition.sqf rename to addons/medical_status/functions/fnc_isInStableCondition.sqf diff --git a/addons/medical/functions/fnc_isMedic.sqf b/addons/medical_status/functions/fnc_isMedic.sqf similarity index 100% rename from addons/medical/functions/fnc_isMedic.sqf rename to addons/medical_status/functions/fnc_isMedic.sqf diff --git a/addons/medical/functions/fnc_isMedicalVehicle.sqf b/addons/medical_status/functions/fnc_isMedicalVehicle.sqf similarity index 100% rename from addons/medical/functions/fnc_isMedicalVehicle.sqf rename to addons/medical_status/functions/fnc_isMedicalVehicle.sqf diff --git a/addons/medical/functions/fnc_setCardiacArrest.sqf b/addons/medical_status/functions/fnc_setCardiacArrest.sqf similarity index 100% rename from addons/medical/functions/fnc_setCardiacArrest.sqf rename to addons/medical_status/functions/fnc_setCardiacArrest.sqf diff --git a/addons/medical/functions/fnc_setDead.sqf b/addons/medical_status/functions/fnc_setDead.sqf similarity index 100% rename from addons/medical/functions/fnc_setDead.sqf rename to addons/medical_status/functions/fnc_setDead.sqf diff --git a/addons/medical/functions/fnc_setUnconscious.sqf b/addons/medical_status/functions/fnc_setUnconscious.sqf similarity index 100% rename from addons/medical/functions/fnc_setUnconscious.sqf rename to addons/medical_status/functions/fnc_setUnconscious.sqf diff --git a/addons/medical_status/script_component.hpp b/addons/medical_status/script_component.hpp new file mode 100644 index 0000000000..c66f97e465 --- /dev/null +++ b/addons/medical_status/script_component.hpp @@ -0,0 +1,18 @@ +#define COMPONENT medical_status +#define COMPONENT_BEAUTIFIED Medical Status +#include "\z\ace\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +#define DISABLE_COMPILE_CACHE +// #define ENABLE_PERFORMANCE_COUNTERS + +#ifdef DEBUG_ENABLED_MEDICAL_STATUS + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_MEDICAL_STATUS + #define DEBUG_SETTINGS DEBUG_SETTINGS_MEDICAL_STATUS +#endif + +#include "\z\ace\addons\main\script_macros.hpp" +#include "\z\ace\addons\medical\script_macros_medical.hpp"