From 4f7860d737188728bf074f38ede0662748f085ac Mon Sep 17 00:00:00 2001 From: Coldfront15 Date: Sun, 8 Sep 2024 08:56:46 -0700 Subject: [PATCH] ~ Fixed : Medical Engine Deprecated --- addons/medical/$PBOPREFIX$ | 1 + addons/medical/CfgVehicles.hpp | 52 +++++++++++++++++++++++++++++ addons/medical/config.cpp | 17 ++++++++++ addons/medical/script_component.hpp | 5 +++ 4 files changed, 75 insertions(+) create mode 100644 addons/medical/$PBOPREFIX$ create mode 100644 addons/medical/CfgVehicles.hpp create mode 100644 addons/medical/config.cpp create mode 100644 addons/medical/script_component.hpp diff --git a/addons/medical/$PBOPREFIX$ b/addons/medical/$PBOPREFIX$ new file mode 100644 index 0000000..ae7cff0 --- /dev/null +++ b/addons/medical/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ifa3_comp_ace\addons\medical diff --git a/addons/medical/CfgVehicles.hpp b/addons/medical/CfgVehicles.hpp new file mode 100644 index 0000000..9f6f4ba --- /dev/null +++ b/addons/medical/CfgVehicles.hpp @@ -0,0 +1,52 @@ +class CfgVehicles +{ + class O_Soldier_base_F; + class LIB_SOV_Soldier_base: O_Soldier_base_F + { + class HitPoints + { + class HitLeftArm + { + armor = 1; + material = -1; + name = "hand_l"; + passThrough = 1; + radius = 0.08; + explosionShielding = 1; + visual = "injury_hands"; + minimalHit = 0.01; + }; + class HitRightArm: HitLeftArm + { + name = "hand_r"; + }; + class HitLeftLeg + { + armor = 1; + material = -1; + name = "leg_l"; + passThrough = 1; + radius = 0.1; + explosionShielding = 1; + visual = "injury_legs"; + minimalHit = 0.01; + }; + class HitRightLeg: HitLeftLeg + { + name = "leg_r"; + }; + class ACE_HDBracket + { + armor = 1; + material = -1; + name = "head"; + passThrough = 0; + radius = 1; + explosionShielding = 1; + visual = ""; + minimalHit = 0; + depends = "HitHead"; + }; + }; + }; +}; \ No newline at end of file diff --git a/addons/medical/config.cpp b/addons/medical/config.cpp new file mode 100644 index 0000000..20ab6cb --- /dev/null +++ b/addons/medical/config.cpp @@ -0,0 +1,17 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_medical_engine","WW2_Assets_c_Characters_ZZZ_LastLoaded_c"}; + author = CSTRING(Team); + authors[] = { "Kerc" }; + authorUrl = CSTRING(Url); + url = CSTRING(Url); + VERSION_CONFIG; + }; +}; + +#include "CfgVehicles.hpp" diff --git a/addons/medical/script_component.hpp b/addons/medical/script_component.hpp new file mode 100644 index 0000000..228358d --- /dev/null +++ b/addons/medical/script_component.hpp @@ -0,0 +1,5 @@ +#define COMPONENT medical +#include "\z\ifa3_comp_ace\addons\main\script_mod.hpp" + +#include "\z\ace\addons\main\script_macros.hpp" +#include "\z\ace\addons\medical_engine\script_macros_config.hpp"