From 7d55163463107af5f50b5ec4dc85291a96f428fd Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Fri, 27 Apr 2018 15:43:41 +0100 Subject: [PATCH] Add missing PREPs --- .../medical_statemachine/CfgEventHandlers.hpp | 17 +++++++++++++ addons/medical_statemachine/XEH_PREP.hpp | 7 ++++++ addons/medical_statemachine/XEH_postInit.sqf | 2 ++ addons/medical_statemachine/XEH_preInit.sqf | 7 ++++++ addons/medical_statemachine/XEH_preStart.sqf | 3 +++ addons/medical_status/XEH_PREP.hpp | 24 +++++++++++++++++++ addons/medical_treatment/XEH_PREP.hpp | 4 ++-- addons/medical_vitals/CfgEventHandlers.hpp | 17 +++++++++++++ addons/medical_vitals/XEH_PREP.hpp | 4 ++++ addons/medical_vitals/XEH_postInit.sqf | 2 ++ addons/medical_vitals/XEH_preInit.sqf | 7 ++++++ addons/medical_vitals/XEH_preStart.sqf | 3 +++ 12 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 addons/medical_statemachine/CfgEventHandlers.hpp create mode 100644 addons/medical_statemachine/XEH_PREP.hpp create mode 100644 addons/medical_statemachine/XEH_postInit.sqf create mode 100644 addons/medical_statemachine/XEH_preInit.sqf create mode 100644 addons/medical_statemachine/XEH_preStart.sqf create mode 100644 addons/medical_vitals/CfgEventHandlers.hpp create mode 100644 addons/medical_vitals/XEH_PREP.hpp create mode 100644 addons/medical_vitals/XEH_postInit.sqf create mode 100644 addons/medical_vitals/XEH_preInit.sqf create mode 100644 addons/medical_vitals/XEH_preStart.sqf diff --git a/addons/medical_statemachine/CfgEventHandlers.hpp b/addons/medical_statemachine/CfgEventHandlers.hpp new file mode 100644 index 0000000000..0d3301d6e0 --- /dev/null +++ b/addons/medical_statemachine/CfgEventHandlers.hpp @@ -0,0 +1,17 @@ +class Extended_PreStart_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preStart)); + }; +}; + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; + +class Extended_PostInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_postInit)); + }; +}; diff --git a/addons/medical_statemachine/XEH_PREP.hpp b/addons/medical_statemachine/XEH_PREP.hpp new file mode 100644 index 0000000000..aa9df92936 --- /dev/null +++ b/addons/medical_statemachine/XEH_PREP.hpp @@ -0,0 +1,7 @@ +PREP(enteredStateCardiacArrest); +PREP(enteredStateFatalInjury); +PREP(handleStateDefault); +PREP(handleStateInjured); +PREP(handleStateUnconscious); +PREP(leftStateCardiacArrest); +PREP(transitionStateSecondChance); diff --git a/addons/medical_statemachine/XEH_postInit.sqf b/addons/medical_statemachine/XEH_postInit.sqf new file mode 100644 index 0000000000..6eccf9d1dd --- /dev/null +++ b/addons/medical_statemachine/XEH_postInit.sqf @@ -0,0 +1,2 @@ +#include "script_component.hpp" + diff --git a/addons/medical_statemachine/XEH_preInit.sqf b/addons/medical_statemachine/XEH_preInit.sqf new file mode 100644 index 0000000000..a7feade1c3 --- /dev/null +++ b/addons/medical_statemachine/XEH_preInit.sqf @@ -0,0 +1,7 @@ +#include "script_component.hpp" + +ADDON = false; + +#include "XEH_PREP.hpp" + +ADDON = true; diff --git a/addons/medical_statemachine/XEH_preStart.sqf b/addons/medical_statemachine/XEH_preStart.sqf new file mode 100644 index 0000000000..022888575e --- /dev/null +++ b/addons/medical_statemachine/XEH_preStart.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +#include "XEH_PREP.hpp" diff --git a/addons/medical_status/XEH_PREP.hpp b/addons/medical_status/XEH_PREP.hpp index e69de29bb2..01e15773b2 100644 --- a/addons/medical_status/XEH_PREP.hpp +++ b/addons/medical_status/XEH_PREP.hpp @@ -0,0 +1,24 @@ +PREP(addHeartRadeAdjustment); +PREP(getBloodLoss); +PREP(getBloodPressure); +PREP(getBloodVolumeChanges); +PREP(getCardiacOutput); +PREP(getHeartRate); +PREP(getPainPerceived); +PREP(getPainTotal); +PREP(hasStableVitals); +PREP(hasTourniquetAppliedTo); +PREP(initUnit); +PREP(isBeingCarried); +PREP(isBeingDragged); +PREP(isInMedicalFacility); +PREP(isInMedicalVehicle); +PREP(isInStableoCondition); +PREP(isMedic); +PREP(isMedicalVehicle); +PREP(isUnconscious); +PREP(setCardiacArrest); +PREP(setDead); +PREP(setHeartRate); +PREP(setPainTotal); +PREP(setUnconscious); diff --git a/addons/medical_treatment/XEH_PREP.hpp b/addons/medical_treatment/XEH_PREP.hpp index 451ad2ead7..350e6d1f59 100644 --- a/addons/medical_treatment/XEH_PREP.hpp +++ b/addons/medical_treatment/XEH_PREP.hpp @@ -20,10 +20,10 @@ PREP(treatment_success); PREP(treatmentBandage); PREP(treatmentBandageLocal); +PREP(treatmentCPR); PREP(treatmentCPR_failure); PREP(treatmentCPR_progress); PREP(treatmentCPR_start); -PREP(treatmentCPR); PREP(treatmentCPRLocal); PREP(treatmentFullHeal); PREP(treatmentFullHealLocal); @@ -41,6 +41,7 @@ PREP(treatmentTourniquetRemove); // misc PREP(addToLog); PREP(addToTriageCard); +PREP(calculateBlood); PREP(canAccessMedicalEquipment); PREP(dropDownTriageCard); PREP(getTriageStatus); @@ -50,7 +51,6 @@ PREP(HealTimeMedkit); PREP(isBeingCarried); PREP(isBeingDragged); PREP(onMedicationUsage); -PREP(calculateBlood); // items PREP(checkItems); diff --git a/addons/medical_vitals/CfgEventHandlers.hpp b/addons/medical_vitals/CfgEventHandlers.hpp new file mode 100644 index 0000000000..0d3301d6e0 --- /dev/null +++ b/addons/medical_vitals/CfgEventHandlers.hpp @@ -0,0 +1,17 @@ +class Extended_PreStart_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preStart)); + }; +}; + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; + +class Extended_PostInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_postInit)); + }; +}; diff --git a/addons/medical_vitals/XEH_PREP.hpp b/addons/medical_vitals/XEH_PREP.hpp new file mode 100644 index 0000000000..8f8c427751 --- /dev/null +++ b/addons/medical_vitals/XEH_PREP.hpp @@ -0,0 +1,4 @@ +PREP(handleUnitVitals); +PREP(updateHeartRate); +PREP(updatePainSuppress); +PREP(updatePeripheralResistance); diff --git a/addons/medical_vitals/XEH_postInit.sqf b/addons/medical_vitals/XEH_postInit.sqf new file mode 100644 index 0000000000..6eccf9d1dd --- /dev/null +++ b/addons/medical_vitals/XEH_postInit.sqf @@ -0,0 +1,2 @@ +#include "script_component.hpp" + diff --git a/addons/medical_vitals/XEH_preInit.sqf b/addons/medical_vitals/XEH_preInit.sqf new file mode 100644 index 0000000000..a7feade1c3 --- /dev/null +++ b/addons/medical_vitals/XEH_preInit.sqf @@ -0,0 +1,7 @@ +#include "script_component.hpp" + +ADDON = false; + +#include "XEH_PREP.hpp" + +ADDON = true; diff --git a/addons/medical_vitals/XEH_preStart.sqf b/addons/medical_vitals/XEH_preStart.sqf new file mode 100644 index 0000000000..022888575e --- /dev/null +++ b/addons/medical_vitals/XEH_preStart.sqf @@ -0,0 +1,3 @@ +#include "script_component.hpp" + +#include "XEH_PREP.hpp"