mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added proper addon basics to status, moved more functions into status
This commit is contained in:
parent
b89bc86e00
commit
f12d69e231
25
addons/medical_status/CfgEventHandlers.hpp
Normal file
25
addons/medical_status/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
class Extended_PreStart_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Extended_PreInit_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Extended_PostInit_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Extended_Init_EventHandlers {
|
||||||
|
class CAManBase {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call FUNC(install));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
0
addons/medical_status/XEH_PREP.sqf
Normal file
0
addons/medical_status/XEH_PREP.sqf
Normal file
9
addons/medical_status/XEH_preInit.sqf
Normal file
9
addons/medical_status/XEH_preInit.sqf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
ADDON = false;
|
||||||
|
|
||||||
|
PREP_RECOMPILE_START;
|
||||||
|
#include "XEH_PREP.hpp"
|
||||||
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
ADDON = true;
|
3
addons/medical_status/XEH_preStart.sqf
Normal file
3
addons/medical_status/XEH_preStart.sqf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
#include "XEH_PREP.hpp"
|
@ -13,3 +13,5 @@ class CfgPatches {
|
|||||||
VERSION_CONFIG;
|
VERSION_CONFIG;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "CfgEventHandlers.hpp"
|
||||||
|
@ -18,34 +18,41 @@ if (damage _unit > 0) then {
|
|||||||
_unit setDamage 0;
|
_unit setDamage 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
_unit setVariable [QGVAR(pain), 0, true];
|
// - Blood and heart ----------------------------------------------------------
|
||||||
_unit setVariable [QGVAR(bloodVolume), DEFAULT_BLOOD_VOLUME, true];
|
_unit setVariable [QGVAR(bloodVolume), DEFAULT_BLOOD_VOLUME, true];
|
||||||
_unit setVariable [QGVAR(isUnconscious), false, true];
|
|
||||||
_unit setVariable [QGVAR(partialHealCounter), 0, true];
|
|
||||||
|
|
||||||
// tourniquets
|
|
||||||
_unit setVariable [QGVAR(tourniquets), [0,0,0,0,0,0], true];
|
|
||||||
_unit setVariable [QGVAR(occludedMedications), nil, true]; //Delayed Medications (from tourniquets)
|
|
||||||
|
|
||||||
// wounds and injuries
|
|
||||||
_unit setVariable [QGVAR(openWounds), [], true];
|
|
||||||
_unit setVariable [QGVAR(bandagedWounds), [], true];
|
|
||||||
_unit setVariable [QGVAR(stitchedWounds), [], true];
|
|
||||||
|
|
||||||
// vitals
|
|
||||||
_unit setVariable [QGVAR(heartRate), DEFAULT_HEART_RATE, true];
|
_unit setVariable [QGVAR(heartRate), DEFAULT_HEART_RATE, true];
|
||||||
_unit setVariable [QGVAR(heartRateAdjustments), [], true];
|
_unit setVariable [QGVAR(heartRateAdjustments), [], true];
|
||||||
_unit setVariable [QGVAR(bloodPressure), [80, 120], true];
|
_unit setVariable [QGVAR(bloodPressure), [80, 120], true];
|
||||||
_unit setVariable [QGVAR(peripheralResistance), 100, true];
|
_unit setVariable [QGVAR(peripheralResistance), 100, true];
|
||||||
_unit setVariable [QGVAR(peripheralResistanceAdjustments), [], true];
|
_unit setVariable [QGVAR(peripheralResistanceAdjustments), [], true];
|
||||||
|
_unit setVariable [QGVAR(inCardiacArrest), false, true];
|
||||||
|
_unit setVariable [QGVAR(hasLostBlood), 0, true];
|
||||||
|
_unit setVariable [QGVAR(isBleeding), false, true];
|
||||||
|
|
||||||
|
// - Pain ---------------------------------------------------------------------
|
||||||
|
_unit setVariable [QGVAR(pain), 0, true];
|
||||||
|
_unit setVariable [QGVAR(hasPain), false, true];
|
||||||
|
_unit setVariable [QGVAR(painSuppress), 0, true];
|
||||||
|
_unit setVariable [QGVAR(painSuppressAdjustments), [], true];
|
||||||
|
|
||||||
|
// - Wounds -------------------------------------------------------------------
|
||||||
|
_unit setVariable [QGVAR(openWounds), [], true];
|
||||||
|
_unit setVariable [QGVAR(bandagedWounds), [], true];
|
||||||
|
_unit setVariable [QGVAR(stitchedWounds), [], true];
|
||||||
|
|
||||||
|
// - Misc ---------------------------------------------------------------------
|
||||||
|
_unit setVariable [QGVAR(isUnconscious), false, true];
|
||||||
|
|
||||||
|
// - Treatments ---------------------------------------------------------------
|
||||||
|
_unit setVariable [QGVAR(tourniquets), [0,0,0,0,0,0], true];
|
||||||
|
_unit setVariable [QGVAR(occludedMedications), nil, true]; //Delayed Medications (from tourniquets)
|
||||||
|
_unit setVariable [QGVAR(ivBags), nil, true];
|
||||||
|
_unit setVariable [QGVAR(partialHealCounter), 0, true];
|
||||||
|
|
||||||
// triage card and logs
|
// triage card and logs
|
||||||
_unit setVariable [QGVAR(triageLevel), 0, true];
|
_unit setVariable [QGVAR(triageLevel), 0, true];
|
||||||
_unit setVariable [QGVAR(triageCard), [], true];
|
_unit setVariable [QGVAR(triageCard), [], true];
|
||||||
|
|
||||||
// IVs
|
|
||||||
_unit setVariable [QGVAR(ivBags), nil, true];
|
|
||||||
|
|
||||||
// damage storage
|
// damage storage
|
||||||
_unit setVariable [QGVAR(bodyPartDamage), [0,0,0,0,0,0], true];
|
_unit setVariable [QGVAR(bodyPartDamage), [0,0,0,0,0,0], true];
|
||||||
#ifdef DEBUG_TESTRESULTS
|
#ifdef DEBUG_TESTRESULTS
|
||||||
@ -53,13 +60,6 @@ _unit setVariable [QGVAR(bodyPartStatus), [0,0,0,0,0,0], true];
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// generic medical admin
|
// generic medical admin
|
||||||
_unit setVariable [QGVAR(inCardiacArrest), false, true];
|
|
||||||
_unit setVariable [QGVAR(hasLostBlood), 0, true];
|
|
||||||
_unit setVariable [QGVAR(isBleeding), false, true];
|
|
||||||
_unit setVariable [QGVAR(hasPain), false, true];
|
|
||||||
_unit setVariable [QGVAR(painSuppress), 0, true];
|
|
||||||
_unit setVariable [QGVAR(painSuppressAdjustments), [], true];
|
|
||||||
|
|
||||||
private ["_allUsedMedication", "_logs"];
|
private ["_allUsedMedication", "_logs"];
|
||||||
|
|
||||||
// medication
|
// medication
|
Loading…
Reference in New Issue
Block a user