diff --git a/addons/medical/$PBOPREFIX$ b/addons/medical/$PBOPREFIX$
index 03a98be3f5..39789fcaba 100644
--- a/addons/medical/$PBOPREFIX$
+++ b/addons/medical/$PBOPREFIX$
@@ -1 +1 @@
-z\ace\Addons\medical
\ No newline at end of file
+z\ace\addons\blank
\ No newline at end of file
diff --git a/addons/medical/CfgEventHandlers.hpp b/addons/medical/CfgEventHandlers.hpp
index ab62ee2c0a..f0a9f14d91 100644
--- a/addons/medical/CfgEventHandlers.hpp
+++ b/addons/medical/CfgEventHandlers.hpp
@@ -1,35 +1,6 @@
+
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));
- };
-};
-
-
-class Extended_Killed_Eventhandlers {
- class CaManBase {
- class ADDON {
- Killed = QUOTE(_this call FUNC(eh_killed));
- };
- };
-};
-
-class Extended_Local_Eventhandlers {
- class CaManBase {
- class ADDON {
- Local = QUOTE(_this call FUNC(eh_local));
- };
- };
-};
-class Extended_Init_Eventhandlers {
- class CaManBase {
- class ADDON {
- init = QUOTE(_this call FUNC(onInitForUnit););
- };
- };
-};
diff --git a/addons/medical/CfgFactionClasses.hpp b/addons/medical/CfgFactionClasses.hpp
deleted file mode 100644
index 35f77aedb1..0000000000
--- a/addons/medical/CfgFactionClasses.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-class CfgFactionClasses
-{
- class NO_CATEGORY;
- class ACE_medical: NO_CATEGORY {
- displayName = "ACE Medical";
- };
-};
\ No newline at end of file
diff --git a/addons/medical/CfgHints.hpp b/addons/medical/CfgHints.hpp
deleted file mode 100644
index 2c6409536d..0000000000
--- a/addons/medical/CfgHints.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-class CfgHints
-{
- class Combat_Space_Enhancement
- {
- displayName = "Combat Space Enhancement";
- class ACE_Module
- {
- displayName = "Combat Medical System";
- displayNameShort = "Combat Medical System";
- description = "Combat Medical System is an advanced medical system for players and AI.";
- tip = "";
- arguments[] = {};
- image = "";
- noImage = true;
- };
- class Assessment
- {
- displayName = "Patient Assessment";
- displayNameShort = "Patient Assessment";
- description = "It is essential when treating a casualty that you fully assess each of the areas of the casualty to determine not only the injuries but the priority of each in severity.
You cna assess a patient by clicking on the Assessment ICON
Use Check Pulse, check Blood Pressure and Check Response to get an overview.";
- tip = "Medics will get a faster and more accurate result when assessing patients.";
- arguments[] = {};
- image = "";
- noImage = true;
- };
-
- class Bleeding
- {
- displayName = "Bandaging a wound";
- displayNameShort = "Bandaging a wound";
- description = "For casualties the first priority is to stop the bleeding. You will want to bandage the largest wounds first, before attending to the smaller ones.
You can apply a tourniquet on the limbs to stem the bleeding faster, but remember to remove it!";
- tip = "Select a wound in the injury list to bandage that one first!";
- arguments[] = {};
- image = "";
- noImage = true;
- };
- };
-};
\ No newline at end of file
diff --git a/addons/medical/CfgSounds.hpp b/addons/medical/CfgSounds.hpp
deleted file mode 100644
index de25bda65d..0000000000
--- a/addons/medical/CfgSounds.hpp
+++ /dev/null
@@ -1,45 +0,0 @@
-class CfgSounds
-{
- class GVAR(heartbeat_fast_1)
- {
- name = QGVAR(heartbeat_fast_1);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_1.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_fast_2)
- {
- name = QGVAR(heartbeat_fast_2);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_2.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_fast_3)
- {
- name = QGVAR(heartbeat_fast_3);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\fast_3.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_norm_1)
- {
- name = QGVAR(heartbeat_norm_1);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\norm_1.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_norm_2)
- {
- name = QGVAR(heartbeat_norm_2);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\norm_2.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_slow_1)
- {
- name = QGVAR(heartbeat_slow_1);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\slow_1.wav)),"db-1",1};
- titles[] = {};
- };
- class GVAR(heartbeat_slow_2)
- {
- name = QGVAR(heartbeat_slow_2);
- sound[] = {QUOTE(PATHTOF(sounds\heart_beats\slow_2.wav)),"db-1",1};
- titles[] = {};
- };
-};
\ No newline at end of file
diff --git a/addons/medical/CfgVehicles.hpp b/addons/medical/CfgVehicles.hpp
deleted file mode 100644
index c081efc27f..0000000000
--- a/addons/medical/CfgVehicles.hpp
+++ /dev/null
@@ -1,1039 +0,0 @@
-class CfgVehicles
-{
- class Logic;
- class Module_F: Logic {
- class ArgumentsBaseUnits {
- };
- };
- class ACE_moduleCombatMedicalSystem: Module_F {
- scope = 2;
- displayName = "Combat Medical System [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(initalizeModuleCMS));
- functionPriority = 1;
- isGlobal = 1;
- isTriggerActivated = 0;
- author = "Glowbal";
- class Arguments {
- class advancedLevel {
- displayName = "Advanced Level";
- description = "How advanced can the medical system be?";
- typeName = "NUMBER";
- class values {
- class basic {
- name = "Basic. Only bleeding and pain.";
- value = 0;
- default = 1;
- };
- class normal {
- name = "Normal. Bleeding, Pain, Blood pressure and heart rate";
- value = 1;
- };
- class full {
- name = "Full. Everything enabled.";
- value = 2;
- };
- };
- };
- class openingOfWounds {
- displayName = "Advanced Wounds";
- description = "When set to true, bandaged wounds could on occasion re-open, resulting in new open wounds that need to be bandaged.";
- typeName = "BOOL";
- defaultValue = 1;
- };
- class mediACEtting {
- displayName = "Advanced Medic roles";
- description = "Medics only are able to view the detailed information";
- typeName = "BOOL";
- defaultValue = 1;
- };
- class difficultySetting {
- displayName = "Survival Difficulty";
- description = "Select the aggressiveness of the medical simulation";
- typeName = "NUMBER";
- class values {
- class recruit {
- name = "Recruit";
- value = 0.5;
- };
- class regular {
- name = "Regular";
- value = 1;
- default = 1;
- };
- class veteran {
- name = "Veteran";
- value = 1.2;
- };
- class expert {
- name = "Expert";
- value = 1.5;
- };
- };
- };
- class enableFor {
- displayName = "Enabled for";
- description = "Select what units CMS will be enabled for";
- typeName = "NUMBER";
- class values {
- class playableUnits {
- name = "Players only";
- value = 0;
- default = 1;
- };
- class playableUnitsAndAI {
- name = "Players and AI";
- value = 1;
- };
- };
- };
- class enableAirway {
- displayName = "Enable Airway";
- description = "Should CMS Airway system be enabled?";
- typeName = "NUMBER";
- class values {
- class enable {
- name = "Yes";
- value = 1;
- };
- class disable {
- name = "No";
- value = 0;
- default = 1;
- };
- };
- };
- class vehCrashes {
- displayName = "Vehicle Crashes";
- description = "Enable injuries on vehicle crashes";
- typeName = "BOOL";
- defaultValue = 1;
- };
-
- class aidKitUponUsage {
- displayName = "Disposable Aid kit";
- description = "Is a personal aid kit disposable?";
- typeName = "BOOL";
- defaultValue = false;
- };
- class aidKitMedicsOnly {
- displayName = "Medics only";
- description = "Are aid kits restricted to medics only?";
- typeName = "BOOL";
- defaultValue = false;
- };
- class aidKitRestrictions {
- displayName = "Aid kit";
- description = "When can an Aid kit be used?";
- typeName = "NUMBER";
- class values {
- class medFacility {
- name = "Medical Facility";
- value = 0;
- default = 1;
- };
- class medFAcilityNoBleeding {
- name = "Medical Facility & No bleeding";
- value = 1;
- };
- class Everywhere {
- name = "Everywhere";
- value = 2;
- };
- class EverywhereNoBleeding {
- name = "Everywhere & No Bleeding";
- value = 3;
- };
- };
- };
- class bandageTime {
- displayName = "Bandage Time";
- description = "Time it takes for a bandage action to be completed";
- typeName = "NUMBER";
- defaultValue = 5;
- };
- class stitchingAllow {
- displayName = "Can Stitch";
- description = "What units can use stitching?";
- typeName = "NUMBER";
- defaultValue = 0;
- class values {
- class medicsOnly {
- name = "Medics Only";
- value = 0;
- default = 1;
- };
- class everyone {
- name = "Everyone";
- value = 1;
- };
- class noOne {
- name = "No units";
- value = -1;
- };
- };
- };
-
- };
- class ModuleDescription {
- description = "Provides a more realistic medical system for both players and AI."; // Short description, will be formatted as structured text
- sync[] = {};
- };
- };
-
- class ACE_moduleDamageSettings: Module_F {
- scope = 2;
- displayName = "Damage Settings [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(moduleDamageSettings));
- functionPriority = 1;
- isGlobal = 1;
- isTriggerActivated = 0;
- author = "Glowbal";
- class Arguments {
- class damageThresholdAI {
- displayName = "Damage Threshold AI";
- description = "How much damage does it take for an AI to be killed?";
- typeName = "NUMBER";
- defaultValue = 1;
- };
- class damageThresholdPlayers {
- displayName = "Damage Threshold Players";
- description = "How much damage does it take for a player to be killed?";
- typeName = "NUMBER";
- defaultValue = 1;
- };
- };
- class ModuleDescription {
- description = "Custom damage threshold module";
- sync[] = {};
- };
- };
-
- class ACE_moduleAssignMedicRoles: Module_F {
- scope = 2;
- displayName = "Set Medic Class [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicRoles));
- functionPriority = 10;
- isGlobal = 2;
- isTriggerActivated = 0;
- isDisposable = 0;
- author = "Glowbal";
- class Arguments {
- class EnableList {
- displayName = "List";
- description = "List of unit names that will be classified as medic, separated by commas.";
- defaultValue = "";
- };
- class class {
- displayName = "Is Medic";
- description = "Medics allow for more advanced treatment in case of Advanced Medic roles enabled";
- typeName = "BOOL";
- defaultValue = true;
- };
- };
- class ModuleDescription {
- description = "Assigns the ACE medic class to a unit"; // Short description, will be formatted as structured text
- sync[] = {};
- };
- };
-
- class ACE_moduleAssignMedicalVehicle: Module_F {
- scope = 2;
- displayName = "set Medical Vehicle [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicalVehicle));
- functionPriority = 10;
- isGlobal = 2;
- isTriggerActivated = 0;
- isDisposable = 0;
- author = "Glowbal";
- class Arguments {
- class EnableList {
- displayName = "List";
- description = "List of object names that will be classified as medical vehicle, separated by commas.";
- defaultValue = "";
- };
- class enabled {
- displayName = "Is Medical Vehicle";
- description = "Whatever or not the objects in the list will be a medical vehicle.";
- typeName = "BOOL";
- defaultValue = true;
- };
- };
- class ModuleDescription {
- description = "Assigns the ACE medical vehicle class to a vehicle.";
- sync[] = {};
- };
- };
-
- class ACE_moduleAssignMedicalFacility: Module_F {
- scope = 2;
- displayName = "Set Medical Facility [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicalFacility));
- functionPriority = 10;
- isGlobal = 2;
- isTriggerActivated = 0;
- isDisposable = 0;
- author = "Glowbal";
- class Arguments {
- class class {
- displayName = "Is Medical Facility";
- description = "Registers an object as a medical facility for CMS";
- typeName = "BOOL";
- };
- };
- class ModuleDescription {
- description = "Defines an object as a medical facility for CMS. This allows for more advanced treatments. Can be used on buildings and vehicles. ";
- sync[] = {};
- };
- };
- class ACE_moduleAssignMedicalEquipment: Module_F {
- scope = 2;
- displayName = "Assign Medical Equipment [ACE]";
- icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
- category = "ACE_medical";
- function = QUOTE(FUNC(moduleAssignMedicalEquipment));
- functionPriority = 1;
- isGlobal = 1;
- isTriggerActivated = 0;
- author = "Glowbal";
- class Arguments {
- class equipment {
- displayName = "Assign Equipment";
- description = "Assign Medical equipment to all players";
- typeName = "NUMBER";
- defaultValue = 0;
- class values {
- class AllPlayers {
- name = "All Players";
- value = 0;
- default = 1;
- };
- class MedicsOnly {
- name = "Medics only";
- value = 1;
- };
- };
- };
- };
- class ModuleDescription {
- description = "Assigns medical equipment to units";
- sync[] = {};
- };
- };
-
-
- class MapBoard_altis_F;
- class ACE_bodyBag: MapBoard_altis_F {
- scope = 1;
- side = -1;
- model = QUOTE(PATHTOF(equipment\bodybag.p3d));
- icon = "";
- displayName = $STR_ACE_MAG_BODYBAG_DISPLAY;
- };
-
-
- class Item_Base_F;
- class ACE_bandage_basicItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BANDAGE_BASIC_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_bandage_basic
- {
- name = "ACE_bandage_basic";
- count = 1;
- };
- };
- };
- class ACE_packing_bandageItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_PACKING_BANDAGE_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_packing_bandage
- {
- name = "ACE_packing_bandage";
- count = 1;
- };
- };
- };
- class ACE_bandageElasticItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BANDAGE_ELASTIC_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_bandageElastic
- {
- name = "ACE_bandageElastic";
- count = 1;
- };
- };
- };
- class ACE_tourniquetItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_TOURNIQUET_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_tourniquet
- {
- name = "ACE_tourniquet";
- count = 1;
- };
- };
- };
- class ACE_splintItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_SPLINT_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_splint
- {
- name = "ACE_splint";
- count = 1;
- };
- };
- };
- class ACE_morphineItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_MORPHINE_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_morphine
- {
- name = "ACE_morphine";
- count = 1;
- };
- };
- };
- class ACE_atropineItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_ATROPINE_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_atropine
- {
- name = "ACE_atropine";
- count = 1;
- };
- };
- };
- class ACE_epinephrineItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_EPINEPHRINE_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_epinephrine
- {
- name = "ACE_epinephrine";
- count = 1;
- };
- };
- };
- class ACE_plasma_ivItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_PLASMA_IV;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_plasma_iv
- {
- name = "ACE_plasma_iv";
- count = 1;
- };
- };
- };
- class ACE_plasma_iv_500Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_PLASMA_IV_500;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_plasma_iv_500
- {
- name = "ACE_plasma_iv_500";
- count = 1;
- };
- };
- };
- class ACE_plasma_iv_250Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_PLASMA_IV_250;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_plasma_iv_250
- {
- name = "ACE_plasma_iv_250";
- count = 1;
- };
- };
- };
- class ACE_blood_ivItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BLOOD_IV;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_blood_iv
- {
- name = "ACE_blood_iv";
- count = 1;
- };
- };
- };
- class ACE_blood_iv_500Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BLOOD_IV_500;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_blood_iv_500
- {
- name = "ACE_blood_iv_500";
- count = 1;
- };
- };
- };
- class ACE_blood_iv_250Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BLOOD_IV_250;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_blood_iv_250
- {
- name = "ACE_blood_iv_250";
- count = 1;
- };
- };
- };
- class ACE_saline_ivItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_SALINE_IV;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_saline_iv
- {
- name = "ACE_saline_iv";
- count = 1;
- };
- };
- };
- class ACE_saline_iv_500Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_SALINE_IV_500;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_saline_iv_500
- {
- name = "ACE_saline_iv_500";
- count = 1;
- };
- };
- };
- class ACE_saline_iv_250Item: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_SALINE_IV_250;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_saline_iv_250
- {
- name = "ACE_saline_iv_250";
- count = 1;
- };
- };
- };
- class ACE_quikclotItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_QUIKCLOT_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_quikclot
- {
- name = "ACE_quikclot";
- count = 1;
- };
- };
- };
- class ACE_nasopharyngeal_tubeItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_NPA_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_nasopharyngeal_tube
- {
- name = "ACE_nasopharyngeal_tube";
- count = 1;
- };
- };
- };
- class ACE_opaItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_OPA_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_opa
- {
- name = "ACE_opa";
- count = 1;
- };
- };
- };
- class ACE_liquidSkinItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_LIQUID_SKIN_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_liquidSkin
- {
- name = "ACE_liquidSkin";
- count = 1;
- };
- };
- };
- class ACE_chestsealItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_CHEST_SEAL_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_chestseal
- {
- name = "ACE_chestseal";
- count = 1;
- };
- };
- };
- class ACE_personal_aid_kitItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_AID_KIT_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_personal_aid_kit
- {
- name = "ACE_personal_aid_kit";
- count = 1;
- };
- };
- };
- class ACE_bodyBagItem: Item_Base_F {
- scope = 2;
- scopeCurator = 2;
- displayName = $STR_ACE_MAG_BODYBAG_DISPLAY;
- author = "Glowbal";
- vehicleClass = "Items";
- class TransportItems
- {
- class ACE_itemBodyBag
- {
- name = "ACE_itemBodyBag";
- count = 1;
- };
- };
- };
-
-
- class NATO_Box_Base;
- class ACE_medical_supply_crate_cms : NATO_Box_Base {
- scope = 2;
- accuracy = 1000;
- displayName = "Medical Supply Crate [ACE]";
- model = "\A3\weapons_F\AmmoBoxes\AmmoBox_F";
- author = "Glowbal";
- class TransportItems {
- class ACE_bandage_basic {
- name = "ACE_bandage_basic";
- count = 25;
- };
- class ACE_packing_bandage {
- name = "ACE_packing_bandage";
- count = 25;
- };
- class ACE_tourniquet {
- name = "ACE_tourniquet";
- count = 25;
- };
- class ACE_splint {
- name = "ACE_splint";
- count = 25;
- };
- class ACE_plasma_iv {
- name = "ACE_plasma_iv";
- count = 25;
- };
- class ACE_plasma_iv_500 {
- name = "ACE_plasma_iv_500";
- count = 25;
- };
- class ACE_plasma_iv_250 {
- name = "ACE_plasma_iv_250";
- count = 25;
- };
- class ACE_blood_iv {
- name = "ACE_blood_iv";
- count = 25;
- };
- class ACE_blood_iv_500 {
- name = "ACE_blood_iv_500";
- count = 25;
- };
- class ACE_blood_iv_250 {
- name = "ACE_blood_iv_250";
- count = 25;
- };
- class ACE_saline_iv {
- name = "ACE_saline_iv";
- count = 25;
- };
- class ACE_saline_iv_500 {
- name = "ACE_saline_iv_500";
- count = 25;
- };
- class ACE_saline_iv_250 {
- name = "ACE_saline_iv_250";
- count = 25;
- };
- class ACE_morphine {
- name = "ACE_morphine";
- count = 25;
- };
- class ACE_epinephrine {
- name = "ACE_epinephrine";
- count = 25;
- };
- class ACE_atropine {
- name = "ACE_atropine";
- count = 25;
- };
- class ACE_quikclot {
- name = "ACE_quikclot";
- count = 25;
- };
- class ACE_nasopharyngeal_tube {
- name = "ACE_nasopharyngeal_tube";
- count = 25;
- };
- class ACE_bandageElastic {
- name = "ACE_bandageElastic";
- count = 25;
- };
- class ACE_liquidSkin {
- name = "ACE_liquidSkin";
- count = 25;
- };
- class ACE_chestseal {
- name = "ACE_chestseal";
- count = 25;
- };
- class ACE_personal_aid_kit {
- name = "ACE_personal_aid_kit";
- count = 25;
- };
- class ACE_surgical_kit {
- name = "ACE_surgical_kit";
- count = 25;
- };
- class ACE_itemBodyBag {
- name = "ACE_itemBodyBag";
- count = 5;
- };
- };
- };
-
-
- #define ARM_LEG_ARMOR_DEFAULT 2
- #define ARM_LEG_ARMOR_BETTER 3
- #define ARM_LEG_ARMOR_CSAT 4
-
- class Man;
- class CAManBase: Man {
- class HitPoints {
- class HitHead;
- class HitBody;
- // "DEACTIVE" DEFAULT HITPOINTS
- class HitHands {
- armor = 999; //armor = 2;
- explosionShielding = 0; //explosionShielding = 1;
- material = -1;
- minimalHit = 0;
- name = "";
- passThrough = 1;
- radius = 0; //radius = 0.06;
- visual = "injury_hands";
- };
- class HitLegs {
- armor = 999; //armor = 2;
- explosionShielding = 0; //explosionShielding = 1;
- material = -1;
- minimalHit = 0;
- name = "";
- passThrough = 1;
- radius = 0; //radius = 0.08;
- visual = "injury_legs";
- };
-
- class HitLeftArm {
- armor = ARM_LEG_ARMOR_DEFAULT; //2;
- explosionShielding = 1;
- material = -1;
- minimalHit = 0;
- name = "hand_l";
- passThrough = 1;
- radius = 0.06;
- visual = "injury_hands";
- };
- class HitRightArm: HitLeftArm {
- name = "hand_r";
- };
- class HitLeftLeg {
- armor = ARM_LEG_ARMOR_DEFAULT; //2;
- explosionShielding = 1;
- material = -1;
- minimalHit = 0;
- name = "leg_l";
- passThrough = 1;
- radius = 0.08;
- visual = "injury_legs";
- };
- class HitRightLeg: HitLeftLeg {
- name = "leg_r";
- };
- };
- };
-
- class SoldierWB: CAManBase {};
- class SoldierEB: CAManBase {};
- class SoldierGB: CAManBase {};
-
- class B_Soldier_base_F: SoldierWB {};
- class B_Soldier_04_f: B_Soldier_base_F {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
- };
- };
-
- class B_Soldier_05_f: B_Soldier_base_F {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
- };
- };
-
- class I_Soldier_base_F: SoldierGB {};
-
- class I_Soldier_03_F: I_Soldier_base_F {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
- };
- };
-
- class I_Soldier_04_F: I_Soldier_base_F {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_BETTER;
- };
- };
- };
-
- class O_Soldier_base_F: SoldierEB {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
- };
- };
-
- class O_Soldier_02_F: O_Soldier_base_F {
- class HitPoints: HitPoints {
- class HitHead: HitHead {};
- class HitBody: HitBody {};
- class HitHands: HitHands {};
- class HitLegs: HitLegs {};
-
- class HitLeftArm: HitLeftArm {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitRightArm: HitRightArm {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitLeftLeg: HitLeftLeg {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
-
- class HitRightLeg: HitRightLeg {
- armor = ARM_LEG_ARMOR_CSAT;
- passThrough = 0.85;
- };
- };
- };
-};
diff --git a/addons/medical/CfgWeapons.hpp b/addons/medical/CfgWeapons.hpp
deleted file mode 100644
index 34636cf0fb..0000000000
--- a/addons/medical/CfgWeapons.hpp
+++ /dev/null
@@ -1,317 +0,0 @@
-class CfgWeapons {
- class ItemCore;
- class InventoryItem_Base_F;
- class ACE_bandage_basic: ItemCore
- {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_BANDAGE_BASIC_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\field_dressing.paa));
- model = QUOTE(PATHTOF(equipment\bandages\fielddressing.p3d));
- descriptionShort = $STR_ACE_MAG_BANDAGE_BASIC_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_BANDAGE_BASIC_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=0.5;
- type=201;
- };
- };
- class ACE_packing_bandage: ItemCore
- {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_PACKING_BANDAGE_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\packing_bandage.paa));
- model = QUOTE(PATHTOF(equipment\bandages\packingbandage.p3d));
- descriptionShort = $STR_ACE_MAG_PACKING_BANDAGE_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_PACKING_BANDAGE_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_bandageElastic: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_BANDAGE_ELASTIC_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\bandageElastic.paa));
- model = "\A3\Structures_F_EPA\Items\Medical\Bandage_F.p3d";
- descriptionShort = $STR_ACE_MAG_BANDAGE_ELASTIC_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_BANDAGE_ELASTIC_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_tourniquet: ItemCore
- {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_TOURNIQUET_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\tourniquet.paa));
- model = QUOTE(PATHTOF(equipment\Tourniquet.p3d));
- descriptionShort = $STR_ACE_MAG_TOURNIQUET_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_TOURNIQUET_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_splint: ItemCore
- {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_SPLINT_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\splint.paa));
- descriptionUse = $STR_ACE_MAG_SPLINT_DESC_USE;
- descriptionShort = $STR_ACE_MAG_SPLINT_DESC_SHORT;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_morphine: ItemCore
- {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_MORPHINE_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\morphine.paa));
- model = QUOTE(PATHTOF(equipment\Morphinpen.p3d));
- descriptionShort = $STR_ACE_MAG_MORPHINE_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_MORPHINE_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_atropine: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_ATROPINE_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\atropine.paa));
- model = QUOTE(PATHTOF(equipment\Atropin-pen.p3d));
- descriptionShort = $STR_ACE_MAG_ATROPINE_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_ATROPINE_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_epinephrine: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_EPINEPHRINE_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\epinephrine.paa));
- model = QUOTE(PATHTOF(equipment\Epipen.p3d));
- descriptionShort = $STR_ACE_MAG_EPINEPHRINE_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_EPINEPHRINE_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_plasma_iv: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- displayName = $STR_ACE_MAG_PLASMA_IV;
- picture = QUOTE(PATHTOF(equipment\img\plasma_iv.paa));
- descriptionShort = $STR_ACE_MAG_PLASMA_IV_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_PLASMA_IV_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_plasma_iv_500: ACE_plasma_iv {
- displayName = $STR_ACE_MAG_PLASMA_IV_500;
- };
- class ACE_plasma_iv_250: ACE_plasma_iv_500 {
- displayName = $STR_ACE_MAG_PLASMA_IV_250;
- };
- class ACE_blood_iv: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- model = "\A3\Structures_F_EPA\Items\Medical\BloodBag_F.p3d";
- displayName = $STR_ACE_MAG_BLOOD_IV;
- picture = QUOTE(PATHTOF(equipment\img\bloodbag.paa));
- descriptionShort = $STR_ACE_MAG_BLOOD_IV_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_BLOOD_IV_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_blood_iv_500: ACE_blood_iv {
- displayName = $STR_ACE_MAG_BLOOD_IV_500;
- };
- class ACE_blood_iv_250: ACE_blood_iv_500 {
- displayName = $STR_ACE_MAG_BLOOD_IV_250;
- };
- class ACE_saline_iv: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- displayName = $STR_ACE_MAG_SALINE_IV;
- picture = QUOTE(PATHTOF(equipment\img\saline_iv.paa));
- descriptionShort = $STR_ACE_MAG_SALINE_IV_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_SALINE_IV_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_saline_iv_500: ACE_saline_iv {
- displayName = $STR_ACE_MAG_SALINE_IV_500;
- };
- class ACE_saline_iv_250: ACE_saline_iv_500 {
- displayName = $STR_ACE_MAG_SALINE_IV_250;
- };
- class ACE_quikclot: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_QUIKCLOT_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\quickclot.paa));
- descriptionShort = $STR_ACE_MAG_QUIKCLOT_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_QUIKCLOT_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_nasopharyngeal_tube: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_NPA_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\nasopharyngeal_tube.paa));
- descriptionUse = $STR_ACE_MAG_NPA_DESC_USE;
- descriptionShort = $STR_ACE_MAG_NPA_DESC_SHORT;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_opa: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_OPA_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\nasopharyngeal_tube.paa));
- descriptionShort = $STR_ACE_MAG_OPA_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_OPA_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_liquidSkin: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_LIQUID_SKIN_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\liquidSkin.paa));
- model = QUOTE(PATHTOF(equipment\skinliquid.p3d));
- descriptionShort = $STR_ACE_MAG_LIQUID_SKIN_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_LIQUID_SKIN_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_chestseal: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_CHEST_SEAL_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\chestseal.paa));
- descriptionShort = $STR_ACE_MAG_CHEST_SEAL_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_CHEST_SEAL_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=1;
- type=201;
- };
- };
- class ACE_personal_aid_kit: ItemCore {
- scope = 2;
- value = 1;
- count = 1;
- type = 16;
- displayName = $STR_ACE_MAG_AID_KIT_DISPLAY;
- picture = QUOTE(PATHTOF(equipment\img\personal_aid_kit.paa));
- model = QUOTE(PATHTOF(equipment\Personal-aidkits\MTP.p3d));
- descriptionShort = $STR_ACE_MAG_AID_KIT_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_AID_KIT_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass=2;
- type=201;
- };
- };
- class ACE_surgical_kit: ItemCore
- {
- scope=2;
- displayName= $STR_ACE_MAG_SURGICALKIT_DISPLAY;
- model = QUOTE(PATHTOF(equipment\surgical_kit.p3d));
- picture = QUOTE(PATHTOF(equipment\img\surgical_kit.paa));
- descriptionShort = $STR_ACE_MAG_SURGICALKIT_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_SURGICALKIT_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass= 5;
- type=201;
- };
- };
- class ACE_itemBodyBag: ItemCore
- {
- scope=2;
- displayName= $STR_ACE_MAG_BODYBAG_DISPLAY;
- model = QUOTE(PATHTOF(equipment\bodybagItem.p3d));
- picture = QUOTE(PATHTOF(equipment\img\bodybag.paa));
- descriptionShort = $STR_ACE_MAG_BODYBAG_DESC_SHORT;
- descriptionUse = $STR_ACE_MAG_BODYBAG_DESC_USE;
- class ItemInfo: InventoryItem_Base_F
- {
- mass= 15;
- type=201;
- };
- };
-};
diff --git a/addons/medical/README.md b/addons/medical/README.md
deleted file mode 100644
index 0b2b7a4038..0000000000
--- a/addons/medical/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-ace_medical
-===============
-
-Provides a basic and advanced medical system.
-
-## Maintainers
-
-The people responsible for merging changes to this component or answering potential questions.
-
-- [Glowbal](https://github.com/Glowbal)
diff --git a/addons/medical/XEH_postInit.sqf b/addons/medical/XEH_postInit.sqf
deleted file mode 100644
index 062df32ddf..0000000000
--- a/addons/medical/XEH_postInit.sqf
+++ /dev/null
@@ -1,245 +0,0 @@
-/**
- * XEH_postInit.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-#include "variable_defines.sqf"
-
-GVAR(injuredUnitCollection) = [];
-[{
- {
- if (!alive _x || !local _x) then {
- GVAR(injuredUnitCollection) set [ _forEachIndex, ObjNull];
- } else {
- [_x] call FUNC(handleUnitVitals);
-
- private "_pain";
- _pain = _X getvariable [QGVAR(amountOfPain), 0];
- if (_pain > 5 && (random(1) > 0.5)) then {
- _x setvariable [QGVAR(amountOfPain), _pain + 0.002];
- };
- if (_pain > 45) then {
- if (random(1) > 0.6) then {
- [_X] call FUNC(setUnconsciousState);
- };
- //[_X] call FUNC(playInjuredSound);
- };
- };
- }foreach GVAR(injuredUnitCollection);
- GVAR(injuredUnitCollection) = GVAR(injuredUnitCollection) - [ObjNull];
-}, 1, [] ] call CBA_fnc_addPerFrameHandler;
-
-[
- {(([_this select 0,QGVAR(bloodVolume)] call EFUNC(common,getDefinedVariable)) < 65)},
- {(([_this select 0,QGVAR(amountOfPain)] call EFUNC(common,getDefinedVariable)) > 48)},
- {(((_this select 0) call FUNC(getBloodLoss)) > 0.25)},
- {((_this select 0) getvariable ["ACE_inReviveState", false])}
-] call FUNC(registerUnconsciousCondition);
-
-call FUNC(handleDisplayEffects);
-
-// Assigning all eventhandlers
-["Medical_treatmentCompleted", FUNC(onTreatmentCompleted)] call ace_common_fnc_addEventHandler;
-["onStartMovingUnit", FUNC(onStartMovingUnit)] call ace_common_fnc_addEventHandler;
-["onUnconscious", FUNC(onUnconscious)] call ace_common_fnc_addEventHandler;
-["carryObjectDropped", FUNC(onCarryObjectDropped)] call ace_common_fnc_addEventHandler;
-
-if (isNil QGVAR(ENABLE_REVIVE_F)) then {
- GVAR(ENABLE_REVIVE_F) = 0;
-};
-
-
-// Keybindings
-GVAR(keyPressed) = false;
-
-["ACE3",
- localize "STR_ACE_OPEN_CMS_MENU_DESC",
- { if (!GVAR(keyPressed)) then {
- GVAR(keyPressed) = true;
- GVAR(timeMenuOpened) = time;
- [] call FUNC(openMenu);
-
- true;
- } else {
- false;
- };
- },
- [ 0, [false, false, false]],
- false,
- "keydown"] call cba_fnc_registerKeybind;
-
-["ACE3",
- localize "STR_ACE_OPEN_CMS_MENU_DESC",
- {
- GVAR(keyPressed) = false;
- if (time - GVAR(timeMenuOpened) >= (0.25*accTime)) then {
- disableSerialization;
- _display = uiNamespace getVariable QGVAR(medicalMenu);
- if (!isnil "_display") then {
- closeDialog 314412;
- };
- };
- false;
- },
- [ 0, [false, false, false]],
- false,
- "keyUp"] call cba_fnc_registerKeybind;
-
-
-// Adding the treatment options for all available medical equipment.
-
-// Advanced Treatment options
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_BLOODIV_1000ml","STR_ACE_ACTION_BLOODIV_1000ML_TOOLTIP",'ACE_blood_iv');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_BLOODIV_500ml","STR_ACE_ACTION_BLOODIV_500ML_TOOLTIP",'ACE_blood_iv_500');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_BLOODIV_250ml","STR_ACE_ACTION_BLOODIV_250ML_TOOLTIP",'ACE_blood_iv_250');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_PLASMAIV_1000ml","STR_ACE_ACTION_PLASMAIV_1000ML_TOOLTIP",'ACE_plasma_iv');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_PLASMAIV_500ml","STR_ACE_ACTION_PLASMAIV_500ML_TOOLTIP",'ACE_plasma_iv_500');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_PLASMAIV_250ml","STR_ACE_ACTION_PLASMAIV_250ML_TOOLTIP",'ACE_plasma_iv_250');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_SALINEIV_1000ml","STR_ACE_ACTION_SALINEIV_1000ML_TOOLTIP",'ACE_saline_iv');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_SALINEIV_500ml","STR_ACE_ACTION_SALINEIV_500ML_TOOLTIP",'ACE_saline_iv_500');
-ADD_TREATMENT_ADVANCED("STR_ACE_ACTION_SALINEIV_250ml","STR_ACE_ACTION_SALINEIV_250ML_TOOLTIP",'ACE_saline_iv_250');
-
-["STR_ACE_ACTION_PERSONAL_AID_KIT","STR_ACE_ACTION_PERSONAL_AID_KIT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
- if !([_this select 0,_this select 1, 'ACE_personal_aid_kit'] call FUNC(hasEquipment)) exitwith {
- false;
- };
- _inMedFacility = ([_caller] call FUNC(inMedicalFacility));
- _hasOpenWounds = ([_target] call FUNC(hasOpenWounds));
-
- if ((GVAR(setting_aidKitRestrictions) == 0 && _inMedFacility) ||
- (GVAR(setting_aidKitRestrictions) == 1 && _inMedFacility && (!_hasOpenWounds)) ||
- (GVAR(setting_aidKitRestrictions) == 2) ||
- (GVAR(setting_aidKitRestrictions) == 3 && (!_hasOpenWounds))) exitwith {
-
- ((GVAR(setting_aidKitMedicsOnly) && [_caller] call FUNC(isMedic) || !GVAR(setting_aidKitMedicsOnly)));
- };
- false;
-},TREATMENT_ADVANCED('ACE_personal_aid_kit'),'advanced'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_PERFORM_CPR","STR_ACE_ACTION_PERFORM_CPR_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (!(_caller getvariable[QGVAR(isProvidingCPR), false]) && ((_target getvariable [QGVAR(inCardiacArrest),false]) || !([_target] call EFUNC(common,isAwake))))
-},TREATMENT_ADVANCED('ACE_CPR'),'advanced'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_STOP_CPR","STR_ACE_ACTION_STOP_CPR_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (_caller getvariable[QGVAR(isProvidingCPR), false])
-},{((_this select 0) setvariable[QGVAR(isProvidingCPR), nil, true])},'advanced'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_STITCHING","STR_ACE_ACTION_STITCHING_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- ((GVAR(setting_allowStitching) == 0 && [_Caller] call FUNC(isMedic)) || GVAR(setting_allowStitching) == 1)
-},TREATMENT_ADVANCED('ACE_surgical_kit'),'advanced'] call FUNC(addTreatmentOption);
-
-// Airway Management
-["STR_ACE_ACTION_APPLY_NPA","STR_ACE_ACTION_APPLY_NPA_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
- if !([_this select 0,_this select 1, 'ACE_nasopharyngeal_tube'] call FUNC(hasEquipment)) exitwith {
- false;
- };
- (!([_target, QGVAR(airwayTreated)] call EFUNC(common,getDefinedVariable)) && !([_target] call EFUNC(common,isAwake)))
-},TREATMENT_AIRWAY('ACE_nasopharyngeal_tube'),'advanced'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_REMOVE_NPA","STR_ACE_ACTION_REMOVE_NPA_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
- ([_target, QGVAR(airwayTreated)] call EFUNC(common,getDefinedVariable));
-}, {GVAR(INTERACTION_TARGET) setvariable [QGVAR(airwayTreated), nil, true]; (_this select 0) addItem 'ACE_nasopharyngeal_tube';},'airway'] call FUNC(addTreatmentOption);
-
-
-// Bandaging
-ADD_TREATMENT_BANDAGE("STR_ACE_ACTION_BANDAGE_BASIC","STR_ACE_ACTION_BANDAGE_BASIC_TOOLTIP",'ACE_bandage_basic');
-ADD_TREATMENT_BANDAGE("STR_ACE_ACTION_QUIKCLOT","STR_ACE_ACTION_QUIKCLOT_TOOLTIP",'ACE_quikclot');
-ADD_TREATMENT_BANDAGE("STR_ACE_ACTION_BANDAGE_ELASTIC","STR_ACE_ACTION_BANDAGE_ELASTIC_TOOLTIP",'ACE_bandageElastic');
-ADD_TREATMENT_BANDAGE("STR_ACE_ACTION_PACKING_BANDAGE","STR_ACE_ACTION_PACKING_BANDAGE_TOOLTIP",'ACE_packing_bandage');
-
-["STR_ACE_ACTION_REMOVE_TOURNIQUET","STR_ACE_ACTION_REMOVE_TOURNIQUET_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
- ([_target, call FUNC(getSelectedBodyPart)] call FUNC(hasTourniquetAppliedTo));
-},{[_this select 0,_this select 1,call FUNC(getSelectedBodyPart)] call FUNC(actionRemoveTourniquet)},'bandage'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_APPLY_TOURNIQUET","STR_ACE_ACTION_APPLY_TOURNIQUET_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
- (!([_target, call FUNC(getSelectedBodyPart)] call FUNC(hasTourniquetAppliedTo)) && ([_caller,_target,'ACE_tourniquet'] call FUNC(hasEquipment)));
-},TREATMENT_BANDAGE('ACE_tourniquet'),'bandage'] call FUNC(addTreatmentOption);
-
-
-// Medication
-ADD_TREATMENT_MEDICATION("STR_ACE_ACTION_MORPHINE","STR_ACE_ACTION_MORPHINE_TOOLTIP",'ACE_morphine');
-ADD_TREATMENT_MEDICATION("STR_ACE_ACTION_ATROPINE","STR_ACE_ACTION_ATROPINE_TOOLTIP",'ACE_atropine');
-ADD_TREATMENT_MEDICATION("STR_ACE_ACTION_EPINEPHRINE","STR_ACE_ACTION_EPINEPHRINE_TOOLTIP",'ACE_epinephrine');
-
-
-// Examine
-["STR_ACE_ACTION_CHECK_PULSE","STR_ACE_ACTION_CHECK_PULSE_TOOLTIP",{
- true;
-},{[_this select 0,_this select 1] call FUNC(actionCheckPulse)},'examine'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_CHECK_BP","STR_ACE_ACTION_CHECK_BP_TOOLTIP",{
- true;
-},{[_this select 0,_this select 1] call FUNC(actionCheckBloodPressure);},'examine'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_CHECK_RESPONSE","STR_ACE_ACTION_CHECK_RESPONSE_TOOLTIP",{
- true;
-},{[_this select 0,_this select 1] call FUNC(actionCheckResponse)},'examine'] call FUNC(addTreatmentOption);
-
-
-// Drag/Movement
-["STR_ACE_ACTION_DRAG_PATIENT","STR_ACE_ACTION_DRAG_PATIENT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (isNull ([_caller] call EFUNC(common,getCarriedObj)) && isNull ([_target] call EFUNC(common,getCarriedObj)) && (_caller != _target) && (vehicle _target == _target));
-}, {[_this select 0,_this select 1] call FUNC(actionDragUnit)},'drag'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_CARRY_PATIENT","STR_ACE_ACTION_CARRY_PATIENT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (isNull ([_caller] call EFUNC(common,getCarriedObj)) && isNull ([_target] call EFUNC(common,getCarriedObj)) && (_caller != _target) && (vehicle _target == _target));
-}, {[_this select 0,_this select 1] call FUNC(actionCarryUnit)},'drag'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_BODYBAG","STR_ACE_ACTION_BODYBAG_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (isNull ([_caller] call EFUNC(common,getCarriedObj)) && isNull ([_target] call EFUNC(common,getCarriedObj)) && (_caller != _target) && (vehicle _target == _target) && ([_caller, _target] call FUNC(canPutInBodyBag)));
-}, {[_this select 0,_this select 1] call FUNC(actionPlaceInBodyBag)},'drag'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_DROP_PATIENT","STR_ACE_ACTION_DROP_PATIENT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- (!(isNull ([_caller] call EFUNC(common,getCarriedObj))) && ([_caller] call FUNC(isMovingUnit)));
-}, {[_this select 0,_this select 1] call FUNC(actionDropUnit)},'drag'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_LOAD_PATIENT","STR_ACE_ACTION_LOAD_PATIENT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- ((vehicle _target == _target));
-}, {[_this select 0,_this select 1] call FUNC(actionLoadUnit)},'drag'] call FUNC(addTreatmentOption);
-
-["STR_ACE_ACTION_UNLOAD_PATIENT","STR_ACE_ACTION_UNLOAD_PATIENT_TOOLTIP",{
- _caller = _this select 0;
- _target = _this select 1;
-
- ((vehicle _target != _target));
-}, {[_this select 0,_this select 1] call FUNC(actionUnloadUnit)},'drag'] call FUNC(addTreatmentOption);
diff --git a/addons/medical/XEH_preInit.sqf b/addons/medical/XEH_preInit.sqf
index 331edd5b21..a1a096ac91 100644
--- a/addons/medical/XEH_preInit.sqf
+++ b/addons/medical/XEH_preInit.sqf
@@ -1,169 +1,10 @@
-/**
- * XEH_preInit);
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
#include "script_component.hpp"
-PREP(actionCarryUnit);
-PREP(ActioncheckBloodPressure);
-PREP(ActionCheckBloodPressureLocal);
-PREP(ActionCheckPulse);
-PREP(actionCheckPulseLocal);
-PREP(actionCheckResponse);
-PREP(actionDragUnit);
-PREP(actionDropUnit);
-PREP(actionLoadUnit);
-PREP(actionPlaceInBodyBag);
-PREP(actionRemoveTourniquet);
-PREP(actionUnloadUnit);
+ADDON = false;
-PREP(addActivityToLog);
-PREP(addHeartRateAdjustment);
-PREP(addOpenWounds);
-PREP(addToInjuredCollection);
-PREP(addToQuickViewLog);
-PREP(addToTriageList);
-PREP(addTreatmentOption);
-
-PREP(canAccessMedicalEquipment);
-PREP(canPutInBodyBag);
-PREP(determineIfFatal);
-PREP(determineIfUnconscious);
-PREP(fromNumberToBodyPart);
-
-PREP(effectPain);
-PREP(effectBleeding);
-PREP(effectBlackOut);
-
-PREP(getActivityLog);
-PREP(getBloodLoss);
-PREP(getBloodPressure);
-PREP(getBloodVolumeChange);
-PREP(getBodyPartNumber);
-PREP(getCardiacOutput);
-PREP(getCurrentSelectedInjuryData);
-PREP(getHeartRateChange);
-PREP(getNewDamageBodyPart);
-PREP(getQuickViewLog);
-PREP(getSelectedBodyPart);
-PREP(getTreatmentOptions);
-PREP(getTriageList);
-PREP(getTriageStatus);
-PREP(getTypeOfDamage);
-
-// Handling events & actions
-PREP(handleBandageOpening);
PREP(handleDamage);
-PREP(handleDisplayEffects);
-PREP(handleHeal);
-PREP(handleReactionHit);
-PREP(handleTreatment);
-PREP(handleTreatment_Action_AdvancedLocal);
-PREP(handleTreatment_Action_AirwayLocal);
-PREP(handleTreatment_Action_BandageLocal);
-PREP(handleTreatment_Action_CPR);
-PREP(handleTreatment_Action_CPRLocal);
-PREP(handleTreatment_Action_fullHeal);
-PREP(handleTreatment_Action_fullHealLocal);
-PREP(handleTreatment_Action_MedicationLocal);
-PREP(handleTreatment_Action_Stitching);
-PREP(handleTreatment_Action_tourniquet);
-PREP(handleTreatment_Action_tourniquetLocal);
-PREP(handleTreatment_Category_Advanced);
-PREP(handleTreatment_Category_Airway);
-PREP(handleTreatment_Category_Bandaging);
-PREP(handleTreatment_Category_Medication);
-PREP(handleUI_DisplayOptions);
-PREP(handleUI_dropDownTriageCard);
-PREP(handleUnitVitals);
-PREP(handleDropUnit);
-
-PREP(hasEquipment);
-PREP(hasMedicalEnabled);
-PREP(hasOpenWounds);
-PREP(hasTourniquetAppliedTo);
-
-PREP(increasePain);
-PREP(initalizeModuleCMS);
-PREP(inMedicalFacility);
-PREP(isMedic);
-PREP(isMedicalVehicle);
-PREP(isSetTreatmentMutex);
-PREP(isMovingUnit);
-
-PREP(moduleAssignMedicalEquipment);
-PREP(moduleAssignMedicalFacility);
-PREP(moduleAssignMedicalVehicle);
-PREP(moduleAssignMedicRoles);
-PREP(moduleDamageSettings);
-
-PREP(onInitForUnit);
-PREP(onInjury_assignAirwayStatus);
-PREP(onInjury_assignFractures);
-PREP(onInjury_assignOpenWounds);
-PREP(onKilled);
-PREP(onLocal);
-PREP(onMenuOpen);
-PREP(onTreatmentCompleted);
-PREP(onUnconscious);
-PREP(onStartMovingUnit);
-PREP(onCarryObjectDropped);
-PREP(onDamage);
-
-PREP(openMenu);
-PREP(playInjuredSound);
-PREP(setCardiacArrest);
-PREP(setDamageBodyPart);
-PREP(setDead);
-PREP(setMedicRole);
-PREP(setTriageStatus);
-PREP(treatmentMutex);
-
-PREP(updateActivityLog);
-PREP(updateBodyImg);
-PREP(updateIcons);
-PREP(updateUIInfo);
-
-PREP(useEquipment);
-PREP(cacheHandledamageCall);
-PREP(checkDamage);
-
-
-PREP(setUnconsciousState);
-PREP(isUnconscious);
-PREP(getUnconsciousCondition);
-PREP(registerUnconsciousCondition);
-PREP(cleanUpCopyOfBody_F);
-PREP(makeCopyOfBody_F);
-PREP(canGoUnconsciousState);
-PREP(setDead);
-PREP(moduleBasicRevive);
-
-PREP(setWeaponsCorrectUnconscious);
-PREP(setCaptiveSwitch);
-
-
-// initalize all module parameters.
-GVAR(setting_allowInstantDead) = true;
-GVAR(setting_AdvancedLevel) = 0;
-GVAR(setting_advancedWoundsSetting) = false;
-GVAR(setting_advancedMedicRoles) = false;
-GVAR(setting_medicalDifficulty) = 1;
-GVAR(setting_enableBandagingAid) = true;
-GVAR(setting_allowAIFullHeal) = false;
-GVAR(setting_enableForUnits) = 1;
-GVAR(setting_allowAirwayInjuries) = false;
-GVAR(setting_aidKitRestrictions) = 0;
-GVAR(setting_removeAidKitOnUse) = true;
-GVAR(setting_aidKitMedicsOnly) = false;
-GVAR(setting_bandageWaitingTime) = 5;
-GVAR(setting_allowVehicleCrashInjuries) = true;
-GVAR(setting_allowStitching) = 0;
+PREP(handleDamage_advanced);
+PREP(handleDamage_basic);
+PREP(handleDamage_medium);
ADDON = true;
diff --git a/addons/medical/config.cpp b/addons/medical/config.cpp
index 96af8ac1ca..e0d4f41f1b 100644
--- a/addons/medical/config.cpp
+++ b/addons/medical/config.cpp
@@ -1,31 +1,15 @@
#include "script_component.hpp"
-class CfgPatches
-{
- class ADDON
- {
- units[] = {"ACE_medical_supply_crate_cms", "ACE_bandage_basicItem","ACE_packing_bandageItem","ACE_bandageElasticItem","ACE_tourniquetItem","ACE_splintItem","ACE_morphineItem","ACE_atropineItem","ACE_epinephrineItem","ACE_plasma_ivItem","ACE_plasma_iv_500Item","ACE_plasma_iv250Item","ACE_blood_ivItem","ACE_blood_iv_500Item","ACE_blood_iv_250Item","ACE_saline_ivItem","ACE_saline_iv_500Item","ACE_saline_iv_250Item","ACE_quikclotItem","ACE_nasopharyngeal_tubeItem","ACE_opaItem","ACE_liquidSkinItem","ACE_chestsealItem","ACE_personal_aid_kitItem"};
- weapons[] = {"ACE_surgical_kit"};
- requiredVersion = REQUIRED_VERSION;
- requiredAddons[] = {"ACE_gui","ACE_common"};
- version = VERSION;
- author[] = {$STR_ACE_Common_ACETeam, "Glowbal"};
- authorUrl = "http://csemod.com";
- };
-};
-class CfgAddons {
- class PreloadAddons {
- class ADDON {
- list[] = {QUOTE(ADDON)};
- };
+class CfgPatches {
+ class ADDON {
+ units[] = {};
+ weapons[] = {};
+ requiredVersion = REQUIRED_VERSION;
+ requiredAddons[] = {ace_common, ace_interaction};
+ author[] = {""};
+ authorUrl = "";
+ VERSION_CONFIG;
};
};
#include "CfgEventHandlers.hpp"
-#include "CfgFactionClasses.hpp"
-#include "CfgWeapons.hpp"
-#include "CfgSounds.hpp"
-#include "CfgVehicles.hpp"
-#include "ui\define.hpp"
-#include "ui\menu.hpp"
-#include "ui\RscTitles.hpp"
diff --git a/addons/medical/data/ACE_medical_module.paa b/addons/medical/data/ACE_medical_module.paa
deleted file mode 100644
index 9cb6c4782d..0000000000
Binary files a/addons/medical/data/ACE_medical_module.paa and /dev/null differ
diff --git a/addons/medical/data/background_img.paa b/addons/medical/data/background_img.paa
deleted file mode 100644
index de59065e3b..0000000000
Binary files a/addons/medical/data/background_img.paa and /dev/null differ
diff --git a/addons/medical/data/black_out.paa b/addons/medical/data/black_out.paa
deleted file mode 100644
index c50a106954..0000000000
Binary files a/addons/medical/data/black_out.paa and /dev/null differ
diff --git a/addons/medical/data/bleeding.paa b/addons/medical/data/bleeding.paa
deleted file mode 100644
index 2e88e1cf3d..0000000000
Binary files a/addons/medical/data/bleeding.paa and /dev/null differ
diff --git a/addons/medical/data/body_arm_left.paa b/addons/medical/data/body_arm_left.paa
deleted file mode 100644
index 245cc4ba31..0000000000
Binary files a/addons/medical/data/body_arm_left.paa and /dev/null differ
diff --git a/addons/medical/data/body_arm_right.paa b/addons/medical/data/body_arm_right.paa
deleted file mode 100644
index 2023d1e0b4..0000000000
Binary files a/addons/medical/data/body_arm_right.paa and /dev/null differ
diff --git a/addons/medical/data/body_arms.paa b/addons/medical/data/body_arms.paa
deleted file mode 100644
index b4b272f73d..0000000000
Binary files a/addons/medical/data/body_arms.paa and /dev/null differ
diff --git a/addons/medical/data/body_background.paa b/addons/medical/data/body_background.paa
deleted file mode 100644
index d3f7440e68..0000000000
Binary files a/addons/medical/data/body_background.paa and /dev/null differ
diff --git a/addons/medical/data/body_head.paa b/addons/medical/data/body_head.paa
deleted file mode 100644
index 77ddd995bc..0000000000
Binary files a/addons/medical/data/body_head.paa and /dev/null differ
diff --git a/addons/medical/data/body_img-arms.paa b/addons/medical/data/body_img-arms.paa
deleted file mode 100644
index f469a59359..0000000000
Binary files a/addons/medical/data/body_img-arms.paa and /dev/null differ
diff --git a/addons/medical/data/body_img-head.paa b/addons/medical/data/body_img-head.paa
deleted file mode 100644
index 2f7d15e1ca..0000000000
Binary files a/addons/medical/data/body_img-head.paa and /dev/null differ
diff --git a/addons/medical/data/body_img-legs.paa b/addons/medical/data/body_img-legs.paa
deleted file mode 100644
index 35f68d8635..0000000000
Binary files a/addons/medical/data/body_img-legs.paa and /dev/null differ
diff --git a/addons/medical/data/body_img-torso.paa b/addons/medical/data/body_img-torso.paa
deleted file mode 100644
index cc5ecb9d60..0000000000
Binary files a/addons/medical/data/body_img-torso.paa and /dev/null differ
diff --git a/addons/medical/data/body_leg_left.paa b/addons/medical/data/body_leg_left.paa
deleted file mode 100644
index a116305258..0000000000
Binary files a/addons/medical/data/body_leg_left.paa and /dev/null differ
diff --git a/addons/medical/data/body_leg_right.paa b/addons/medical/data/body_leg_right.paa
deleted file mode 100644
index 02ce66ba70..0000000000
Binary files a/addons/medical/data/body_leg_right.paa and /dev/null differ
diff --git a/addons/medical/data/body_legs.paa b/addons/medical/data/body_legs.paa
deleted file mode 100644
index 9af3adc2ca..0000000000
Binary files a/addons/medical/data/body_legs.paa and /dev/null differ
diff --git a/addons/medical/data/body_torso.paa b/addons/medical/data/body_torso.paa
deleted file mode 100644
index 0a7212ac95..0000000000
Binary files a/addons/medical/data/body_torso.paa and /dev/null differ
diff --git a/addons/medical/data/border_arm_left.paa b/addons/medical/data/border_arm_left.paa
deleted file mode 100644
index eae1d751cf..0000000000
Binary files a/addons/medical/data/border_arm_left.paa and /dev/null differ
diff --git a/addons/medical/data/border_arm_right.paa b/addons/medical/data/border_arm_right.paa
deleted file mode 100644
index 0aea4ce20e..0000000000
Binary files a/addons/medical/data/border_arm_right.paa and /dev/null differ
diff --git a/addons/medical/data/border_head.paa b/addons/medical/data/border_head.paa
deleted file mode 100644
index 3b2e7aaf10..0000000000
Binary files a/addons/medical/data/border_head.paa and /dev/null differ
diff --git a/addons/medical/data/border_leg_left.paa b/addons/medical/data/border_leg_left.paa
deleted file mode 100644
index 7ff3b170fa..0000000000
Binary files a/addons/medical/data/border_leg_left.paa and /dev/null differ
diff --git a/addons/medical/data/border_leg_right.paa b/addons/medical/data/border_leg_right.paa
deleted file mode 100644
index bef0f70779..0000000000
Binary files a/addons/medical/data/border_leg_right.paa and /dev/null differ
diff --git a/addons/medical/data/border_torso.paa b/addons/medical/data/border_torso.paa
deleted file mode 100644
index 2b70076939..0000000000
Binary files a/addons/medical/data/border_torso.paa and /dev/null differ
diff --git a/addons/medical/data/buttonDisabled_gradient.paa b/addons/medical/data/buttonDisabled_gradient.paa
deleted file mode 100644
index 43b1b8d100..0000000000
Binary files a/addons/medical/data/buttonDisabled_gradient.paa and /dev/null differ
diff --git a/addons/medical/data/buttonNormal_gradient.paa b/addons/medical/data/buttonNormal_gradient.paa
deleted file mode 100644
index 2210f98741..0000000000
Binary files a/addons/medical/data/buttonNormal_gradient.paa and /dev/null differ
diff --git a/addons/medical/data/buttonNormal_gradient2.paa b/addons/medical/data/buttonNormal_gradient2.paa
deleted file mode 100644
index cabe6c7fed..0000000000
Binary files a/addons/medical/data/buttonNormal_gradient2.paa and /dev/null differ
diff --git a/addons/medical/data/buttonNormal_gradient3.paa b/addons/medical/data/buttonNormal_gradient3.paa
deleted file mode 100644
index 7da9fbcf8a..0000000000
Binary files a/addons/medical/data/buttonNormal_gradient3.paa and /dev/null differ
diff --git a/addons/medical/data/buttonNormal_gradient_top.paa b/addons/medical/data/buttonNormal_gradient_top.paa
deleted file mode 100644
index 904e1a62f7..0000000000
Binary files a/addons/medical/data/buttonNormal_gradient_top.paa and /dev/null differ
diff --git a/addons/medical/data/hit.paa b/addons/medical/data/hit.paa
deleted file mode 100644
index e878efff0b..0000000000
Binary files a/addons/medical/data/hit.paa and /dev/null differ
diff --git a/addons/medical/data/icons/advanced_treatment_small.paa b/addons/medical/data/icons/advanced_treatment_small.paa
deleted file mode 100644
index 8becb9d2df..0000000000
Binary files a/addons/medical/data/icons/advanced_treatment_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/airway_management_small.paa b/addons/medical/data/icons/airway_management_small.paa
deleted file mode 100644
index ab4da47958..0000000000
Binary files a/addons/medical/data/icons/airway_management_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/bandage_fracture_small.paa b/addons/medical/data/icons/bandage_fracture_small.paa
deleted file mode 100644
index a869f260ec..0000000000
Binary files a/addons/medical/data/icons/bandage_fracture_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/examine_patient_small.paa b/addons/medical/data/icons/examine_patient_small.paa
deleted file mode 100644
index 2e9fc9831d..0000000000
Binary files a/addons/medical/data/icons/examine_patient_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_advanced_treatment.paa b/addons/medical/data/icons/icon_advanced_treatment.paa
deleted file mode 100644
index d6bf6effd9..0000000000
Binary files a/addons/medical/data/icons/icon_advanced_treatment.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_airway_management.paa b/addons/medical/data/icons/icon_airway_management.paa
deleted file mode 100644
index f444f5f385..0000000000
Binary files a/addons/medical/data/icons/icon_airway_management.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_bandage_fracture.paa b/addons/medical/data/icons/icon_bandage_fracture.paa
deleted file mode 100644
index df8d1de571..0000000000
Binary files a/addons/medical/data/icons/icon_bandage_fracture.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_bleeding.paa b/addons/medical/data/icons/icon_bleeding.paa
deleted file mode 100644
index d11c2ed496..0000000000
Binary files a/addons/medical/data/icons/icon_bleeding.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_carry.paa b/addons/medical/data/icons/icon_carry.paa
deleted file mode 100644
index 7ebb830b03..0000000000
Binary files a/addons/medical/data/icons/icon_carry.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_examine_patient.paa b/addons/medical/data/icons/icon_examine_patient.paa
deleted file mode 100644
index 12eb06c890..0000000000
Binary files a/addons/medical/data/icons/icon_examine_patient.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_medication.paa b/addons/medical/data/icons/icon_medication.paa
deleted file mode 100644
index 98893ad863..0000000000
Binary files a/addons/medical/data/icons/icon_medication.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_toggle_self.paa b/addons/medical/data/icons/icon_toggle_self.paa
deleted file mode 100644
index 3078eb5dd5..0000000000
Binary files a/addons/medical/data/icons/icon_toggle_self.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_tourniquet.paa b/addons/medical/data/icons/icon_tourniquet.paa
deleted file mode 100644
index 8b34a7bfbb..0000000000
Binary files a/addons/medical/data/icons/icon_tourniquet.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_tourniquet_small.paa b/addons/medical/data/icons/icon_tourniquet_small.paa
deleted file mode 100644
index a457e2c0d5..0000000000
Binary files a/addons/medical/data/icons/icon_tourniquet_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/icon_triage_card.paa b/addons/medical/data/icons/icon_triage_card.paa
deleted file mode 100644
index 850ab0f4ce..0000000000
Binary files a/addons/medical/data/icons/icon_triage_card.paa and /dev/null differ
diff --git a/addons/medical/data/icons/medication_small.paa b/addons/medical/data/icons/medication_small.paa
deleted file mode 100644
index b6acd670c8..0000000000
Binary files a/addons/medical/data/icons/medication_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/toggle_self_small.paa b/addons/medical/data/icons/toggle_self_small.paa
deleted file mode 100644
index 73108e5a98..0000000000
Binary files a/addons/medical/data/icons/toggle_self_small.paa and /dev/null differ
diff --git a/addons/medical/data/icons/triage_card_small.paa b/addons/medical/data/icons/triage_card_small.paa
deleted file mode 100644
index 92eb0f0d20..0000000000
Binary files a/addons/medical/data/icons/triage_card_small.paa and /dev/null differ
diff --git a/addons/medical/data/painScreen.paa b/addons/medical/data/painScreen.paa
deleted file mode 100644
index f629d66280..0000000000
Binary files a/addons/medical/data/painScreen.paa and /dev/null differ
diff --git a/addons/medical/data/ui_background.paa b/addons/medical/data/ui_background.paa
deleted file mode 100644
index f1c42c7d7d..0000000000
Binary files a/addons/medical/data/ui_background.paa and /dev/null differ
diff --git a/addons/medical/equipment/Atropin-pen.p3d b/addons/medical/equipment/Atropin-pen.p3d
deleted file mode 100644
index a34d11641a..0000000000
Binary files a/addons/medical/equipment/Atropin-pen.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Atropin-pen_used.p3d b/addons/medical/equipment/Atropin-pen_used.p3d
deleted file mode 100644
index 85c123f9af..0000000000
Binary files a/addons/medical/equipment/Atropin-pen_used.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Bandage elastic.p3d b/addons/medical/equipment/Bandage elastic.p3d
deleted file mode 100644
index c215842967..0000000000
Binary files a/addons/medical/equipment/Bandage elastic.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Bandage-Pack.p3d b/addons/medical/equipment/Bandage-Pack.p3d
deleted file mode 100644
index 441af289c9..0000000000
Binary files a/addons/medical/equipment/Bandage-Pack.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Bandage-elastic.p3d b/addons/medical/equipment/Bandage-elastic.p3d
deleted file mode 100644
index c5a84c09f6..0000000000
Binary files a/addons/medical/equipment/Bandage-elastic.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Epipen.p3d b/addons/medical/equipment/Epipen.p3d
deleted file mode 100644
index 8a1b0e5e35..0000000000
Binary files a/addons/medical/equipment/Epipen.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Epipen_used.p3d b/addons/medical/equipment/Epipen_used.p3d
deleted file mode 100644
index af1294b0e2..0000000000
Binary files a/addons/medical/equipment/Epipen_used.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Morphinpen.p3d b/addons/medical/equipment/Morphinpen.p3d
deleted file mode 100644
index 06a39e7d56..0000000000
Binary files a/addons/medical/equipment/Morphinpen.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Morphinpen_used.p3d b/addons/medical/equipment/Morphinpen_used.p3d
deleted file mode 100644
index 6e6bf06119..0000000000
Binary files a/addons/medical/equipment/Morphinpen_used.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Personal-aidkits/MTP.p3d b/addons/medical/equipment/Personal-aidkits/MTP.p3d
deleted file mode 100644
index f2313e9652..0000000000
Binary files a/addons/medical/equipment/Personal-aidkits/MTP.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Personal-aidkits/data/MTP_co.paa b/addons/medical/equipment/Personal-aidkits/data/MTP_co.paa
deleted file mode 100644
index 660ebe3477..0000000000
Binary files a/addons/medical/equipment/Personal-aidkits/data/MTP_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/Personal-aidkits/data/Mulitcam.paa b/addons/medical/equipment/Personal-aidkits/data/Mulitcam.paa
deleted file mode 100644
index 3e55892c84..0000000000
Binary files a/addons/medical/equipment/Personal-aidkits/data/Mulitcam.paa and /dev/null differ
diff --git a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit.rvmat b/addons/medical/equipment/Personal-aidkits/data/Personalaidkit.rvmat
deleted file mode 100644
index a071c22c19..0000000000
--- a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit.rvmat
+++ /dev/null
@@ -1,32 +0,0 @@
-ambient[]={1,1,1,1};
-diffuse[]={0.5,0.5,0.5,1};
-forcedDiffuse[]={0.5,0.5,0.5,0};
-emmisive[]={0,0,0,1};
-specular[]={0.30000001,0.30000001,0.30000001,0};
-specularPower=100;
-PixelShaderID="NormalMapSpecularDIMap";
-VertexShaderID="NormalMap";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\Personal-aidkits\data\Personalaidkit_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
-class Stage2
-{
- texture="z\ace\addons\medical\equipment\Personal-aidkits\data\Personalaidkit_smdi.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
diff --git a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_nohq.paa b/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_nohq.paa
deleted file mode 100644
index 0d03b45372..0000000000
Binary files a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_smdi.paa b/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_smdi.paa
deleted file mode 100644
index 2fb8bec533..0000000000
Binary files a/addons/medical/equipment/Personal-aidkits/data/Personalaidkit_smdi.paa and /dev/null differ
diff --git a/addons/medical/equipment/QuickClot.p3d b/addons/medical/equipment/QuickClot.p3d
deleted file mode 100644
index aa431372bb..0000000000
Binary files a/addons/medical/equipment/QuickClot.p3d and /dev/null differ
diff --git a/addons/medical/equipment/Tourniquet.p3d b/addons/medical/equipment/Tourniquet.p3d
deleted file mode 100644
index 300a74c166..0000000000
Binary files a/addons/medical/equipment/Tourniquet.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bandages/fielddressing.p3d b/addons/medical/equipment/bandages/fielddressing.p3d
deleted file mode 100644
index 6b7f94ef9b..0000000000
Binary files a/addons/medical/equipment/bandages/fielddressing.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bandages/fielddressing.rvmat b/addons/medical/equipment/bandages/fielddressing.rvmat
deleted file mode 100644
index 7eda45da4f..0000000000
--- a/addons/medical/equipment/bandages/fielddressing.rvmat
+++ /dev/null
@@ -1,32 +0,0 @@
-ambient[]={1,1,1,1};
-diffuse[]={0.5,0.5,0.5,1};
-forcedDiffuse[]={0.5,0.5,0.5,0};
-emmisive[]={0,0,0,1};
-specular[]={0.30000001,0.30000001,0.30000001,0};
-specularPower=57.799999;
-PixelShaderID="NormalMapSpecularDIMap";
-VertexShaderID="NormalMap";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\bandages\fielddressing_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
-class Stage2
-{
- texture="z\ace\addons\medical\equipment\bandages\fielddressing_smdi.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
diff --git a/addons/medical/equipment/bandages/fielddressing_color.paa b/addons/medical/equipment/bandages/fielddressing_color.paa
deleted file mode 100644
index 7d68a365c2..0000000000
Binary files a/addons/medical/equipment/bandages/fielddressing_color.paa and /dev/null differ
diff --git a/addons/medical/equipment/bandages/fielddressing_garbage.p3d b/addons/medical/equipment/bandages/fielddressing_garbage.p3d
deleted file mode 100644
index 0939de5c08..0000000000
Binary files a/addons/medical/equipment/bandages/fielddressing_garbage.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bandages/fielddressing_nohq.paa b/addons/medical/equipment/bandages/fielddressing_nohq.paa
deleted file mode 100644
index c66785cf13..0000000000
Binary files a/addons/medical/equipment/bandages/fielddressing_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/bandages/fielddressing_smdi.paa b/addons/medical/equipment/bandages/fielddressing_smdi.paa
deleted file mode 100644
index 96376989f7..0000000000
Binary files a/addons/medical/equipment/bandages/fielddressing_smdi.paa and /dev/null differ
diff --git a/addons/medical/equipment/bandages/packingbandage.p3d b/addons/medical/equipment/bandages/packingbandage.p3d
deleted file mode 100644
index c1cc09af35..0000000000
Binary files a/addons/medical/equipment/bandages/packingbandage.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bandages/packingbandage.rvmat b/addons/medical/equipment/bandages/packingbandage.rvmat
deleted file mode 100644
index 3d65ab3b93..0000000000
--- a/addons/medical/equipment/bandages/packingbandage.rvmat
+++ /dev/null
@@ -1,32 +0,0 @@
-ambient[]={1,1,1,1};
-diffuse[]={0.5,0.5,0.5,1};
-forcedDiffuse[]={0.5,0.5,0.5,0};
-emmisive[]={0,0,0,1};
-specular[]={0.30000001,0.30000001,0.30000001,0};
-specularPower=57.799999;
-PixelShaderID="NormalMapSpecularDIMap";
-VertexShaderID="NormalMap";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\bandages\packingbandage_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
-class Stage2
-{
- texture="z\ace\addons\medical\equipment\bandages\packingbandage_smdi.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
diff --git a/addons/medical/equipment/bandages/packingbandage_color.paa b/addons/medical/equipment/bandages/packingbandage_color.paa
deleted file mode 100644
index 54b1f75e2e..0000000000
Binary files a/addons/medical/equipment/bandages/packingbandage_color.paa and /dev/null differ
diff --git a/addons/medical/equipment/bandages/packingbandage_garbage.p3d b/addons/medical/equipment/bandages/packingbandage_garbage.p3d
deleted file mode 100644
index cb695caac6..0000000000
Binary files a/addons/medical/equipment/bandages/packingbandage_garbage.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bandages/packingbandage_nohq.paa b/addons/medical/equipment/bandages/packingbandage_nohq.paa
deleted file mode 100644
index 1b3782c501..0000000000
Binary files a/addons/medical/equipment/bandages/packingbandage_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/bandages/packingbandage_smdi.paa b/addons/medical/equipment/bandages/packingbandage_smdi.paa
deleted file mode 100644
index 8d5b3848ac..0000000000
Binary files a/addons/medical/equipment/bandages/packingbandage_smdi.paa and /dev/null differ
diff --git a/addons/medical/equipment/bodybag.p3d b/addons/medical/equipment/bodybag.p3d
deleted file mode 100644
index 4a6b6e85ab..0000000000
Binary files a/addons/medical/equipment/bodybag.p3d and /dev/null differ
diff --git a/addons/medical/equipment/bodybagItem.p3d b/addons/medical/equipment/bodybagItem.p3d
deleted file mode 100644
index 11168bf776..0000000000
Binary files a/addons/medical/equipment/bodybagItem.p3d and /dev/null differ
diff --git a/addons/medical/equipment/data/Atropinpen_co.paa b/addons/medical/equipment/data/Atropinpen_co.paa
deleted file mode 100644
index 3e44836bee..0000000000
Binary files a/addons/medical/equipment/data/Atropinpen_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Epipen_co.paa b/addons/medical/equipment/data/Epipen_co.paa
deleted file mode 100644
index 2a1afe1f33..0000000000
Binary files a/addons/medical/equipment/data/Epipen_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Field-Dressing.rvmat b/addons/medical/equipment/data/Field-Dressing.rvmat
deleted file mode 100644
index 9c43af9abf..0000000000
--- a/addons/medical/equipment/data/Field-Dressing.rvmat
+++ /dev/null
@@ -1,32 +0,0 @@
-ambient[]={1,1,1,1};
-diffuse[]={0.5,0.5,0.5,1};
-forcedDiffuse[]={0.5,0.5,0.5,0};
-emmisive[]={0,0,0,1};
-specular[]={0.30000001,0.30000001,0.30000001,0};
-specularPower=57.799999;
-PixelShaderID="NormalMapSpecularDIMap";
-VertexShaderID="NormalMap";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\data\Field-Dressing_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
-class Stage2
-{
- texture="z\ace\addons\medical\equipment\data\Field-Dressing_smdi.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,1};
- pos[]={0,0,0};
- };
-};
diff --git a/addons/medical/equipment/data/Field-Dressing_nohq.paa b/addons/medical/equipment/data/Field-Dressing_nohq.paa
deleted file mode 100644
index 6972636a3d..0000000000
Binary files a/addons/medical/equipment/data/Field-Dressing_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Field-Dressing_smdi.paa b/addons/medical/equipment/data/Field-Dressing_smdi.paa
deleted file mode 100644
index f450605958..0000000000
Binary files a/addons/medical/equipment/data/Field-Dressing_smdi.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Field-dressing.paa b/addons/medical/equipment/data/Field-dressing.paa
deleted file mode 100644
index 07bae7d595..0000000000
Binary files a/addons/medical/equipment/data/Field-dressing.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Liquid-skin.paa b/addons/medical/equipment/data/Liquid-skin.paa
deleted file mode 100644
index fda64304bc..0000000000
Binary files a/addons/medical/equipment/data/Liquid-skin.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/Tournequit_co.paa b/addons/medical/equipment/data/Tournequit_co.paa
deleted file mode 100644
index e83aada994..0000000000
Binary files a/addons/medical/equipment/data/Tournequit_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bandage-elastic.paa b/addons/medical/equipment/data/bandage-elastic.paa
deleted file mode 100644
index 3164b5d4ca..0000000000
Binary files a/addons/medical/equipment/data/bandage-elastic.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bodybag.rvmat b/addons/medical/equipment/data/bodybag.rvmat
deleted file mode 100644
index b0e6c2363c..0000000000
--- a/addons/medical/equipment/data/bodybag.rvmat
+++ /dev/null
@@ -1,92 +0,0 @@
-ambient[]={1.000000,1.000000,1.000000,1.000000};
-diffuse[]={1.000000,1.000000,1.000000,1.000000};
-forcedDiffuse[]={0.000000,0.000000,0.000000,0.000000};
-emmisive[]={0.000000,0.000000,0.000000,1.000000};
-specular[]={0.703999,0.703999,0.703999,0.000000};
-specularPower=70.000000;
-PixelShaderID="Super";
-VertexShaderID="Super";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\data\bodybag_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage2
-{
- texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage3
-{
- texture="#(argb,8,8,3)color(0,0,0,0,MC)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage4
-{
- texture="#(argb,8,8,3)color(1,1,1,1,AS)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage5
-{
- texture="#(argb,8,8,3)color(0,0.05,1,1,SMDI)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage6
-{
- texture="#(ai,32,128,1)fresnel(0.98,1.02)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage7
-{
- texture="z\ace\addons\medical\equipment\data\env_co.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
diff --git a/addons/medical/equipment/data/bodybagItem.rvmat b/addons/medical/equipment/data/bodybagItem.rvmat
deleted file mode 100644
index c72890391b..0000000000
--- a/addons/medical/equipment/data/bodybagItem.rvmat
+++ /dev/null
@@ -1,32 +0,0 @@
-ambient[]={1.000000,1.000000,1.000000,1.000000};
-diffuse[]={1.000000,1.000000,1.000000,1.000000};
-forcedDiffuse[]={0.000000,0.000000,0.000000,0.000000};
-emmisive[]={0.000000,0.000000,0.000000,1.000000};
-specular[]={1.000000,1.000000,1.000000,1.000000};
-specularPower=20.000000;
-PixelShaderID="NormalMapSpecularDIMap";
-VertexShaderID="NormalMap";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\data\bodybagItem_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
-class Stage2
-{
- texture="z\ace\addons\medical\equipment\data\bodybagItem_smdi.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1.000000,0.000000,0.000000};
- up[]={0.000000,1.000000,0.000000};
- dir[]={0.000000,0.000000,0.000000};
- pos[]={0.000000,0.000000,0.000000};
- };
-};
diff --git a/addons/medical/equipment/data/bodybagItem_co.paa b/addons/medical/equipment/data/bodybagItem_co.paa
deleted file mode 100644
index d04f8ec64c..0000000000
Binary files a/addons/medical/equipment/data/bodybagItem_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bodybagItem_nohq.paa b/addons/medical/equipment/data/bodybagItem_nohq.paa
deleted file mode 100644
index 5699ec5e04..0000000000
Binary files a/addons/medical/equipment/data/bodybagItem_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bodybagItem_smdi.paa b/addons/medical/equipment/data/bodybagItem_smdi.paa
deleted file mode 100644
index cf4cf805e3..0000000000
Binary files a/addons/medical/equipment/data/bodybagItem_smdi.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bodybag_co.paa b/addons/medical/equipment/data/bodybag_co.paa
deleted file mode 100644
index 21996761b7..0000000000
Binary files a/addons/medical/equipment/data/bodybag_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/bodybag_nohq.paa b/addons/medical/equipment/data/bodybag_nohq.paa
deleted file mode 100644
index 5c6b35c595..0000000000
Binary files a/addons/medical/equipment/data/bodybag_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/env_co.paa b/addons/medical/equipment/data/env_co.paa
deleted file mode 100644
index 77645347b5..0000000000
Binary files a/addons/medical/equipment/data/env_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/morphin_co.paa b/addons/medical/equipment/data/morphin_co.paa
deleted file mode 100644
index 8d91fd0e10..0000000000
Binary files a/addons/medical/equipment/data/morphin_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/quickclot_co.paa b/addons/medical/equipment/data/quickclot_co.paa
deleted file mode 100644
index bf0edccd7e..0000000000
Binary files a/addons/medical/equipment/data/quickclot_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/surgical_kit.rvmat b/addons/medical/equipment/data/surgical_kit.rvmat
deleted file mode 100644
index 3f0deac2fa..0000000000
--- a/addons/medical/equipment/data/surgical_kit.rvmat
+++ /dev/null
@@ -1,92 +0,0 @@
-ambient[]={1,1,1,1};
-diffuse[]={1,1,1,1};
-forcedDiffuse[]={0,0,0,0};
-emmisive[]={0,0,0,1};
-specular[]={0.70399898,0.70399898,0.70399898,0};
-specularPower=70;
-PixelShaderID="Super";
-VertexShaderID="Super";
-class Stage1
-{
- texture="z\ace\addons\medical\equipment\data\surgical_kit_nohq.paa";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage2
-{
- texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage3
-{
- texture="#(argb,8,8,3)color(0,0,0,0,MC)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage4
-{
- texture="#(argb,8,8,3)color(1,1,1,1,AS)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage5
-{
- texture="#(argb,8,8,3)color(0,0.05,1,1,SMDI)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage6
-{
- texture="#(ai,32,128,1)fresnel(0.98,1.02)";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
-class Stage7
-{
- texture="z\ace\addons\medical\equipment\data\env_co.tga";
- uvSource="tex";
- class uvTransform
- {
- aside[]={1,0,0};
- up[]={0,1,0};
- dir[]={0,0,0};
- pos[]={0,0,0};
- };
-};
diff --git a/addons/medical/equipment/data/surgical_kit_co.paa b/addons/medical/equipment/data/surgical_kit_co.paa
deleted file mode 100644
index 3e622afe48..0000000000
Binary files a/addons/medical/equipment/data/surgical_kit_co.paa and /dev/null differ
diff --git a/addons/medical/equipment/data/surgical_kit_metal.rvmat b/addons/medical/equipment/data/surgical_kit_metal.rvmat
deleted file mode 100644
index 65192a777f..0000000000
--- a/addons/medical/equipment/data/surgical_kit_metal.rvmat
+++ /dev/null
@@ -1,22 +0,0 @@
-ambient[]={1,1,1,0};
-diffuse[]={1,1,1,0};
-forcedDiffuse[]={0,0,0,0};
-emmisive[]={0,0,0,0};
-specular[]={0.5,0.5,0.5,0};
-specularPower=11.6;
-renderFlags[]=
-{
- "NoAlphaWrite"
-};
-PixelShaderID="Glass";
-VertexShaderID="Glass";
-class Stage1
-{
- texture="#(argb,8,8,3)color(1,1,1,0.9)";
- uvSource="none";
-};
-class Stage2
-{
- texture="a3\data_f\env_chrome_co.paa";
- uvSource="none";
-};
diff --git a/addons/medical/equipment/data/surgical_kit_nohq.paa b/addons/medical/equipment/data/surgical_kit_nohq.paa
deleted file mode 100644
index b8027515bc..0000000000
Binary files a/addons/medical/equipment/data/surgical_kit_nohq.paa and /dev/null differ
diff --git a/addons/medical/equipment/field_dressing.p3d b/addons/medical/equipment/field_dressing.p3d
deleted file mode 100644
index 39b516c6bc..0000000000
Binary files a/addons/medical/equipment/field_dressing.p3d and /dev/null differ
diff --git a/addons/medical/equipment/field_dressing_used.p3d b/addons/medical/equipment/field_dressing_used.p3d
deleted file mode 100644
index a29958cca0..0000000000
Binary files a/addons/medical/equipment/field_dressing_used.p3d and /dev/null differ
diff --git a/addons/medical/equipment/img/atropine.paa b/addons/medical/equipment/img/atropine.paa
deleted file mode 100644
index 49b79e99e5..0000000000
Binary files a/addons/medical/equipment/img/atropine.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/bandageElastic.paa b/addons/medical/equipment/img/bandageElastic.paa
deleted file mode 100644
index bbf7901ceb..0000000000
Binary files a/addons/medical/equipment/img/bandageElastic.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/bloodbag.paa b/addons/medical/equipment/img/bloodbag.paa
deleted file mode 100644
index 489614bf44..0000000000
Binary files a/addons/medical/equipment/img/bloodbag.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/bodybag.paa b/addons/medical/equipment/img/bodybag.paa
deleted file mode 100644
index a3a7257fc3..0000000000
Binary files a/addons/medical/equipment/img/bodybag.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/chestseal.paa b/addons/medical/equipment/img/chestseal.paa
deleted file mode 100644
index be0f4f77bf..0000000000
Binary files a/addons/medical/equipment/img/chestseal.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/epinephrine.paa b/addons/medical/equipment/img/epinephrine.paa
deleted file mode 100644
index d4c556281a..0000000000
Binary files a/addons/medical/equipment/img/epinephrine.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/field_dressing.paa b/addons/medical/equipment/img/field_dressing.paa
deleted file mode 100644
index bfe11f2a07..0000000000
Binary files a/addons/medical/equipment/img/field_dressing.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/liquidSkin.paa b/addons/medical/equipment/img/liquidSkin.paa
deleted file mode 100644
index 40e72038ec..0000000000
Binary files a/addons/medical/equipment/img/liquidSkin.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/morphine.paa b/addons/medical/equipment/img/morphine.paa
deleted file mode 100644
index 16918da53f..0000000000
Binary files a/addons/medical/equipment/img/morphine.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/nasopharyngeal_tube.paa b/addons/medical/equipment/img/nasopharyngeal_tube.paa
deleted file mode 100644
index 6629605519..0000000000
Binary files a/addons/medical/equipment/img/nasopharyngeal_tube.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/packing_bandage.paa b/addons/medical/equipment/img/packing_bandage.paa
deleted file mode 100644
index 5825d17a77..0000000000
Binary files a/addons/medical/equipment/img/packing_bandage.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/personal_aid_kit.paa b/addons/medical/equipment/img/personal_aid_kit.paa
deleted file mode 100644
index 87d6a1612f..0000000000
Binary files a/addons/medical/equipment/img/personal_aid_kit.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/plasma_iv.paa b/addons/medical/equipment/img/plasma_iv.paa
deleted file mode 100644
index 31eb3e34df..0000000000
Binary files a/addons/medical/equipment/img/plasma_iv.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/quickclot.paa b/addons/medical/equipment/img/quickclot.paa
deleted file mode 100644
index 8727b7d1d0..0000000000
Binary files a/addons/medical/equipment/img/quickclot.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/saline_iv.paa b/addons/medical/equipment/img/saline_iv.paa
deleted file mode 100644
index a957e36d7c..0000000000
Binary files a/addons/medical/equipment/img/saline_iv.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/splint.paa b/addons/medical/equipment/img/splint.paa
deleted file mode 100644
index 87c1cb8686..0000000000
Binary files a/addons/medical/equipment/img/splint.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/surgical_kit.paa b/addons/medical/equipment/img/surgical_kit.paa
deleted file mode 100644
index e6b3533a12..0000000000
Binary files a/addons/medical/equipment/img/surgical_kit.paa and /dev/null differ
diff --git a/addons/medical/equipment/img/tourniquet.paa b/addons/medical/equipment/img/tourniquet.paa
deleted file mode 100644
index 1a0dace011..0000000000
Binary files a/addons/medical/equipment/img/tourniquet.paa and /dev/null differ
diff --git a/addons/medical/equipment/skinliquid.p3d b/addons/medical/equipment/skinliquid.p3d
deleted file mode 100644
index b3d761e256..0000000000
Binary files a/addons/medical/equipment/skinliquid.p3d and /dev/null differ
diff --git a/addons/medical/equipment/splint.p3d b/addons/medical/equipment/splint.p3d
deleted file mode 100644
index 42f3ad14b7..0000000000
Binary files a/addons/medical/equipment/splint.p3d and /dev/null differ
diff --git a/addons/medical/equipment/surgical_kit.p3d b/addons/medical/equipment/surgical_kit.p3d
deleted file mode 100644
index 9f616a100f..0000000000
Binary files a/addons/medical/equipment/surgical_kit.p3d and /dev/null differ
diff --git a/addons/medical/functions/fnc_ActionCheckBloodPressureLocal.sqf b/addons/medical/functions/fnc_ActionCheckBloodPressureLocal.sqf
deleted file mode 100644
index 9f645e80ad..0000000000
--- a/addons/medical/functions/fnc_ActionCheckBloodPressureLocal.sqf
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * fn_checkBloodPressureLocal.sqf
- * @Descr: Displays specified units current blood pressure
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller","_unit","_bloodPressure","_bloodPressureHigh","_bloodPressureLow","_title","_content"];
-_caller = _this select 0;
-_unit = _this select 1;
-
-_bloodPressure = [_unit] call FUNC(getBloodPressure);
-if (!alive _unit) then {
- _bloodPressure = [0,0];
-};
-
-_bloodPressureHigh = _bloodPressure select 1;
-_bloodPressureLow = _bloodPressure select 0;
-_output = "";
-_logOutPut = "";
-if ([_caller] call FUNC(isMedic)) then {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_1";
- _logOutPut = format["%1/%2",round(_bloodPressureHigh),round(_bloodPressureLow)];
-} else {
- if (_bloodPressureHigh > 20) then {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_2";
- _logOutPut = "Low";
- if (_bloodPressureHigh > 100) then {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_3";
- _logOutPut = "Normal";
- if (_bloodPressureHigh > 160) then {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_4";
- _logOutPut = "High";
- };
-
- };
- } else {
- if (random(10) > 3) then {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_5";
- _logOutPut = "No Blood Pressure";
- } else {
- _output = "STR_ACE_CHECK_BLOODPRESSURE_OUTPUT_6";
- };
- };
-};
-
-_title = format["STR_ACE_CHECK_BLOODPRESSURE"];
-_content = ["STR_ACE_CHECK_BLOODPRESSURE_CHECKED_MEDIC", _output];
-[_caller, _title, _content, 0,[[_unit] call EFUNC(common,getName), round(_bloodPressureHigh),round(_bloodPressureLow)] ] call EFUNC(gui,sendDisplayInformationTo);
-
-if (_logOutPut != "") then {
- [_unit,"examine",format["%1 checked Blood Pressure: %2",[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToQuickViewLog);
-};
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_ActionCheckPulse.sqf b/addons/medical/functions/fnc_ActionCheckPulse.sqf
deleted file mode 100644
index 52e9158329..0000000000
--- a/addons/medical/functions/fnc_ActionCheckPulse.sqf
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * fn_checkPulse.sqf
- * @Descr: Displays specified units current pulse
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
- #include "script_component.hpp"
-
-private ["_caller","_target","_title","_content"];
-_caller = _this select 0;
-_target = _this select 1;
-
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {};
-[_caller, true] call FUNC(treatmentMutex);
-
-_title = format["STR_ACE_CHECK_PULSE"];
-_content = ["STR_ACE_CHECK_PULSE_CONTENT"];
-[_caller, _title, _content] call EFUNC(gui,sendDisplayInformationTo);
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2 + round(random(1)),
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1))}, // the condition
- {
- private ["_caller","_target"];
- _caller = _this select 0;
- _target = _this select 1;
- [[_caller, _target], QUOTE(FUNC(actionCheckPulseLocal)), _target] call EFUNC(common,execRemoteFnc);
- [_caller,false] call FUNC(treatmentMutex);
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0),false] call FUNC(treatmentMutex);
- }, // on failure
- [_caller, _target] // arguments
-] call EFUNC(gui,loadingBar);
diff --git a/addons/medical/functions/fnc_ActioncheckBloodPressure.sqf b/addons/medical/functions/fnc_ActioncheckBloodPressure.sqf
deleted file mode 100644
index d96ae8b19c..0000000000
--- a/addons/medical/functions/fnc_ActioncheckBloodPressure.sqf
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * fn_checkBloodPressure.sqf
- * @Descr: Displays specified units current blood pressure
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller","_target","_title","_content"];
-_caller = _this select 0;
-_target = _this select 1;
-
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {};
-[_caller, true] call FUNC(treatmentMutex);
-
-_title = format["STR_ACE_CHECK_BLOODPRESSURE"];
-_content = ["STR_ACE_CHECK_BLOODPRESSURE_CONTENT"];
-[_caller, _title, _content] call EFUNC(gui,sendDisplayInformationTo);
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2 + round(random(1)),
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1))}, // the condition
- {
- private ["_caller","_target"];
- _caller = _this select 0;
- _target = _this select 1;
- [_this, QUOTE(FUNC(actionCheckBloodPressureLocal)), _target] call EFUNC(common,execRemoteFnc);
- [_caller,false] call FUNC(treatmentMutex);
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0),false] call FUNC(treatmentMutex);
- }, // on failure
- [_caller, _target] // arguments
-] call EFUNC(gui,loadingBar);
-
diff --git a/addons/medical/functions/fnc_actionCarryUnit.sqf b/addons/medical/functions/fnc_actionCarryUnit.sqf
deleted file mode 100644
index d3cfb35aee..0000000000
--- a/addons/medical/functions/fnc_actionCarryUnit.sqf
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- fnc_carry.sqf
- Usage: makes the calling unit start carrying the specified unit
- Author: Glowbal
-
- Arguments: array [caller (object), target (object)]
- 1: caller (OBJECT), Object of type Man
- 2: target (OBJECT), Object of type Man
- Returns: none
-
- Affects: Caller and target locality
- Executes: spawn
-*/
-
-#include "script_component.hpp"
-
-
-private ["_caller", "_unit", "_positionUnit", "_killOnDrop"];
-_caller = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
-_unit = [_this, 1, objNull, [objNull]] call BIS_fnc_param;
-_killOnDrop = [_this, 2, false, [false]] call BIS_fnc_param;
-
-["FUNC(actionDragUnit) has been called",2] call EFUNC(common,debug);
-
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {};
-[_caller, true] call FUNC(treatmentMutex);
-
-if (!(_unit isKindOf "CaManBase") || !(_caller isKindOf "CaManBase")) exitwith{ [_caller, false] call FUNC(treatmentMutex);};
-if (vehicle _caller != _caller || vehicle _unit != _unit) exitwith { [_caller, false] call FUNC(treatmentMutex);};
-
-if (!([_caller] call EFUNC(common,canInteract)) || {_caller == _unit} || {(([_unit] call EFUNC(common,isAwake)))}) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
-};
-
-if (([_caller] call EFUNC(common,getCarriedObj)) != _unit && !(isNull ([_caller] call EFUNC(common,getCarriedObj))) || {!isNull(_unit getvariable [QGVAR(beingDragged),objNull]) || !isNull(_caller getvariable [QGVAR(dragging),objNull])} || {!isNull(_unit getvariable [QGVAR(beingCarried),objNull]) || !isNull(_caller getvariable [QGVAR(carrying),objNull])}) exitwith {
- [_caller,objNull] call EFUNC(common,carryObj);
- [_caller, false] call FUNC(treatmentMutex);
-};
-_caller action ["WeaponOnBack", _caller];
-_killOnDrop = false;
-if (!alive _unit) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
- [{
- _this call FUNC(actionCarryUnit);
- }, [_caller, ([_unit,_caller] call FUNC(makeCopyOfBody_F)), _killOnDrop], 0.25, 0.25] call EFUNC(common,waitAndExecute);
-};
-
-if !([_caller,_unit] call EFUNC(common,carryObj)) exitwith {
- ["couldn't carry object!"] call EFUNC(common,debug); [_caller,false] call FUNC(treatmentMutex);
-};
-
-if (primaryWeapon _caller == "") then {
- _caller addWeapon "ACE_FakePrimaryWeapon";
-};
-_caller selectWeapon (primaryWeapon _caller);
-
-_unit attachTo [_caller, [0.1, -0.1, -1.25], "LeftShoulder"];
-
-[_unit,"AinjPfalMstpSnonWnonDf_carried_dead", 2, true] call EFUNC(common,doAnimation);
-[_caller,"acinpercmstpsraswrfldnon", 1] call EFUNC(common,doAnimation);
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2,
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1.5))}, // the condition
- {
- private ["_caller","_target"];
- _caller = _this select 0;
- _target = _this select 1;
- _killOnDrop = _this select 2;
- [_caller, false] call FUNC(treatmentMutex);
-
- // Registration for drag/carry functions
- _target setvariable [QGVAR(beingCarried),_caller,true];
- _caller setvariable [QGVAR(carrying),_unit,true];
-
- // Removing any old drop scroll wheel actions
- // TODO Do we still want scroll wheel actions?
- if (!isnil QGVAR(DROP_ADDACTION)) then {
- _caller removeAction GVAR(DROP_ADDACTION);
- GVAR(DROP_ADDACTION) = nil;
- };
- // Adding the drop scroll wheel action.
- GVAR(DROP_ADDACTION) = _caller addAction [format["Drop %1",[_target] call EFUNC(common,getName)], {[_this select 1, _this select 2] call FUNC(actionDropUnit);}];
-
- // Raise an event
- ["onStartMovingUnit", [_caller], [_caller, _Target, _killOnDrop, false]] call EFUNC(common,targetEvent);
-
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0), false] call FUNC(treatmentMutex);
- [(_this select 0), objNull,[0, 0, 0]] call EFUNC(common,carryObj);
- }, // on failure
- [_caller, _unit, _killOnDrop] // arguments
-] call EFUNC(gui,loadingBar);
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_actionCheckPulseLocal.sqf b/addons/medical/functions/fnc_actionCheckPulseLocal.sqf
deleted file mode 100644
index ae69f52272..0000000000
--- a/addons/medical/functions/fnc_actionCheckPulseLocal.sqf
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * fn_checkPulseLocal.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller","_unit", "_heartRateOutput", "_heartRate","_logOutPut", "_title","_content"];
-_caller = _this select 0;
-_unit = _this select 1;
-
-
-_heartRate = [_unit,QGVAR(heartRate)] call EFUNC(common,getDefinedVariable);
-if (!alive _unit) then {
- _heartRate = 0;
-};
-_heartRateOutput = "STR_ACE_CHECK_PULSE_OUTPUT_5";
-_logOutPut = "No heart rate";
-
-if (_heartRate > 1.0) then {
- if ([_caller] call FUNC(isMedic)) then {
- _heartRateOutput = "STR_ACE_CHECK_PULSE_OUTPUT_1";
- _logOutPut = format["%1",round(_heartRate)];
- } else {
- // non medical personel will only find a pulse/HR
- _heartRateOutput = "STR_ACE_CHECK_PULSE_OUTPUT_2";
- _logOutPut = "Weak";
- if (_heartRate > 60) then {
- if (_heartRate > 100) then {
- _heartRateOutput = "STR_ACE_CHECK_PULSE_OUTPUT_3";
- _logOutPut = "Strong";
- } else {
- _heartRateOutput = "STR_ACE_CHECK_PULSE_OUTPUT_4";
- _logOutPut = "Normal";
- };
- };
- };
-};
-
-_title = "STR_ACE_CHECK_PULSE";
-_content = ["STR_ACE_CHECK_PULSE_CHECKED_MEDIC",_heartRateOutput];
-[_caller, _title, _content, 0, [[_unit] call EFUNC(common,getName), round(_heartRate)]] call EFUNC(gui,sendDisplayInformationTo);
-
-if (_logOutPut != "") then {
- [_unit,"examine",format["%1 checked Heart Rate: %2",[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToQuickViewLog);
-};
diff --git a/addons/medical/functions/fnc_actionCheckResponse.sqf b/addons/medical/functions/fnc_actionCheckResponse.sqf
deleted file mode 100644
index d2201e15f2..0000000000
--- a/addons/medical/functions/fnc_actionCheckResponse.sqf
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * fn_checkResponse.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller","_target"];
-_caller = _this select 0;
-_target = _this select 1;
-
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {};
-[_caller, true] call FUNC(treatmentMutex);
-
-_title = format["STR_ACE_CHECK_RESPONSE"];
-_content = ["STR_ACE_CHECK_RESPONSE_CONTENT"];
-[_caller, _title, _content] call EFUNC(gui,sendDisplayInformationTo);
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2 + round(random(1)),
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1))}, // the condition
- {
- private ["_caller","_target", "_output", "_title", "_content"];
- _caller = _this select 0;
- _target = _this select 1;
-
- _output = "";
- if ([_target] call EFUNC(common,isAwake)) then {
- _output = format[localize "STR_ACE_CHECK_REPONSE_RESPONSIVE",[_target] call EFUNC(common,getName)];
- } else {
- _output = format[localize "STR_ACE_CHECK_REPONSE_UNRESPONSIVE",[_target] call EFUNC(common,getName)];
- };
-
- _title = format["STR_ACE_CHECK_RESPONSE"];
- _content = [format[localize "STR_ACE_CHECK_REPONSE_YOU_CHECKED",[_target] call EFUNC(common,getName)],_output];
- [_caller, _title, _content] call EFUNC(gui,sendDisplayInformationTo);
- [_target,"examine",_output] call FUNC(addToQuickViewLog);
-
- [_caller,false] call FUNC(treatmentMutex);
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0),false] call FUNC(treatmentMutex);
- }, // on failure
- [_caller, _target] // arguments
-] call EFUNC(gui,loadingBar);
diff --git a/addons/medical/functions/fnc_actionDragUnit.sqf b/addons/medical/functions/fnc_actionDragUnit.sqf
deleted file mode 100644
index d0fa1c70ea..0000000000
--- a/addons/medical/functions/fnc_actionDragUnit.sqf
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
-fnc_drag.sqf
-Usage: makes the calling unit start dragging the specified unit
-Author: Glowbal
-
-Arguments: array [unit (object), unit (object)]
- 1: Caller OBJECT. Unit that initiats the dragging
- 2: Target OBJECT. Unit that will be dragged
-Returns: none
-
-Affects: Caller and target Locality
-Executes: call
-*/
-
-#include "script_component.hpp"
-
-private ["_caller", "_unit", "_positionUnit", "_killOnDrop"];
-_caller = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
-_unit = [_this, 1, objNull, [objNull]] call BIS_fnc_param;
-_killOnDrop = [_this, 2, false, [false]] call BIS_fnc_param;
-
-["FUNC(actionDragUnit) has been called",2] call EFUNC(common,debug);
-
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {};
-[_caller, true] call FUNC(treatmentMutex);
-
-if (!(_unit isKindOf "CaManBase") || !(_caller isKindOf "CaManBase")) exitwith{ [_caller, false] call FUNC(treatmentMutex);};
-if (vehicle _caller != _caller || vehicle _unit != _unit) exitwith { [_caller, false] call FUNC(treatmentMutex);};
-
-if (!([_caller] call EFUNC(common,canInteract)) || {_caller == _unit} || {(([_unit] call EFUNC(common,isAwake)))}) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
-};
-
-if (([_caller] call EFUNC(common,getCarriedObj)) != _unit && !(isNull ([_caller] call EFUNC(common,getCarriedObj))) || {!isNull(_unit getvariable [QGVAR(beingDragged),objNull]) || !isNull(_caller getvariable [QGVAR(dragging),objNull])}) exitwith {
- [_caller,objNull] call EFUNC(common,carryObj);
- [_caller, false] call FUNC(treatmentMutex);
-};
-
-if (!alive _unit) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
- [{
- _this call FUNC(actionDragUnit);
- }, [_caller, ([_unit,_caller] call FUNC(makeCopyOfBody_F)), _killOnDrop], 0.25, 0.25] call EFUNC(common,waitAndExecute);
-};
-
-if (primaryWeapon _caller == "") then {
- _caller addWeapon "ACE_FakePrimaryWeapon";
-};
-_caller selectWeapon (primaryWeapon _unit);
-
-_unit setDir (getDir _unit + 180) % 360;
-_unit setPos ((getPos _unit) vectorAdd ((vectorDir _caller) vectorMultiply 1.5));
-
-if !([_caller,_unit,[0.125, 1.007, 0]] call EFUNC(common,carryObj)) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
- // well something went horribly wrong here, should never reach this, since we do checks above..
-
-};
-
-[_unit, "AinjPpneMstpSnonWrflDb", 2, true] call EFUNC(common,doAnimation);
-
-_caller selectWeapon (primaryWeapon _caller); // if no primairy weapon, add a fake one first
-if (currentWeapon _caller == primaryWeapon _caller) then {
- [_caller,"AcinPknlMstpSrasWrflDnon", 1] call EFUNC(common,doAnimation);
-} else {
- [_caller,"AcinPknlMstpSnonWnonDnon", 1] call EFUNC(common,doAnimation);
-};
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2,
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1.5))}, // the condition
- {
- private ["_caller","_target"];
- _caller = _this select 0;
- _target = _this select 1;
- _killOnDrop = _this select 2;
- [_caller, false] call FUNC(treatmentMutex);
-
- // Registration for drag/carry functions
- _target setvariable [QGVAR(beingDragged),_caller,true];
- _caller setvariable [QGVAR(dragging), _target,true];
-
- // Removing any old drop scroll wheel actions
- // TODO Do we still want scroll wheel actions?
- if (!isnil QGVAR(DROP_ADDACTION)) then {
- _caller removeAction GVAR(DROP_ADDACTION);
- GVAR(DROP_ADDACTION) = nil;
- };
- // Adding the drop scroll wheel action.
- GVAR(DROP_ADDACTION) = _caller addAction [format["Drop %1",[_target] call EFUNC(common,getName)], {[_this select 1, _this select 2] call FUNC(actionDropUnit);}];
-
- // Raise an event
- ["onStartMovingUnit", [_caller], [_caller, _Target, _killOnDrop, true]] call EFUNC(common,targetEvent);
-
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0), false] call FUNC(treatmentMutex);
- [(_this select 0), objNull,[0, 0, 0]] call EFUNC(common,carryObj);
- }, // on failure
- [_caller, _unit, _killOnDrop] // arguments
-] call EFUNC(gui,loadingBar);
diff --git a/addons/medical/functions/fnc_actionDropUnit.sqf b/addons/medical/functions/fnc_actionDropUnit.sqf
deleted file mode 100644
index 7154f6a5d5..0000000000
--- a/addons/medical/functions/fnc_actionDropUnit.sqf
+++ /dev/null
@@ -1,24 +0,0 @@
-
-/*
- fnc_drop.sqf
- Usage: makes the calling unit start dragging the specified unit
- Author: Glowbal
-
- Arguments: array [unit (object), unit (object)]
- Returns: none
-
- Affects:
- Executes:
-*/
-
-#include "script_component.hpp"
-
-private ["_caller", "_unit","_info","_draggedPerson"];
-_caller = _this select 0;
-_unit = _this select 1;
-
-if (!isnil QGVAR(DROP_ADDACTION)) then {
- [_caller,objNull] call EFUNC(common,carryObj);
- _caller removeAction GVAR(DROP_ADDACTION);
- GVAR(DROP_ADDACTION) = nil;
-};
diff --git a/addons/medical/functions/fnc_actionLoadUnit.sqf b/addons/medical/functions/fnc_actionLoadUnit.sqf
deleted file mode 100644
index cd20140bdb..0000000000
--- a/addons/medical/functions/fnc_actionLoadUnit.sqf
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * fn_load_CMS.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-
-private ["_caller", "_unit","_vehicle", "_loaded"];
-_caller = _this select 0;
-_unit = _this select 1;
-
-if ([_unit] call cse_fnc_isAwake) exitwith {
- hintSilent "This person is awake and cannot be loaded";
-};
-
-[_caller,objNull] call cse_fnc_carryObj;
-[_unit,objNull] call cse_fnc_carryObj;
-
-_vehicle = [_caller, _unit] call EFUNC(common,loadPerson_F);
-if (!isNull _vehicle) then {
- if (!isnil QGVAR(DROP_ADDACTION)) then {
- _caller removeAction GVAR(DROP_ADDACTION);
- GVAR(DROP_ADDACTION) = nil;
- };
-};
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_actionPlaceInBodyBag.sqf b/addons/medical/functions/fnc_actionPlaceInBodyBag.sqf
deleted file mode 100644
index 8df95c24d9..0000000000
--- a/addons/medical/functions/fnc_actionPlaceInBodyBag.sqf
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * fn_placeInBodyBag.sqf
- * @Descr:
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_caller"];
-_unit = _this select 0;
-_caller = _this select 1;
-
-if !([_caller, "ACE_itemBodyBag"] call EFUNC(common,hasItem)) exitwith {};
-
-[_caller, "ACE_itemBodyBag"] call EFUNC(common,useItem);
-
-_nameOfUnit = [_unit] call EFUNC(common,getName);
-if (alive _unit) then {
- // force kill the unit.
- [_unit, true] call EFUNC(common,setDead);
-};
-_onPosition = getPos _unit;
-_allVariables = [_unit] call EFUNC(common,getAllDefinedSetVariables);
-deleteVehicle _unit;
-
-_bodyBagCreated = createVehicle ["ACE_bodyBag", _onPosition, [], 0, "NONE"];
-_bodyBagCreated setvariable [QEGVAR(common,nameOfBody), _nameOfUnit, true];
-
-{
-// [_bodyBagCreated,_x select 0, _x select 2] call EFUNC(common,setDefinedVariable);
-}foreach _allVariables;
-// reset the position to ensure it is on the correct one.
-_bodyBagCreated setPos _onPosition;
-
-[[_bodyBagCreated], QEFUNC(common,revealObject_f), true] call BIS_fnc_MP;
-
-_bodyBagCreated setvariable [QEGVAR(logistics,enableDrag), true, true];
-
-_bodyBagCreated;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_actionRemoveTourniquet.sqf b/addons/medical/functions/fnc_actionRemoveTourniquet.sqf
deleted file mode 100644
index 30363453e2..0000000000
--- a/addons/medical/functions/fnc_actionRemoveTourniquet.sqf
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * fn_removeTourniquet.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller","_target","_part","_selectionName","_removeItem","_tourniquets"];
-_caller = _this select 0;
-_target = _this select 1;
-_selectionName = _this select 2;
-
-[_caller,"You attempt to remove a tourniquet"] call EFUNC(common,sendHintTo);
-if ([_caller] call FUNC(isSetTreatmentMutex)) exitwith {["MUTEX HAS BEEN SET - EXITING"] call EFUNC(common,debug);};
-[_caller,true] call FUNC(treatmentMutex);
-
-_part = [_selectionName] call FUNC(getBodyPartNumber);
-_tourniquets = [_target,QGVAR(tourniquets)] call EFUNC(common,getDefinedVariable);
-
-if ((_tourniquets select _part) == 0) exitwith {
- [_caller, false] call FUNC(treatmentMutex);
- [_caller,"There is no tourniquet on this body part!"] call EFUNC(common,sendHintTo);
-};
-
-if (vehicle _caller == _caller && (vehicle _target == _target)) then {
- [_caller,"AinvPknlMstpSlayWrflDnon_medic", 1] call EFUNC(common,doAnimation);
-};
-
-_caller setvariable [QGVAR(StartingPositionHandleTreatment), getPos _caller];
-[2.5,
- {((vehicle (_this select 0) != (_this select 0)) ||((getPos (_this select 0)) distance ((_this select 0) getvariable QGVAR(StartingPositionHandleTreatment)) < 1))}, // the condition
- {
- private ["_caller","_target", "_selectionName", "_part","_tourniquets"];
- _caller = _this select 0;
- _target = _this select 1;
- _selectionName = _this select 2;
-
- _part = [_selectionName] call FUNC(getBodyPartNumber);
- _tourniquets = [_target,QGVAR(tourniquets)] call EFUNC(common,getDefinedVariable);
- _tourniquets set[_part,0];
- [_target,QGVAR(tourniquets),_tourniquets] call EFUNC(common,setDefinedVariable);
-
- _caller addItem "ACE_tourniquet";
- [_caller,false] call FUNC(treatmentMutex);
-
- [_target,"treatment",format["%1 removed a tourniquet on %2",[_caller] call EFUNC(common,getName),_selectionName]] call FUNC(addActivityToLog);
-
- [_caller,false] call FUNC(treatmentMutex);
- }, // on success
- {
- [(_this select 0), "STR_ACE_CANCELED", ["STR_ACE_ACTION_CANCELED","STR_ACE_YOU_MOVED_AWAY"]] call EFUNC(gui,sendDisplayInformationTo);
- [(_this select 0),false] call FUNC(treatmentMutex);
- }, // on failure
- [_caller, _target, _selectionName] // arguments
-] call EFUNC(gui,loadingBar);
-
-
diff --git a/addons/medical/functions/fnc_actionUnloadUnit.sqf b/addons/medical/functions/fnc_actionUnloadUnit.sqf
deleted file mode 100644
index 6eefb4b138..0000000000
--- a/addons/medical/functions/fnc_actionUnloadUnit.sqf
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * fn_unload_CMS.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_caller", "_unit","_vehicle", "_drag", "_handle"];
-_caller = [_this, 0, ObjNull,[ObjNull]] call BIS_fnc_Param;
-_unit = [_this, 1, ObjNull,[ObjNull]] call BIS_fnc_Param;
-_drag = [_this, 2, false, [false]] call BIS_fnc_Param;
-
-// cannot unload a unit not in a vehicle.
-if (vehicle _unit == _unit) exitwith {};
-if (([_unit] call cse_fnc_isAwake)) exitwith {};
-
-if ([_caller, _unit] call EFUNC(common,unloadPerson_F)) then {
- if (_drag) then {
- if ((vehicle _caller) == _caller) then {
- [[_caller,_unit], QUOTE(FUNC(actionDragUnit)), _caller, false] call BIS_fnc_MP;
- };
- };
-};
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_addActivityToLog.sqf b/addons/medical/functions/fnc_addActivityToLog.sqf
deleted file mode 100644
index c5fd4b1976..0000000000
--- a/addons/medical/functions/fnc_addActivityToLog.sqf
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * fn_addActivityToLog.sqf
- * @Descr: adds an item to the activity log
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT, type STRING, message STRING]
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_caller","_type","_activity","_log"];
-
-_unit = _this select 0;
-_type = _this select 1;
-_message = _this select 2;
-
-if (!local _unit) exitwith {
- [_this, QUOTE(FUNC(addActivityToLog)), _unit] call EFUNC(common,execRemoteFnc);
-};
-_lastNumber = date select 4;
-_moment = format["%1:%2",date select 3, _lastNumber];
-if (_lastNumber < 10) then {
- _moment = format["%1:0%2",date select 3, _lastNumber];
-};
-
-
-_log = [_unit, QGVAR(activityLog)] call EFUNC(common,getDefinedVariable);
-if (count _log >= 8) then {
- _newLog = [];
- _counter = 0;
- {
- // ensure the first element will not be added
- if (_counter > 0) then {
- _newLog pushback _x;
- } else {
- _counter = _counter + 1;
- };
- }foreach _log;
- _log = _newLog;
-};
-_log pushback [_message,_moment,_type];
-
-[_unit, QGVAR(activityLog),_log] call EFUNC(common,setDefinedVariable);
-["Medical_OnActivityLogChanged", [_unit, _type, _message]] call ace_common_fnc_localEvent;
diff --git a/addons/medical/functions/fnc_addHeartRateAdjustment.sqf b/addons/medical/functions/fnc_addHeartRateAdjustment.sqf
deleted file mode 100644
index 798ec18b0e..0000000000
--- a/addons/medical/functions/fnc_addHeartRateAdjustment.sqf
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * fn_addHeartRateAdjustment.sqf
- * @Descr: Increase the Heart Rate of a local unit by given number within given amount of seconds.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT, value NUMBER, time NUMBER (Amount of seconds), callBack CODE (Called when adjustment is completed)]
- * @Return: void
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit", "_value", "_time", "_adjustment", "_callBack"];
-_unit = [_this, 0, objNull, [objNull]] call BIS_fnc_Param;
-_value = [_this, 1, 0, [0]] call BIS_fnc_Param;
-_time = [_this, 2, 1, [0]] call BIS_fnc_Param;
-_callBack = [_this, 3, {}, [{}]] call BIS_fnc_Param;
-
-_adjustment = [_unit, QGVAR(heartRateAdjustments)] call EFUNC(common,getDefinedVariable);
-_adjustment pushback [_value, _time, _callBack];
-_unit setvariable [QGVAR(heartRateAdjustments), _adjustment ];
-["Medical_onHeartRateAdjustmentAdded", [_unit, _value, _time]] call ace_common_fnc_localEvent;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_addOpenWounds.sqf b/addons/medical/functions/fnc_addOpenWounds.sqf
deleted file mode 100644
index 1a87e409f9..0000000000
--- a/addons/medical/functions/fnc_addOpenWounds.sqf
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * fn_addOpenWounds.sqf
- * @Descr: Add open wounds to unit.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT (The object that will recieve the wound), bodyPart STRING, type STRING (Small, medium or large), amount NUMBER (The amount of open wounds added)]
- * @Return: void
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit", "_bodyPart", "_type", "_openWounds", "_selection", "_amount", "_newAmount", "_global"];
-_unit = _this select 0;
-_bodyPart = _this select 1;
-_type = _this select 2;
-_amount = _this select 3;
-_global = if (count _this > 4) then {_this select 4} else {true};
-
-if (typeName _bodyPart == "STRING") then {
- _bodyPart = [_bodyPart] call FUNC(getBodyPartNumber);
-};
-if (typeName _type == "STRING") then {
- _type = switch (toLower _type) do {
- case "small": {0};
- case "medium": {1};
- case "large": {2};
- default {-1};
- };
-};
-
-if (_type < 0) exitwith {
- [format["Adding an injury with an invalid type: %1",_this], 0] call EFUNC(common,debug);
-};
-
-_openWounds = [_unit,QGVAR(openWounds)] call EFUNC(common,getDefinedVariable);
-_selection = _openWounds select _bodyPart;
-_newAmount = (_selection select _type) + _amount;
-if (_newAmount < 0) then {
- _newAmount = 0;
-};
-_selection set [ _type, _newAmount];
-_openWounds set [ _bodyPart , _selection];
-[_unit, QGVAR(openWounds),_openWounds, _global] call EFUNC(common,setDefinedVariable);
-
-[_unit] call FUNC(addToInjuredCollection);
-["Medical_onOpenWoundsAdded", [_unit, _bodyPart, _type, _amount]] call ace_common_fnc_localEvent;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_addToInjuredCollection.sqf b/addons/medical/functions/fnc_addToInjuredCollection.sqf
deleted file mode 100644
index f82e0fd5e4..0000000000
--- a/addons/medical/functions/fnc_addToInjuredCollection.sqf
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * fnc_addToInjuredCollection.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private "_unit";
-_unit = _this select 0;
-if !(local _unit) exitwith{
- [[_unit], QUOTE(FUNC(addToInjuredCollection)), _unit] call EFUNC(common,execRemoteFnc);
-};
-
-if !(_unit getvariable[QGVAR(addedToUnitLoop),false]) then{
- _unit setvariable [QGVAR(addedToUnitLoop),true, true];
-};
-
-if ([_unit] call FUNC(hasMedicalEnabled)) then {
- if (isnil QGVAR(injuredUnitCollection)) then {
- GVAR(injuredUnitCollection) = [];
- };
- if (_unit in GVAR(injuredUnitCollection)) exitwith {};
- GVAR(injuredUnitCollection) pushback _unit;
-};
diff --git a/addons/medical/functions/fnc_addToQuickViewLog.sqf b/addons/medical/functions/fnc_addToQuickViewLog.sqf
deleted file mode 100644
index ddac44c3b2..0000000000
--- a/addons/medical/functions/fnc_addToQuickViewLog.sqf
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * fn_addToQuickViewLog.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_type","_activity","_log", "_lastNumber", "_message"];
-
-_unit = _this select 0;
-_type = _this select 1;
-_message = _this select 2;
-
-if (!local _unit) exitwith {
- [_this, QUOTE(FUNC(addToQuickViewLog)), _unit] call EFUNC(common,execRemoteFnc);
-};
-
-_lastNumber = date select 4;
-_moment = format["%1:%2",date select 3, _lastNumber];
-if (_lastNumber < 10) then {
- _moment = format["%1:0%2",date select 3, _lastNumber];
-};
-
-_log = [_unit,QGVAR(quickViewLog)] call EFUNC(common,getDefinedVariable);
-if (count _log >= 8) then {
- _newLog = [];
- _counter = 0;
- {
- if (_counter > 0) then {
- _newLog pushback _x;
- } else {
- _counter = _counter + 1;
- };
- }foreach _log;
- _log = _newLog;
-};
-_log pushback [_message,_moment,_type];
-
-[_unit,QGVAR(quickViewLog),_log] call EFUNC(common,setDefinedVariable);
-["Medical_onQuickViewLogChanged", [_unit, _type, _message]] call ace_common_fnc_localEvent;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_addToTriageList.sqf b/addons/medical/functions/fnc_addToTriageList.sqf
deleted file mode 100644
index ec6fbc7d60..0000000000
--- a/addons/medical/functions/fnc_addToTriageList.sqf
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * fn_addToTriageList.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_caller","_newItem","_log", "_inList","_amount"];
-_unit = _this select 0;
-_newItem = _this select 1;
-
-if (!local _unit) exitwith {
- [_this, QUOTE(FUNC(addToTriageList)), _unit] call EFUNC(common,execRemoteFnc);
-};
-
-_log = [_unit,QGVAR(triageCard)] call EFUNC(common,getDefinedVariable);
-_inList = false;
-_amount = 1;
-{
- if ((_x select 0) == _newItem) exitwith {
- private "_info";
- _info = _log select _foreachIndex;
- _info set [1,(_info select 1) + 1];
- _log set [_foreachIndex, _info];
-
- _amount = (_info select 1);
- _inList = true;
- };
-}foreach _log;
-
-if (!_inList) then {
- _log pushback [_newItem,1];
-};
-
-[_unit,QGVAR(triageCard),_log] call EFUNC(common,setDefinedVariable);
-["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call ace_common_fnc_localEvent;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_addTreatmentOption.sqf b/addons/medical/functions/fnc_addTreatmentOption.sqf
deleted file mode 100644
index 12d5cb1da1..0000000000
--- a/addons/medical/functions/fnc_addTreatmentOption.sqf
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * fnc_addTreatmentOption.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_displayName","_tooltip","_condition","_code", "_category","_options"];
-_displayName = _this select 0;
-_tooltip = _this select 1;
-_condition = _this select 2;
-_code = _this select 3;
-_category = _this select 4;
-
-if (isLocalized _displayName) then {
- _displayName = localize _displayName;
-};
-
-if (isLocalized _tooltip) then {
- _tooltip = localize _tooltip;
-};
-
-_options = missionNamespace getvariable [QGVAR(registeredTreatmentOptions_)+_category, []];
-_options pushback [_displayName, _tooltip, _condition, _code];
-
-missionNamespace setvariable [QGVAR(registeredTreatmentOptions_)+_category, _options];
diff --git a/addons/medical/functions/fnc_cacheHandleDamageCall.sqf b/addons/medical/functions/fnc_cacheHandleDamageCall.sqf
deleted file mode 100644
index b692c2e871..0000000000
--- a/addons/medical/functions/fnc_cacheHandleDamageCall.sqf
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
- * fnc_cacheHandleDamageCall.sqf
- * @Descr: Cache a handleDamage call to execute it 3 frames later
- * @Author: KoffeinFlummi
- *
- * @Arguments: [unit OBJECT, selection STRING, damagE NUMBER, source OBJECT, projectile STRING (Could be an OBJECT on occasion)]
- * @Return:
- * @PublicAPI: false
- */
-
-
-#include "script_component.hpp"
-
-private ["_unit", "_selectionName","_damage", "_source","_projectile","_hitSelections","_hitPoints","_newDamage","_cache_hitpoints","_cache_projectiles","_cache_params","_cache_damages"];
-_unit = _this select 0;
-_selectionName = _this select 1;
-_damage = _this select 2;
-_source = _this select 3;
-_projectile = _this select 4;
-
-_hitSelections = ["head", "body", "hand_l", "hand_r", "leg_l", "leg_r"];
-_hitPoints = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
-
-// Calculate change in damage.
-_newDamage = _damage - (damage _unit);
-if (_selectionName in _hitSelections) then {
- _newDamage = _damage - (_unit getHitPointDamage (_hitPoints select (_hitSelections find _selectionName)));
-};
-
-// we want to move damage to another selection; have to do it ourselves.
-// this is only the case for limbs, so this will not impact the killed EH.
-if (_selectionName != (_this select 1)) then {
- _unit setHitPointDamage [_hitPoints select (_hitSelections find _selectionName), _damage + _newDamage];
- _newDamage = 0;
-};
-_damage = _damage + _newDamage;
-
-// From AGM medical:
-// Exclude falling damage to everything other than legs; reduce structural damage.
-if (((velocity _unit) select 2 < -5) && (vehicle _unit == _unit)) then {
- _unit setVariable [QGVAR(isFalling), True];
-};
-if (_unit getVariable [QGVAR(isFalling), false] && !(_selectionName in ["", "leg_l", "leg_r"])) exitWith {};
-if (_unit getVariable [QGVAR(isFalling), false]) then {
- _newDamage = _newDamage * 0.7;
-};
-
-// Finished with the current frame, reset variables
-// Note: sometimes handleDamage spans over 2 or even 3 frames.
-if (diag_frameno > (_unit getVariable [QGVAR(frameNo_damageCaching), -3]) + 2) then {
- _unit setVariable [QGVAR(frameNo_damageCaching), diag_frameno];
-
- // handle the cached damages 3 frames later
- [{
- private ["_args","_unit","_frameNo"];
- _args = _this select 0;
- _unit = _args select 0;
- _frameNo = _args select 1;
-
- if (diag_frameno > _frameNo + 2) then {
- _cache_projectiles = _unit getVariable [QGVAR(cachedProjectiles), []];
- _cache_hitpoints = _unit getVariable [QGVAR(cachedHitPoints), []];
- _cache_damages = _unit getVariable [QGVAR(cachedDamages), []];
- _cache_params = _unit getVariable [QGVAR(cachedHandleDamageParams), []];
- {
- if (typeName _x == typeName "") then {
- (_cache_params select _foreachIndex) call FUNC(handleDamage);
- };
- }foreach _cache_projectiles;
- [(_this select 1)] call cba_fnc_removePerFrameHandler;
- };
- }, 0, [_unit, diag_frameno] ] call CBA_fnc_addPerFrameHandler;
-
- _unit setVariable [QGVAR(cachedProjectiles), []];
- _unit setVariable [QGVAR(cachedHitPoints), []];
- _unit setVariable [QGVAR(cachedDamages), []];
- _unit setVariable [QGVAR(cachedHandleDamageParams), []];
-};
-
-// Make sure there's only one damaged selection per projectile per frame.
-_cache_projectiles = _unit getVariable QGVAR(cachedProjectiles);
-_cache_hitpoints = _unit getVariable QGVAR(cachedHitPoints);
-_cache_damages = _unit getVariable QGVAR(cachedDamages);
-_cache_params = _unit getVariable QGVAR(cachedHandleDamageParams);
-
-// Caching of the damage events
-if (_selectionName != "") then {
-
- // Check if the current projectile has already been handled once
- if (_projectile in _cache_projectiles) then {
- private ["_index","_otherDamage"];
- // if it has been handled, find the index in the cache
- _index = _cache_projectiles find _projectile;
-
- // Find the previous damage this projectile has done
- _otherDamage = (_cache_damages select _index);
-
- // Take the highest damage of the two
- if (_otherDamage > _newDamage) then {
- _newDamage = 0;
- } else {
- private ["_hitPoint", "_restore"];
- // Restore the damage before the previous damage was processed
- _hitPoint = _cache_hitpoints select _index;
- _restore = ((_unit getHitPointDamage _hitPoint) - _otherDamage) max 0;
- _unit setHitPointDamage [_hitPoint, _restore];
-
- // Make entry unfindable and add the new damage cache
- _cache_projectiles set [_index, objNull];
- _cache_projectiles pushBack _projectile;
- _cache_hitpoints pushBack (_hitPoints select (_hitSelections find _selectionName));
- _cache_damages pushBack _newDamage;
- _cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile];
- };
- } else {
- // This is an unhandled projectile
- _cache_projectiles pushBack _projectile;
- _cache_hitpoints pushBack (_hitPoints select (_hitSelections find _selectionName));
- _cache_damages pushBack _newDamage;
- _cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile];
- };
-};
-
-// Store the new cached values
-_unit setVariable [QGVAR(cachedProjectiles), _cache_projectiles];
-_unit setVariable [QGVAR(cachedHitPoints), _cache_hitpoints];
-_unit setVariable [QGVAR(cachedDamages), _cache_damages];
-_unit setVariable [QGVAR(cachedHandleDamageParams), _cache_params];
diff --git a/addons/medical/functions/fnc_canAccessMedicalEquipment.sqf b/addons/medical/functions/fnc_canAccessMedicalEquipment.sqf
deleted file mode 100644
index d0522a79dd..0000000000
--- a/addons/medical/functions/fnc_canAccessMedicalEquipment.sqf
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * fn_canAccessMedicalEquipment.sqf
- * @Descr: Check if caller can access targets medical equipment, based upon accessLevel
- * @Author: Glowbal
- *
- * @Arguments: [target OBJECT, caller OBJECT]
- * @Return: BOOL
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_target", "_caller", "_accessLevel", "_return"];
-_target = _this select 0;
-_caller = _this select 1;
-
-_accessLevel = _target getvariable [QGVAR(allowSharedEquipmentAccess), -1];
-
-_return = false;
-
-if (_accessLevel >= 0) then {
- if (_accessLevel == 0) exitwith { _return = true; };
- if (_accessLevel == 1) exitwith { _return = (side _target == side _caller); };
- if (_accessLevel == 2) exitwith { _return = (group _target == group _caller); };
-};
-
-_return;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_canGoUnconsciousState.sqf b/addons/medical/functions/fnc_canGoUnconsciousState.sqf
deleted file mode 100644
index 6eaf983e31..0000000000
--- a/addons/medical/functions/fnc_canGoUnconsciousState.sqf
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * fn_canGoUnconsciousState.sqf
- * @Descr: Checks if an object can move into unconscious state
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT]
- * @Return: BOOL true if object can move into unconscious state
- * @PublicAPI: true
- */
-
-
-#include "script_component.hpp"
-
-private ["_unit"];
-_unit = _this select 0;
-
-(!(isNull _unit) && {(_unit isKindOf "CaManBase") && ([_unit] call EFUNC(common,isAwake))})
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_canPutInBodyBag.sqf b/addons/medical/functions/fnc_canPutInBodyBag.sqf
deleted file mode 100644
index 07626c0d21..0000000000
--- a/addons/medical/functions/fnc_canPutInBodyBag.sqf
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * fn_canPutInBodyBag.sqf
- * @Descr:
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_caller"];
-_caller = _this select 0;
-_target = _this select 1;
-
-([_caller, "ACE_itemBodyBag"] call EFUNC(common,hasItem) && {(!(alive _target) || (_target getvariable [QEGVAR(common,isDead),false]) || (_target getvariable ["ACE_inReviveState", false]))} && {(_target distance _caller) < 7.5} && (vehicle _target == _unit)); // return
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_checkDamage.sqf b/addons/medical/functions/fnc_checkDamage.sqf
deleted file mode 100644
index 67495c25de..0000000000
--- a/addons/medical/functions/fnc_checkDamage.sqf
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Author: KoffeinFlummi
- *
- * Checks the unit for leg and arm damage, and removes orphan structural damage.
- *
- * Arguments:
- + 0: Unit
- * 1: Leg Damage
- * 2: Arm Damage
- * 3: Remove orphan damage? (Bool; optional, default No)
- *
- * Return Value:
- * None
- */
-
-#define LEGDAMAGETRESHOLD1 1
-#define LEGDAMAGETRESHOLD2 1.7
-#define ARMDAMAGETRESHOLD1 1
-#define ARMDAMAGETRESHOLD2 1.7
-
-private ["_unit", "_legdamage", "_armdamage", "_damagesum"];
-
-_unit = _this select 0;
-_legdamage = _this select 1;
-_armdamage = _this select 2;
-
-// Leg Damage
-// lightly wounded, only limit walking speed (forceWalk is for suckers)
-if (_legdamage >= LEGDAMAGETRESHOLD1) then {
- if (_unit getHitPointDamage "HitLegs" != 1) then {_unit setHitPointDamage ["HitLegs", 1]};
-} else {
- if (_unit getHitPointDamage "HitLegs" != 0) then {_unit setHitPointDamage ["HitLegs", 0]};
-};
-// @ŧodo: force prone for completely fucked up legs.
-
-// Arm Damage
-// fx only
-if (_armdamage >= ARMDAMAGETRESHOLD1) then {
- if (_unit getHitPointDamage "HitHands" != 1) then {_unit setHitPointDamage ["HitHands", 1]};
-} else {
- if (_unit getHitPointDamage "HitHands" != 0) then {_unit setHitPointDamage ["HitHands", 0]};
-};
-
-// remove leftover structural damage if unit is already fully healed
-if (count _this > 3 and _this select 3) then {
- _damagesum = (_unit getHitPointDamage "HitHead") +
- (_unit getHitPointDamage "HitBody") +
- (_unit getHitPointDamage "HitLeftArm") +
- (_unit getHitPointDamage "HitRightArm") +
- (_unit getHitPointDamage "HitLeftLeg") +
- (_unit getHitPointDamage "HitRightLeg");
- if (_damagesum <= 0.06) then {
- _unit setDamage 0;
- };
-};
diff --git a/addons/medical/functions/fnc_cleanUpCopyOfBody_f.sqf b/addons/medical/functions/fnc_cleanUpCopyOfBody_f.sqf
deleted file mode 100644
index b20169e9f5..0000000000
--- a/addons/medical/functions/fnc_cleanUpCopyOfBody_f.sqf
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * fn_cleanUpCopyOfBody_f.sqf
- * @Descr: Called from a custom eventhandler to ensure that any copies of bodies are cleaned up.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT]
- * @Return: BOOL
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit", "_copy"];
-_unit = _this select 0;
-
-_copy = _unit getvariable QGVAR(copyOfBody_f);
-if (isnil "_copy") exitwith {false};
-[format["Cleaning up a copy of Body: %1 %2", _unit, _copy]] call EFUNC(common,debug);
-// lets clean it up
-_unit setvariable [QGVAR(originalCopy_f), nil, true];
-_unit setvariable [QGVAR(copyOfBody_f), nil, true];
-if (!isNull _copy) then {
- deleteVehicle _copy;
-};
-
-true;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_determineIfFatal.sqf b/addons/medical/functions/fnc_determineIfFatal.sqf
deleted file mode 100644
index b14822efeb..0000000000
--- a/addons/medical/functions/fnc_determineIfFatal.sqf
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * fn_determineIfFatal.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_part","_damageThreshold"];
-_unit = _this select 0;
-_part = _this select 1;
-
-if (!alive _unit) exitwith {true};
-
-if ((vehicle _unit != _unit) && {!alive (vehicle _unit)}) exitwith { true };
-
-// Find the correct Damage threshold for unit.
-_damageThreshold = [1,1,1];
-if (isPlayer _unit) then {
- _damageThreshold =_unit getvariable[QGVAR(unitDamageThreshold), [GVAR(damageThreshold_Players), GVAR(damageThreshold_Players), GVAR(damageThreshold_Players) * 1.7]];
-} else {
- _damageThreshold =_unit getvariable[QGVAR(unitDamageThreshold), [GVAR(damageThreshold_AI), GVAR(damageThreshold_AI), GVAR(damageThreshold_AI) * 1.7]];
-};
-
-_damageBodyPart = ([_unit,QGVAR(bodyPartStatus),[0,0,0,0,0,0]] call EFUNC(common,getDefinedVariable)) select _part;
-
-// Check if damage to body part is higher as damage head
-if (_part == 0) exitwith {
- (_damageBodyPart >= (_damageThreshold select 0) && {(random(1) > 0.2)});
-};
-
-// Check if damage to body part is higher as damage torso
-if (_part == 1) exitwith {
- (_damageBodyPart >= (_damageThreshold select 1) && {(random(1) > 0.2)});
-};
-// Check if damage to body part is higher as damage limbs
-(_damageBodyPart >= (_damageThreshold select 2) && {(random(1) > 0.95)});
diff --git a/addons/medical/functions/fnc_determineIfUnconscious.sqf b/addons/medical/functions/fnc_determineIfUnconscious.sqf
deleted file mode 100644
index ebc3af26eb..0000000000
--- a/addons/medical/functions/fnc_determineIfUnconscious.sqf
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * fn_determineIfUnconscious.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_part","_damageThreshold"];
-_unit = _this select 0;
-_part = _this select 1;
-
-if (!alive _unit) exitwith { true };
-
-if ((vehicle _unit != _unit) && {!alive (vehicle _unit)}) exitwith { true };
-
-// Find the correct Damage threshold for unit.
-_damageThreshold = if (isPlayer _unit) then {
- missionNamespace getvariable[QGVAR(unitDamageThreshold), [GVAR(damageThreshold_Players), GVAR(damageThreshold_Players), GVAR(damageThreshold_Players)]];
-} else {
- missionNamespace getvariable[QGVAR(unitDamageThreshold), [GVAR(damageThreshold_AI), GVAR(damageThreshold_AI), GVAR(damageThreshold_AI)]];
-};
-
-_damageBodyPart = ([_unit,QGVAR(bodyPartStatus),[0,0,0,0,0,0]] call EFUNC(common,getDefinedVariable)) select _part;
-
-// Check if damage to body part is higher as damage head
-if (_part == 0) exitwith {
- ((_damageBodyPart * GVAR(setting_medicalDifficulty)) >= ((_damageThreshold select 0) * 0.7) && {(random(1) > 0.35)});
-};
-
-// Check if damage to body part is higher as damage torso
-if (_part == 1) exitwith {
- ((_damageBodyPart * GVAR(setting_medicalDifficulty)) >= ((_damageThreshold select 1) * 0.5) && {(random(1) > 0.4)});
-};
-// Check if damage to body part is higher as damage limbs
-((_damageBodyPart * GVAR(setting_medicalDifficulty)) >= ((_damageThreshold select 2) * 0.8) && {(random(1) > 0.7)});
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_effectBlackOut.sqf b/addons/medical/functions/fnc_effectBlackOut.sqf
deleted file mode 100644
index 1ffa75fff9..0000000000
--- a/addons/medical/functions/fnc_effectBlackOut.sqf
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * fn_effectBlackOut.sqf
- * @Descr: Displays the blacked out effect for clients.
- * @Author: Glowbal
- *
- * @Arguments: [displayEffect BOOL]
- * @Return: void
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_displayEffect","_effect"];
-_displayEffect = [_this, 0, false,[false]] call bis_fnc_param;
-
-if (!hasInterface) exitwith {};
-
-disableSerialization;
-_effect = uiNamespace getVariable QGVAR(ScreenEffectsBlack);
-if (isNil "_effect") then {
- 45 cutRsc [QGVAR(ScreenEffectsBlack),"PLAIN"];
- _effect = uiNamespace getVariable QGVAR(ScreenEffectsBlack);
-};
-
-if (_displayEffect) then {
- (_effect displayCtrl 11112) ctrlSetTextColor [0.0,0.0,0.0,0.9];
-} else {
- (_effect displayCtrl 11112) ctrlSetTextColor [0.0,0.0,0.0,0.0];
-};
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_effectBleeding.sqf b/addons/medical/functions/fnc_effectBleeding.sqf
deleted file mode 100644
index 0882267df1..0000000000
--- a/addons/medical/functions/fnc_effectBleeding.sqf
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * fn_effectBleeding.sqf
- * @Descr: Displays the ACE Bleeding effect
- * @Author: Glowbal
- *
- * @Arguments: [bloodLoss NUMBER]
- * @Return: void
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-if (isnil QGVAR(DisplayingBleedingEffect)) then {
- GVAR(DisplayingBleedingEffect) = false;
-};
-if (GVAR(DisplayingBleedingEffect)) exitwith {};
-private ["_bloodLoss","_time"];
-_bloodLoss = _this select 0;
-if (!(_bloodLoss > 0)) exitwith{};
-
-_time = 10 - _bloodLoss;
-if (_time < 1.5) then {
- _time = 1.5;
-};
-GVAR(DisplayingBleedingEffect) = true;
-47 cutRsc [QGVAR(ScreenEffectsBleeding),"PLAIN"];
-
-[{
- if !(isnil QGVAR(DisplayingBleedingEffect_ran)) then {
- GVAR(DisplayingBleedingEffect_ran) = nil;
- GVAR(DisplayingBleedingEffect) = false;
- [(_this select 1)] call cba_fnc_removePerFrameHandler;
- } else {
- GVAR(DisplayingBleedingEffect_ran) = true;
- };
-}, _time, [] ] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/medical/functions/fnc_effectPain.sqf b/addons/medical/functions/fnc_effectPain.sqf
deleted file mode 100644
index 595d4ea6a0..0000000000
--- a/addons/medical/functions/fnc_effectPain.sqf
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * fn_effectPain.sqf
- * @Descr: Displays the ACE Pain effect
- * @Author: Glowbal
- *
- * @Arguments: [painRatio NUMBER]
- * @Return: void
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-if (isnil QGVAR(DisplayingPainEffect)) then {
- GVAR(DisplayingPainEffect) = false;
-};
-
-if (GVAR(DisplayingPainEffect)) exitwith {};
-
-private ["_ratio","_time"];
-_ratio = _this select 0;
-if (!(_ratio > 0)) exitwith{};
- _time = 6 - _ratio;
-if (_time <1.5) then {
- _time = 1.5;
-};
-GVAR(DisplayingPainEffect) = true;
-46 cutRsc [QGVAR(ScreenEffectsPain),"PLAIN"];
-
-[{
- GVAR(DisplayingPainEffect) = false;
- [(_this select 1)] call cba_fnc_removePerFrameHandler;
-}, _time, [] ] call CBA_fnc_addPerFrameHandler;
diff --git a/addons/medical/functions/fnc_fromNumberToBodyPart.sqf b/addons/medical/functions/fnc_fromNumberToBodyPart.sqf
deleted file mode 100644
index a556ea1211..0000000000
--- a/addons/medical/functions/fnc_fromNumberToBodyPart.sqf
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * fn_fromNumberToBodyPart.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_selectionName","_part"];
-_part = _this select 0;
-_selectionName = "";
-_selectionName = switch (_part) do {
- case 0: {
- "head"
- };
- case 1: {
- "body"
- };
- case 2: {
- "hand_l"
- };
- case 3: {
- "hand_r"
- };
- case 4: {
- "leg_l"
- };
- case 5: {
- "leg_r"
- };
- default {
- ""
- };
-};
-_selectionName
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getActivityLog.sqf b/addons/medical/functions/fnc_getActivityLog.sqf
deleted file mode 100644
index 5f5f1ba6de..0000000000
--- a/addons/medical/functions/fnc_getActivityLog.sqf
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * fn_getActivityLog.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private["_unit"];
-_unit = _this select 0;
-_log = [_unit,QGVAR(activityLog)] call EFUNC(common,getDefinedVariable);
-
-if (isnil "_log") then {
- _log = [];
-};
-if (typeName _log != typeName []) then {
- _log = [];
-};
-_log
diff --git a/addons/medical/functions/fnc_getBloodLoss.sqf b/addons/medical/functions/fnc_getBloodLoss.sqf
deleted file mode 100644
index 929ca2b856..0000000000
--- a/addons/medical/functions/fnc_getBloodLoss.sqf
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * fn_getBloodLoss.sqf
- * @Descr: Calculate the total blood loss of a unit.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT]
- * @Return: NUMBER Total blood loss of unit
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-#define BLOODLOSS_SMALL_WOUNDS 0.025
-#define BLOODLOSS_MEDIUM_WOUNDS 0.05
-#define BLOODLOSS_LARGE_WOUNDS 0.1
-
-/**
-* The default cardiac output when all stats are set to normal is 5.25.
-*/
-#define DEFAULT_CARDIAC_OUTPUT 5.25
-
-private ["_totalBloodLoss","_tourniquets","_openWounds", "_value", "_cardiacOutput"];
-
-_totalBloodLoss = 0;
-_tourniquets = [_this, QGVAR(tourniquets)] call EFUNC(common,getDefinedVariable);
-_openWounds = [_this, QGVAR(openWounds)] call EFUNC(common,getDefinedVariable);
-_cardiacOutput = [_this] call FUNC(getCardiacOutput);
-
-{
- if ((_tourniquets select _foreachIndex) < 1) then {
- _totalBloodLoss = _totalBloodLoss + (((BLOODLOSS_SMALL_WOUNDS * (_x select 0))) + ((BLOODLOSS_MEDIUM_WOUNDS * (_x select 1))) + ((BLOODLOSS_LARGE_WOUNDS * (_x select 2))) * (_cardiacOutput / DEFAULT_CARDIAC_OUTPUT));
- };
-}foreach _openWounds;
-
-// cap the blood loss to be no greater as the current cardiac output
-(_totalBloodLoss min _cardiacOutput);
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getBloodPressure.sqf b/addons/medical/functions/fnc_getBloodPressure.sqf
deleted file mode 100644
index 620b8d541d..0000000000
--- a/addons/medical/functions/fnc_getBloodPressure.sqf
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * fn_getBloodPressure.sqf
- * @Descr: Calculate the current blood pressure of a unit.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT (The unit to get the blood pressure from.)]
- * @Return: ARRAY Blood Pressure. Format [low NUMBER, high NUMBER]
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-/*
- Value is taken because with cardic output and resistance at default values, it will put blood pressure High at 120.
-*/
-#define MODIFIER_BP_HIGH 0.229
-
-/*
- Value is taken because with cardic output and resistance at default values, it will put blood pressure Low at 80.
-*/
-#define MODIFIER_BP_LOW 0.1524
-
-private ["_unit", "_bloodPressureLow", "_bloodPressureHigh", "_cardiacOutput", "_resistance"];
-_unit = _this select 0;
-_cardiacOutput = [_unit] call FUNC(getCardiacOutput);
-_resistance = [_unit, QGVAR(peripheralResistance)] call EFUNC(common,getDefinedVariable);
-
-_bloodPressureHigh = (_cardiacOutput * MODIFIER_BP_HIGH) * _resistance;
-_bloodPressureLow = (_cardiacOutput * MODIFIER_BP_LOW) * _resistance;
-
-[_bloodPressureLow, _bloodPressureHigh];
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getBloodVolumeChange.sqf b/addons/medical/functions/fnc_getBloodVolumeChange.sqf
deleted file mode 100644
index 69b240b1d7..0000000000
--- a/addons/medical/functions/fnc_getBloodVolumeChange.sqf
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * fn_getBloodVolumeChange.sqf
- * @Descr: Calculates the blood volume change and decreases the IVs given to the unit.
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return: NUMBER Bloodvolume change
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-/*
- IV Change per second calculation:
- 250ml should take 60 seconds to fill. 250/60 = 4.166.
-*/
-#define IV_CHANGE_PER_SECOND -4.166
-
-/*
- Blood Change per second calculation for IVs:
- 250ml should take 60 seconds to fill in. Total blood volume is 7000ml = 100%.
- 7000/100 = 70 = 1%
- 250 / 70 = 3.571428571%
- 3.571428571 / 60 = 0.0595% per second.
-*/
-#define BLOOD_CHANGE_PER_SECOND 0.0595
-
-
-
-private ["_unit","_bloodVolume","_bloodVolumeChange", "_ivVolume"];
-_unit = _this select 0;
-
-_bloodVolume = _unit getvariable [QGVAR(bloodVolume), 100];
-_bloodVolumeChange = -(_unit call FUNC(getBloodLoss));
-
-if (_bloodVolume < 100.0) then {
- if ((_unit getvariable [QGVAR(salineIVVolume), 0]) > 0) then {
- _bloodVolumeChange = _bloodVolumeChange + BLOOD_CHANGE_PER_SECOND;
- _ivVolume = (_unit getvariable [QGVAR(salineIVVolume), 0]) + IV_CHANGE_PER_SECOND;
- _unit setvariable [QGVAR(salineIVVolume),_ivVolume];
- if ([QEGVAR(fieldRations,module)] call EFUNC(common,isModuleEnabled_F)) then {
- if ([_unit] call EFUNC(fieldRations,canDrink)) then {
- _unit setvariable [QEGVAR(fieldRations,drinkStatus), (_unit getvariable [QEGVAR(fieldRations,drinkStatus), 100]) + 0.2];
- };
- };
- };
- if ((_unit getvariable [QGVAR(plasmaIVVolume), 0]) > 0) then {
- _bloodVolumeChange = _bloodVolumeChange + BLOOD_CHANGE_PER_SECOND;
- _ivVolume = (_unit getvariable [QGVAR(plasmaIVVolume), 0]) + IV_CHANGE_PER_SECOND;
- _unit setvariable [QGVAR(plasmaIVVolume),_ivVolume];
- };
- if ((_unit getvariable [QGVAR(bloodIVVolume), 0]) > 0) then {
- _bloodVolumeChange = _bloodVolumeChange + BLOOD_CHANGE_PER_SECOND;
- _ivVolume = (_unit getvariable [QGVAR(bloodIVVolume), 0]) + IV_CHANGE_PER_SECOND;
- _unit setvariable [QGVAR(bloodIVVolume),_ivVolume];
- };
-};
-
-_bloodVolumeChange
diff --git a/addons/medical/functions/fnc_getBodyPartNumber.sqf b/addons/medical/functions/fnc_getBodyPartNumber.sqf
deleted file mode 100644
index 6bfc041c80..0000000000
--- a/addons/medical/functions/fnc_getBodyPartNumber.sqf
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * fn_getBodyPartNumber.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_selectionName","_part"];
-_selectionName = _this select 0;
-
- _part = -1;
- _part = switch (_selectionName) do {
- case "head": {
- 0
- };
- case "body": {
- 1
- };
- case "hands": {
- if (random(1)>=0.5) then {
- 2
- } else {
- 3
- };
- };
- case "hand_l": {
- 2
- };
- case "hand_r": {
- 3
- };
- case "legs": {
- if (random(1)>=0.5) then {
- 4
- } else {
- 5
- };
- };
- case "leg_l": {
- 4
- };
- case "leg_r": {
- 5
- };
- default {
- -1
- };
- };
-_part
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getCardiacOutput.sqf b/addons/medical/functions/fnc_getCardiacOutput.sqf
deleted file mode 100644
index a22bb3d5d9..0000000000
--- a/addons/medical/functions/fnc_getCardiacOutput.sqf
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * fn_getCardiacOutput.sqf
- * @Descr: Get the cardiac output from the Heart, based on current Heart Rate and Blood Volume.
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT]
- * @Return: NUMBER Current cardiac output.
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-/*
- Cardiac output (Q or or CO ) is the volume of blood being pumped by the heart, in particular by a left or right ventricle in the time interval of one minute. CO may be measured in many ways, for example dm3/min (1 dm3 equals 1 litre).
-
- Source: http://en.wikipedia.org/wiki/Cardiac_output
-*/
-
-// to limit the amount of complex calculations necessary, we take a set modifier to calculate Stroke Volume.
-#define MODIFIER_CARDIAC_OUTPUT 19.04761
-
-private "_unit";
-_unit = _this select 0;
-
-((_unit getvariable [QGVAR(bloodVolume), 100])/MODIFIER_CARDIAC_OUTPUT) + ((_unit getvariable [QGVAR(heartRate), 80])/80-1);
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getCurrentSelectedInjuryData.sqf b/addons/medical/functions/fnc_getCurrentSelectedInjuryData.sqf
deleted file mode 100644
index 93e2a6c871..0000000000
--- a/addons/medical/functions/fnc_getCurrentSelectedInjuryData.sqf
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * fn_getCurrentSelectedInjuryData.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_return", "_current"];
-_return = "";
-if (dialog) then {
- _current = lbCurSel 213;
- _return = lbData [213,_current];
-};
-_return;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getHeartRateChange.sqf b/addons/medical/functions/fnc_getHeartRateChange.sqf
deleted file mode 100644
index a3c0c239cd..0000000000
--- a/addons/medical/functions/fnc_getHeartRateChange.sqf
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * fn_getHeartRateChange.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return: void
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-#define HEART_RATE_MODIFIER 0.02
-
-private ["_unit", "_heartRate", "_hrIncrease", "_bloodLoss", "_time", "_values", "_adjustment", "_adjustments", "_additionalIncrease", "_change", "_callBack", "_bloodVolume"];
-_unit = _this select 0;
-_hrIncrease = 0;
-if (!(_unit getvariable [QGVAR(inCardiacArrest),false])) then {
- _heartRate = _unit getvariable [QGVAR(heartRate), 80];
- _bloodLoss = _unit call FUNC(getBloodLoss);
-
- _adjustment = _unit getvariable [QGVAR(heartRateAdjustments), []];
- {
- _values = (_x select 0);
- if (abs _values > 0) then {
- _time = (_x select 1);
- _callBack = _x select 2;
- if (_time <= 0) then {
- _time = 1;
- };
- _change = (_values / _time);
- _hrIncrease = _hrIncrease + _change;
-
- if ( (_time - 1) < 0) then {
- _time = 0;
- _adjustment set [_foreachIndex, ObjNull];
- [_unit] call _callBack;
- } else {
- _time = _time - 1;
- _adjustment set [_foreachIndex, [_values - _change, _time]];
- };
- } else {
- _adjustment set [_foreachIndex, ObjNull];
- };
-
- }foreach _adjustment;
- _adjustment = _adjustment - [ObjNull];
- _unit setvariable [QGVAR(heartRateAdjustments), _adjustment];
-
- _bloodVolume = _unit getvariable [QGVAR(bloodVolume), 100];
- if (_bloodVolume > 75) then {
- if (_bloodLoss >0.0) then {
- if (_bloodLoss <0.5) then {
- if (_heartRate < 126) then {
- _hrIncrease = _hrIncrease + 0.05;
- };
- } else {
- if (_bloodLoss < 1) then {
- if (_heartRate < 161) then {
- _hrIncrease = _hrIncrease + 0.1;
- };
- } else {
- if (_heartRate < 220) then {
- _hrIncrease = _hrIncrease + 0.15;
- };
- };
- };
- } else {
- // Stabalize it
- if (_heartRate < (60 + round(random(10)))) then {
- _hrIncrease = _hrIncrease + HEART_RATE_MODIFIER;
- } else {
- if (_heartRate > (77 + round(random(10)))) then {
- _hrIncrease = _hrIncrease - HEART_RATE_MODIFIER;
- };
- };
- };
- } else {
- _hrIncrease = _hrIncrease - HEART_RATE_MODIFIER;
- };
-};
-_hrIncrease
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getNewDamageBodyPart.sqf b/addons/medical/functions/fnc_getNewDamageBodyPart.sqf
deleted file mode 100644
index ec1efcab9f..0000000000
--- a/addons/medical/functions/fnc_getNewDamageBodyPart.sqf
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * fnc_getNewDamageBodyPart.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_selectionName","_newDamage", "_previousDamage", "_origDamage", "_number"];
-_unit = _this select 0;
-_amountOfDamage = _this select 1;
-_number = _this select 2;
-
-_previousDamage = _unit getvariable [QGVAR(bodyPartStatusPrevious), [0,0,0,0,0,0]];
-_newDamage = _amountOfDamage - (_previousDamage select _number);
-_previousDamage set [_number, _newDamage];
-[_unit,QGVAR(bodyPartStatusPrevious),_previousDamage] call EFUNC(common,setDefinedVariable);
-
-
-_origDamage = [_unit,QGVAR(bodyPartStatus),[0,0,0,0,0,0]] call EFUNC(common,getDefinedVariable);
-_origDamage set [_number, (_origDamage select _number) + _newDamage]; /* We are storing the total Damage done on a body part for determining the damage properly */
-[_unit,QGVAR(bodyPartStatus),_origDamage] call EFUNC(common,setDefinedVariable);
-
-_newDamage
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getQuickViewLog.sqf b/addons/medical/functions/fnc_getQuickViewLog.sqf
deleted file mode 100644
index 356c08391e..0000000000
--- a/addons/medical/functions/fnc_getQuickViewLog.sqf
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * fn_getQuickViewLog.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private["_unit"];
-_unit = _this select 0;
-_log = [_unit,QGVAR(quickViewLog)] call EFUNC(common,getDefinedVariable);
-if (isnil "_log") then {
- _log = [];
-};
-if (typeName _log != typeName []) then {
- _log = [];
-};
-_log
diff --git a/addons/medical/functions/fnc_getSelectedBodyPart.sqf b/addons/medical/functions/fnc_getSelectedBodyPart.sqf
deleted file mode 100644
index 6e018c2aac..0000000000
--- a/addons/medical/functions/fnc_getSelectedBodyPart.sqf
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * fn_getSelectedBodyPart.sqf
- * @Descr: Get the current selected body part for client
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return: STRING bodyPart selected
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-if (isnil QGVAR(selectedBodyPart)) then {
- GVAR(selectedBodyPart) = "head";
-};
-GVAR(selectedBodyPart)
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getTreatmentOptions.sqf b/addons/medical/functions/fnc_getTreatmentOptions.sqf
deleted file mode 100644
index b2bd75dc78..0000000000
--- a/addons/medical/functions/fnc_getTreatmentOptions.sqf
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * fnc_getTreatmentOptions.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-
-private ["_caller","_target","_category", "_result", "_nameCaller", "_nameTarget"];
-_caller = _this select 0;
-_target = _this select 1;
-_category = _this select 2;
-
-if ((_category == "advanced" || _category == "airway") && (_caller == _target)) exitwith {
- [];
-};
-
-if (!([_caller] call EFUNC(common,canInteract))) exitwith {
- [];
-};
-
-if (([_caller] call EFUNC(common,beingCarried))) exitwith {
- [];
-};
-
-if (!(isNull([_caller] call EFUNC(common,getCarriedObj))) && _category != "drag") exitwith {
- [];
-};
-
-_nameCaller = [_caller] call EFUNC(common,getName);
-_nameTarget = [_Target] call EFUNC(common,getName);
-
-_result = [];
-{
- if ([_caller, _target] call (_x select 2)) then {
-
- private ["_caller", "_target", "_category"];
-
- // title, code, tooltip
- _result pushback [format[_x select 0, _nameCaller, _nameTarget], _x select 3, format[_x select 1, _nameCaller, _nameTarget]];
- };
-}foreach (missionNamespace getvariable [QGVAR(registeredTreatmentOptions_)+_category, []]);
-
-_result;
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getTriageList.sqf b/addons/medical/functions/fnc_getTriageList.sqf
deleted file mode 100644
index 89660d7c97..0000000000
--- a/addons/medical/functions/fnc_getTriageList.sqf
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * fn_getTriageList.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private["_unit"];
-_unit = _this select 0;
-_log = [_unit,QGVAR(triageCard)] call EFUNC(common,getDefinedVariable);
-if (isnil "_log") then {
- _log = [];
-};
-if (typeName _log != typeName []) then {
- _log = [];
-};
-_log
diff --git a/addons/medical/functions/fnc_getTriageStatus.sqf b/addons/medical/functions/fnc_getTriageStatus.sqf
deleted file mode 100644
index 58b2f3f0d5..0000000000
--- a/addons/medical/functions/fnc_getTriageStatus.sqf
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * fn_getTriageStatus.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_return","_status"];
-_unit = _this select 0;
-_status = _unit getvariable [QGVAR(triageLevel), -1];
-_return = switch (_status) do {
- case 0: {["None",0,[0,0,0,0.7]]}; // none
- case 1: {["Minor",1,[0,0.5,0,0.7]]};
- case 2: {["Delayed",2,[0.77,0.51,0.08,0.7]]};
- case 3: {["Immediate",3,[1,0.2,0.2,0.7]]};
- case 4: {["Deceased",4,[0,0,0,0.7]]};
- default {["None",0,[0,0,0,0.7]]};
-};
-_return
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getTypeOfDamage.sqf b/addons/medical/functions/fnc_getTypeOfDamage.sqf
deleted file mode 100644
index 80bbb0c972..0000000000
--- a/addons/medical/functions/fnc_getTypeOfDamage.sqf
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * fn_getTypeOfDamage.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-private ["_typeOfProjectile","_typeOfInjury"];
-_typeOfProjectile = _this select 0;
-_typeOfInjury = switch (true) do {
- case (_typeOfProjectile iskindof "BulletBase"): {"Bullet"};
- case (_typeOfProjectile iskindof "GrenadeCore"): {"Grenade"};
- case (_typeOfProjectile iskindof "TimeBombCore"): {"Explosive"};
- case (_typeOfProjectile iskindof "MineCore"): {"Explosive"};
- case (_typeOfProjectile iskindof "FuelExplosion"): {"Explosive"};
- case (_typeOfProjectile iskindof "ShellBase"): {"Shell"};
- case (_typeOfProjectile iskindof "RocketBase"): {"Explosive"};
- case (_typeOfProjectile iskindof "MissileBase"): {"Explosive"};
- case (_typeOfProjectile iskindof "LaserBombCore"): {"Explosive"};
- case (_typeOfProjectile iskindof "BombCore"): {"Explosive"};
- case (_typeOfProjectile iskindof "Grenade"): {"Grenade"};
- case (_typeOfProjectile == "VehicleCrash"): {"VehicleCrash"};
- default {"Unknown"};
-};
-_typeOfInjury
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_getUnconsciousCondition.sqf b/addons/medical/functions/fnc_getUnconsciousCondition.sqf
deleted file mode 100644
index 097a5682ec..0000000000
--- a/addons/medical/functions/fnc_getUnconsciousCondition.sqf
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * fn_getUnconsciousCondition.sqf
- * @Descr: get whatever or not a unit should be or stay unconscious
- * @Author: Glowbal
- *
- * @Arguments: [unit OBJECT]
- * @Return: BOOL True when the unit should be unconscious
- * @PublicAPI: true
- */
-
-#include "script_component.hpp"
-
-private ["_unit","_return"];
-_unit = _this select 0;
-
-if (isnil QGVAR(unconsciousConditions_F)) then {
- GVAR(unconsciousConditions_F) = [];
-};
-
-_return = false;
-{
- if (typeName _x == typeName {}) then {
- if (([_unit] call _x)) then {
- _return = true;
- };
- };
- if (_return) exitwith{};
-}foreach GVAR(unconsciousConditions_F);
-_return
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_handleBandageOpening.sqf b/addons/medical/functions/fnc_handleBandageOpening.sqf
deleted file mode 100644
index cc27dbdee7..0000000000
--- a/addons/medical/functions/fnc_handleBandageOpening.sqf
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * fn_handleBandageOpening.sqf
- * @Descr: N/A
- * @Author: Glowbal
- *
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
- */
-
-#include "script_component.hpp"
-
-#define CFG_DEFAULT_WAITING_TIME 900 + random(120)
-#define WAITINGTIME 1
-#define RATIO 2
-#define CHANCE 3
-
-private ["_person","_amount","_bodyPart","_woundClass","_item","_config","_found", "_waitingTime", "_selectedConfig"];
-_person = _this select 0;
-_amount = _this select 1;
-_bodyPart = _this select 2;
-_woundClass = _this select 3;
-_item = _this select 4;
-
-// classname, waiting time until wound opens, ratio in which it start bleeding again, chance of the wound ever opening up //
-_config = [
- ["ACE_bandage_basic", 900 + random (120), 0.75, 0.4],
- ["ACE_packing_bandage", 1200 + random (120), 0.5, 0.6],
- ["ACE_bandageElastic", 900 + random (900), 0.75, 0.2],
- ["ACE_quikclot", 1, 0.1, 0],
- ["default", 1, CFG_DEFAULT_WAITING_TIME, 1]
-];
-_selectedConfig = _config select (count _config - 1);
-_waitingTime = -1;
-
-_found = false;
-{
- if (_item == _x select 0) exitwith {
- _found = true;
- if (random(1)> (1 - (_x select CHANCE))) then {
-
- _waitingTime = (_x select WAITINGTIME);
- _selectedConfig = _x;
- };
- };
-}foreach _config;
-
-if (!_found && (random(1)>0.2)) then {
- _waitingTime = CFG_DEFAULT_WAITING_TIME;
-};
-
-if (_waitingTime > 0) then {
- [{
- private ["_params", "_config", "_person", "_amount","_bodyPart","_woundClass","_item", "_bandagedWounds","_bandagedBodyPart","_bandagedWoundClass","_openWounds", "_openWoundsBodyPart","_openWoundClass"];
- _params = _this select 0;
- _config = _this select 1;
-
- _person = _params select 0;
- _amount = _params select 1;
- _bodyPart = _params select 2;
- _woundClass = _params select 3;
- _item = _params select 4;
-
- _bandagedWounds = [_person,QGVAR(bandagedWounds)] call EFUNC(common,getDefinedVariable);
- _bandagedBodyPart = _bandagedWounds select _bodyPart;
- _bandagedWoundClass = _bandagedBodyPart select _woundClass;
- if (_bandagedWoundClass >= _amount) then {
- _openWounds =[_person,QGVAR(openWounds)] call EFUNC(common,getDefinedVariable);
- _openWoundsBodyPart = _openWounds select _bodyPart;
- _openWoundClass = _openWoundsBodyPart select _woundClass;
-
- _bandagedBodyPart set [_woundClass,_bandagedWoundClass - (_amount * (_config select RATIO))];
- _openWoundsBodyPart set [_woundClass,_openWoundClass + (_amount * (_config select RATIO))];
-
- _bandagedWounds set[_bodyPart,_bandagedBodyPart];
- _openWounds set[_bodyPart,_openWoundsBodyPart];
- [_person,QGVAR(openWounds),_openWounds] call EFUNC(common,setDefinedVariable);
- [_person,QGVAR(bandagedWounds),_bandagedWounds] call EFUNC(common,setDefinedVariable);
-
- ["Medical_onWoundsReopened", [_person, (_amount * (_config select RATIO)), _bodyPart, _woundClass, _item]] call ace_common_fnc_localEvent;
- };
- }, [_this, _selectedConfig], _waitingTime, _waitingTime] call EFUNC(common,waitAndExecute);
-};
\ No newline at end of file
diff --git a/addons/medical/functions/fnc_handleDamage.sqf b/addons/medical/functions/fnc_handleDamage.sqf
index a157a0b2ae..53ec381b1e 100644
--- a/addons/medical/functions/fnc_handleDamage.sqf
+++ b/addons/medical/functions/fnc_handleDamage.sqf
@@ -1,93 +1,49 @@
-/**
- * fn_handleDamage.sqf
- * @Descr: N/A
- * @Author: Glowbal
+/*
+ * Author: KoffeinFlummi
+ * Main HandleDamage EH function.
*
- * @Arguments: []
- * @Return:
- * @PublicAPI: false
+ * Arguments:
+ * 0: Unit That Was Hit