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(isMedic);
PREP(isMedicalVehicle);
PREP(parseConfigForInjuries);
PREP(selectionNameToNumber);
PREP(setHitPointDamage);
PREP(setStructuralDamage);

View File

@ -7,7 +7,6 @@ ADDON = false;
GVAR(HITPOINTS) = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
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);
ADDON = true;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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