From ec169422d9f897566d2f7000d1b3b60973d863b7 Mon Sep 17 00:00:00 2001 From: kerckasha Date: Fri, 3 Jan 2020 23:38:50 +1000 Subject: [PATCH] ~ Fixed: Missing hitpoints on RA units --- addons/medical/$PBOPREFIX$ | 1 + addons/medical/CfgVehicles.hpp | 10 ++++++++++ addons/medical/config.cpp | 17 +++++++++++++++++ addons/medical/script_component.hpp | 5 +++++ 4 files changed, 33 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..7bec64a --- /dev/null +++ b/addons/medical/CfgVehicles.hpp @@ -0,0 +1,10 @@ +class CfgVehicles { + + //units + class O_Soldier_base_F; + class LIB_SOV_Soldier_base: O_Soldier_base_F { + class HitPoints { + ADD_ACE_HITPOINTS(1,1); + }; + }; +}; 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"