port injury parse fnc to medical damage

This commit is contained in:
commy2 2016-09-26 20:25:14 +02:00
parent 8fd7e8335a
commit 9f6baca424
10 changed files with 12 additions and 9 deletions

View File

@ -15,7 +15,6 @@ PREP(isInMedicalVehicle);
PREP(isInStableCondition); PREP(isInStableCondition);
PREP(isMedic); PREP(isMedic);
PREP(isMedicalVehicle); PREP(isMedicalVehicle);
PREP(parseConfigForInjuries);
PREP(selectionNameToNumber); PREP(selectionNameToNumber);
PREP(setHitPointDamage); PREP(setHitPointDamage);
PREP(setStructuralDamage); PREP(setStructuralDamage);

View File

@ -7,7 +7,6 @@ ADDON = false;
GVAR(HITPOINTS) = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"]; GVAR(HITPOINTS) = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
GVAR(SELECTIONS) = ["head", "body", "hand_l", "hand_r", "leg_l", "leg_r"]; GVAR(SELECTIONS) = ["head", "body", "hand_l", "hand_r", "leg_l", "leg_r"];
call FUNC(parseConfigForInjuries);
GVAR(STATE_MACHINE) = (configFile >> "ACE_Medical_StateMachine") call FUNC(createStateMachine); GVAR(STATE_MACHINE) = (configFile >> "ACE_Medical_StateMachine") call FUNC(createStateMachine);
ADDON = true; ADDON = true;

View File

@ -15,7 +15,6 @@ class CfgPatches {
}; };
#include "ACE_Settings.hpp" #include "ACE_Settings.hpp"
#include "ACE_Medical_Injuries.hpp"
#include "ACE_Medical_StateMachine.hpp" #include "ACE_Medical_StateMachine.hpp"
#include "CfgEden.hpp" #include "CfgEden.hpp"

View File

@ -2,5 +2,7 @@ PREP(airwayHandler);
PREP(fracturesHandler); PREP(fracturesHandler);
PREP(getTypeOfDamage); PREP(getTypeOfDamage);
PREP(internalInjuriesHandler); PREP(internalInjuriesHandler);
PREP(parseConfigForInjuries);
PREP(woundsHandler); PREP(woundsHandler);
PREP(woundsHandlerSqf); PREP(woundsHandlerSqf);

View File

@ -4,6 +4,8 @@ ADDON = false;
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"
call FUNC(parseConfigForInjuries);
[QEGVAR(medical_engine,woundReceived), { [QEGVAR(medical_engine,woundReceived), {
params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"]; params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"];

View File

@ -14,4 +14,6 @@ class CfgPatches {
}; };
}; };
#include "ACE_Medical_Injuries.hpp"
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"

View File

@ -2,9 +2,9 @@
#define COMPONENT_BEAUTIFIED Medical Damage #define COMPONENT_BEAUTIFIED Medical Damage
#include "\z\ace\addons\main\script_mod.hpp" #include "\z\ace\addons\main\script_mod.hpp"
//#define DEBUG_MODE_FULL #define DEBUG_MODE_FULL
//#define DISABLE_COMPILE_CACHE #define DISABLE_COMPILE_CACHE
//#define CBA_DEBUG_SYNCHRONOUS #define CBA_DEBUG_SYNCHRONOUS
#define ENABLE_PERFORMANCE_COUNTERS #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_MEDICAL_DAMAGE #ifdef DEBUG_ENABLED_MEDICAL_DAMAGE

View File

@ -2,9 +2,9 @@
#define COMPONENT_BEAUTIFIED Medical (Engine) #define COMPONENT_BEAUTIFIED Medical (Engine)
#include "\z\ace\addons\main\script_mod.hpp" #include "\z\ace\addons\main\script_mod.hpp"
#define DEBUG_MODE_FULL //#define DEBUG_MODE_FULL
#define DISABLE_COMPILE_CACHE //#define DISABLE_COMPILE_CACHE
#define CBA_DEBUG_SYNCHRONOUS //#define CBA_DEBUG_SYNCHRONOUS
//#define ENABLE_PERFORMANCE_COUNTERS //#define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_MEDICAL_ENGINE #ifdef DEBUG_ENABLED_MEDICAL_ENGINE