2016-09-18 17:48:49 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2019-03-30 14:56:21 +00:00
|
|
|
[QEGVAR(medical_status,initialized), FUNC(checkItems)] call CBA_fnc_addEventHandler;
|
2017-03-25 16:36:37 +00:00
|
|
|
["loadout", FUNC(checkItems)] call CBA_fnc_addPlayerEventHandler;
|
|
|
|
|
2018-07-18 18:13:25 +00:00
|
|
|
// Handle bodybags and litter on server
|
2016-09-19 08:05:16 +00:00
|
|
|
if (isServer) then {
|
|
|
|
[QGVAR(createLitterServer), FUNC(litterHandleCreate)] call CBA_fnc_addEventHandler;
|
2018-07-18 18:13:25 +00:00
|
|
|
["ace_placedInBodyBag", FUNC(serverRemoveBody)] call CBA_fnc_addEventHandler;
|
2016-09-19 08:05:16 +00:00
|
|
|
};
|
2016-10-05 22:54:57 +00:00
|
|
|
|
|
|
|
// treatment events
|
|
|
|
[QGVAR(treatmentBandageLocal), FUNC(treatmentBandageLocal)] call CBA_fnc_addEventHandler;
|
2016-10-13 08:12:28 +00:00
|
|
|
[QGVAR(treatmentTourniquetLocal), FUNC(treatmentTourniquetLocal)] call CBA_fnc_addEventHandler;
|
2016-10-05 22:54:57 +00:00
|
|
|
[QGVAR(treatmentMedicationLocal), FUNC(treatmentMedicationLocal)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(treatmentIVLocal), FUNC(treatmentIVLocal)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(treatmentCPRLocal), FUNC(treatmentCPRLocal)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(treatmentFullHealLocal), FUNC(treatmentFullHealLocal)] call CBA_fnc_addEventHandler;
|
2019-05-12 04:13:59 +00:00
|
|
|
[QGVAR(treatmentSplintLocal), FUNC(splintLocal)] call CBA_fnc_addEventHandler;
|
2016-10-13 19:08:41 +00:00
|
|
|
|
|
|
|
// action events
|
|
|
|
[QGVAR(actionCheckPulseLocal), FUNC(actionCheckPulseLocal)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(actionCheckBloodPressureLocal), FUNC(actionCheckBloodPressureLocal)] call CBA_fnc_addEventHandler;
|
2016-10-13 19:21:42 +00:00
|
|
|
[QGVAR(actionPlaceInBodyBag), FUNC(actionPlaceInBodyBag)] call CBA_fnc_addEventHandler;
|
2019-04-07 22:41:28 +00:00
|
|
|
|
|
|
|
// log events
|
|
|
|
[QGVAR(addToMedicalLog), FUNC(addToLog)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(addToTriageCard), FUNC(addToTriageCard)] call CBA_fnc_addEventHandler;
|