mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e56cc0d74e
* Improve adjustment calcs / wound blood loss / medications fix func descriptions Calc wound blood loss on events reorder includes so scritpmacroMed has global effect trivial optimization for getCardiacOutput Fix var Fix wounds not reopening (nil _category) Fix surgical kit inherting canBandage conditional debug hitpoints Update ACE_Medical_Treatment_Actions.hpp Use woundBleeding for IS_BLEEDING macro rework medication vars comments Reset var in init / fullHeal Update addons/medical_treatment/functions/fnc_onMedicationUsage.sqf Co-Authored-By: PabstMirror <pabstmirror@gmail.com> * Change wound data array Drop unique id and merge classId and category * Splinting and treatment and gui * Add arm fractures and aim effects * localizations and event * fix * cleanup * Apply suggestions from code review Co-Authored-By: PabstMirror <pabstmirror@gmail.com> * formating, rename bone images * Apply suggestions from code review Co-Authored-By: PabstMirror <pabstmirror@gmail.com> * disable calls to extension * Update fnc_onMedicationUsage.sqf * Medical - Skip unneeded setVars on initUnit (#6949) * Medical - Transfer state machine state on locality (#6950) * Medical - Transfer state machine state on locality * Fix feedback isUnconscious var * Exclude AI * Make UAV excludes consistant, formating * Update fnc_treatmentFullHealLocal.sqf * reset fractures on respawn
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
#include "script_component.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP_RECOMPILE_START;
|
|
#include "XEH_PREP.hpp"
|
|
PREP_RECOMPILE_END;
|
|
|
|
#include "initSettings.sqf"
|
|
|
|
call FUNC(parseConfigForInjuries);
|
|
|
|
addMissionEventHandler ["Loaded",{
|
|
INFO("Mission Loaded - Reloading medical configs for extension");
|
|
// Reload configs into extension (handle full game restart)
|
|
call FUNC(parseConfigForInjuries);
|
|
}];
|
|
|
|
// decide which woundsHandler to use by whether the extension is present or not
|
|
// if ("ace_medical" callExtension "version" != "") then {
|
|
|
|
// DFUNC(woundsHandlerActive) = LINKFUNC(woundsHandler);
|
|
// } else {
|
|
INFO("Using woundsHandlerSQF");
|
|
DFUNC(woundsHandlerActive) = LINKFUNC(woundsHandlerSQF);
|
|
// };
|
|
|
|
[QEGVAR(medical,woundReceived), {
|
|
params ["_unit", "_woundedHitPoint", "_receivedDamage", "", "_ammo"];
|
|
|
|
private _typeOfDamage = _ammo call FUNC(getTypeOfDamage);
|
|
[_unit, _woundedHitPoint, _receivedDamage, _typeOfDamage] call FUNC(woundsHandlerActive);
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
ADDON = true;
|