mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
port injury parse fnc to medical damage
This commit is contained in:
parent
8fd7e8335a
commit
9f6baca424
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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"
|
||||||
|
@ -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);
|
||||||
|
@ -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"];
|
||||||
|
|
||||||
|
@ -14,4 +14,6 @@ class CfgPatches {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "ACE_Medical_Injuries.hpp"
|
||||||
|
|
||||||
#include "CfgEventHandlers.hpp"
|
#include "CfgEventHandlers.hpp"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user