Skip to content

Commit

Permalink
~ Fixed : Medical Engine Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldfront15 committed Sep 8, 2024
1 parent 3447c23 commit 4f7860d
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/medical/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\ifa3_comp_ace\addons\medical
52 changes: 52 additions & 0 deletions addons/medical/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
};
17 changes: 17 additions & 0 deletions addons/medical/config.cpp
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 5 additions & 0 deletions addons/medical/script_component.hpp
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 4f7860d

Please sign in to comment.