2019-06-03 15:31:46 +00:00
|
|
|
class GVAR(actions) {
|
|
|
|
// - Bandages -------------------------------------------------------------
|
2016-10-13 07:47:52 +00:00
|
|
|
class BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Bandage);
|
|
|
|
displayNameProgress = CSTRING(Bandaging);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\bandage.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "bandage";
|
2019-06-03 15:31:46 +00:00
|
|
|
|
|
|
|
consumeItem = 1;
|
|
|
|
items[] = {"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_quikclot"};
|
|
|
|
|
|
|
|
medicRequired = 0;
|
2016-10-13 07:47:52 +00:00
|
|
|
allowSelfTreatment = 1;
|
2019-06-03 15:31:46 +00:00
|
|
|
allowedSelections[] = {"All"};
|
2019-03-30 20:44:58 +00:00
|
|
|
condition = QFUNC(canBandage);
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = TREATMENT_LOCATIONS_ALL;
|
|
|
|
|
|
|
|
treatmentTime = QFUNC(getBandageTime);
|
|
|
|
treatmentTimeSelfCoef = 1; // todo: this isn't used anywhere, remove?
|
|
|
|
|
|
|
|
callbackStart = "";
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackProgress = "";
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(bandage);
|
|
|
|
callbackFailure = "";
|
|
|
|
|
|
|
|
animationMedic = "AinvPknlMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationMedicProne = "AinvPpneMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationMedicSelf = "AinvPknlMstpSlayW[wpn]Dnon_medic";
|
|
|
|
animationMedicSelfProne = "AinvPpneMstpSlayW[wpn]Dnon_medic";
|
2016-09-18 17:48:49 +00:00
|
|
|
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {
|
2019-06-03 15:31:46 +00:00
|
|
|
{},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class FieldDressing: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_FieldDressing);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_fieldDressing"};
|
|
|
|
litter[] = {
|
2019-06-03 15:31:46 +00:00
|
|
|
{},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class PackingBandage: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_PackingBandage);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\packing_bandage.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_packingBandage"};
|
|
|
|
litter[] = {
|
2019-06-03 15:31:46 +00:00
|
|
|
{"ACE_MedicalLitter_packingBandage"},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class ElasticBandage: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_ElasticBandage);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_elasticBandage"};
|
|
|
|
litter[] = {
|
2019-06-03 15:31:46 +00:00
|
|
|
{},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class QuikClot: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_QuikClot);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_quikclot"};
|
|
|
|
litter[] = {
|
2019-06-03 15:31:46 +00:00
|
|
|
{"ACE_MedicalLitter_QuickClot"},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
2016-10-12 23:55:10 +00:00
|
|
|
|
2019-06-03 15:31:46 +00:00
|
|
|
// - Tourniquets ----------------------------------------------------------
|
|
|
|
class ApplyTourniquet: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Apply_Tourniquet);
|
|
|
|
displayNameProgress = CSTRING(Applying_Tourniquet);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\tourniquet.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
|
|
|
items[] = {"ACE_tourniquet"};
|
2020-10-29 16:07:30 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeTourniquet);
|
2019-06-03 15:31:46 +00:00
|
|
|
condition = QUOTE(!([ARR_2(_patient,_bodyPart)] call FUNC(hasTourniquetAppliedTo)));
|
|
|
|
callbackSuccess = QFUNC(tourniquet);
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
2023-05-16 05:47:00 +00:00
|
|
|
allowedUnderwater = 1;
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
2019-06-03 15:31:46 +00:00
|
|
|
class RemoveTourniquet: ApplyTourniquet {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_RemoveTourniquet);
|
|
|
|
displayNameProgress = CSTRING(RemovingTourniquet);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {};
|
2019-06-03 15:31:46 +00:00
|
|
|
condition = QUOTE([ARR_2(_patient,_bodyPart)] call FUNC(hasTourniquetAppliedTo));
|
|
|
|
callbackSuccess = QFUNC(tourniquetRemove);
|
2023-05-16 05:47:00 +00:00
|
|
|
allowedUnderwater = 1;
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
2019-06-03 15:31:46 +00:00
|
|
|
|
|
|
|
// - Splint ---------------------------------------------------------------
|
2019-05-12 04:13:59 +00:00
|
|
|
class Splint: BasicBandage {
|
|
|
|
displayName = CSTRING(Apply_Splint);
|
|
|
|
displayNameProgress = CSTRING(Applying_Splint);
|
|
|
|
category = "bandage";
|
|
|
|
icon = QPATHTOEF(medical_gui,ui\splint.paa);
|
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
|
|
|
items[] = {"ACE_splint"};
|
2020-10-29 16:07:30 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeSplint);
|
2019-05-12 04:13:59 +00:00
|
|
|
callbackSuccess = QFUNC(splint);
|
2019-06-03 15:31:46 +00:00
|
|
|
condition = QFUNC(canSplint);
|
2019-06-22 21:47:35 +00:00
|
|
|
litter[] = {
|
|
|
|
{"ACE_MedicalLitter_splint"}, {}, {}
|
|
|
|
};
|
2019-05-12 04:13:59 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
|
2019-06-03 15:31:46 +00:00
|
|
|
// - Syringes -------------------------------------------------------------
|
2016-12-15 13:06:09 +00:00
|
|
|
class Morphine: FieldDressing {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Inject_Morphine);
|
|
|
|
displayNameProgress = CSTRING(Injecting_Morphine);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\auto_injector.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
|
|
|
category = "medication";
|
|
|
|
items[] = {"ACE_morphine"};
|
|
|
|
condition = "";
|
2020-10-31 04:40:10 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeAutoinjector);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(medication);
|
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";
|
2016-10-13 07:47:52 +00:00
|
|
|
sounds[] = {{QPATHTO_R(sounds\Inject.ogg),1,1,50}};
|
2019-06-03 15:31:46 +00:00
|
|
|
litter[] = {{"ACE_MedicalLitter_morphine"}};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
2016-10-20 00:14:11 +00:00
|
|
|
class Adenosine: Morphine {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Inject_Adenosine);
|
|
|
|
displayNameProgress = CSTRING(Injecting_Adenosine);
|
2018-08-06 16:08:43 +00:00
|
|
|
condition = QGVAR(advancedMedication);
|
2016-10-20 00:14:11 +00:00
|
|
|
items[] = {"ACE_adenosine"};
|
2019-06-03 15:31:46 +00:00
|
|
|
litter[] = {{"ACE_MedicalLitter_adenosine"}};
|
2016-10-20 00:14:11 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
class Epinephrine: Morphine {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Inject_Epinephrine);
|
|
|
|
displayNameProgress = CSTRING(Injecting_Epinephrine);
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = QGVAR(medicEpinephrine);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_epinephrine"};
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = QGVAR(locationEpinephrine);
|
|
|
|
litter[] = {{"ACE_MedicalLitter_epinephrine"}};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-05 13:56:25 +00:00
|
|
|
// - Generic Medication ---------------------------------------------------
|
|
|
|
class Painkillers: Morphine {
|
|
|
|
displayName = CSTRING(Administer_Painkillers);
|
|
|
|
displayNameProgress = CSTRING(Administering_Painkillers);
|
|
|
|
icon = QPATHTOEF(medical_gui,ui\painkillers.paa);
|
|
|
|
allowedSelections[] = {"Head"};
|
|
|
|
medicRequired = 0;
|
|
|
|
items[] = {"ACE_painkillers"};
|
|
|
|
treatmentTime = 4;
|
|
|
|
sounds[] = {{QPATHTO_R(sounds\Pills.ogg),1,1,50}};
|
|
|
|
litter[] = {{"Land_PainKillers_F"}}; // just use BI's model as litter
|
|
|
|
};
|
|
|
|
|
2019-06-03 15:31:46 +00:00
|
|
|
// - IV Bags --------------------------------------------------------------
|
2016-10-13 07:47:52 +00:00
|
|
|
class BloodIV: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Blood4_1000);
|
|
|
|
displayNameProgress = CSTRING(Transfusing_Blood);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\iv.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
2018-08-06 16:08:43 +00:00
|
|
|
allowSelfTreatment = QGVAR(allowSelfIV);
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "advanced";
|
2020-01-15 23:28:02 +00:00
|
|
|
medicRequired = QGVAR(medicIV);
|
2020-10-29 16:07:30 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeIV);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_bloodIV"};
|
2021-02-27 17:06:37 +00:00
|
|
|
treatmentLocations = QGVAR(locationIV);
|
2016-10-13 07:47:52 +00:00
|
|
|
condition = "";
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(ivBag);
|
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class BloodIV_500: BloodIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Blood4_500);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_bloodIV_500"};
|
|
|
|
};
|
|
|
|
class BloodIV_250: BloodIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Blood4_250);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_bloodIV_250"};
|
|
|
|
};
|
|
|
|
class PlasmaIV: BloodIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Plasma4_1000);
|
|
|
|
displayNameProgress = CSTRING(Transfusing_Plasma);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_plasmaIV"};
|
2019-06-03 15:31:46 +00:00
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class PlasmaIV_500: PlasmaIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Plasma4_500);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_plasmaIV_500"};
|
|
|
|
};
|
|
|
|
class PlasmaIV_250: PlasmaIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Plasma4_250);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_plasmaIV_250"};
|
|
|
|
};
|
|
|
|
class SalineIV: BloodIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Saline4_1000);
|
|
|
|
displayNameProgress = CSTRING(Transfusing_Saline);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_salineIV"};
|
2019-06-03 15:31:46 +00:00
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class SalineIV_500: SalineIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Saline4_500);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_salineIV_500"};
|
|
|
|
};
|
|
|
|
class SalineIV_250: SalineIV {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Saline4_250);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_salineIV_250"};
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
|
|
|
|
2019-06-03 15:31:46 +00:00
|
|
|
// - Diagnose -------------------------------------------------------------
|
2016-10-13 07:47:52 +00:00
|
|
|
class Diagnose: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_Diagnose);
|
|
|
|
displayNameProgress = CSTRING(Actions_Diagnosing);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = "";
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "examine";
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = TREATMENT_LOCATIONS_ALL;
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"Head", "Body"};
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = 0;
|
2016-10-13 15:39:01 +00:00
|
|
|
treatmentTime = 2.5;
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {};
|
2021-09-03 19:50:54 +00:00
|
|
|
condition = QUOTE(GVAR(advancedDiagnose) == 0);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(diagnose);
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackFailure = "";
|
|
|
|
callbackProgress = "";
|
2019-06-03 15:31:46 +00:00
|
|
|
animationMedic = ""; // TODO
|
|
|
|
consumeItem = 0;
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class CheckPulse: Diagnose {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_CheckPulse);
|
|
|
|
displayNameProgress = CSTRING(Check_Pulse_Content);
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"All"};
|
2021-09-03 19:50:54 +00:00
|
|
|
condition = QUOTE(GVAR(advancedDiagnose) != 0);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(checkPulse);
|
|
|
|
animationMedicProne = "";
|
|
|
|
animationMedicSelfProne = "";
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class CheckBloodPressure: CheckPulse {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_CheckBloodPressure);
|
|
|
|
displayNameProgress = CSTRING(Check_Bloodpressure_Content);
|
2016-12-05 20:34:20 +00:00
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(checkBloodPressure);
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class CheckResponse: CheckPulse {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Check_Response);
|
|
|
|
displayNameProgress = CSTRING(Check_Response_Content);
|
2016-10-13 15:39:01 +00:00
|
|
|
allowedSelections[] = {"Head"};
|
2016-10-13 07:47:52 +00:00
|
|
|
allowSelfTreatment = 0;
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(checkResponse);
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
|
2019-06-03 15:31:46 +00:00
|
|
|
// - Misc -----------------------------------------------------------------
|
2016-10-13 07:47:52 +00:00
|
|
|
class BodyBag: BasicBandage {
|
2023-10-30 20:54:29 +00:00
|
|
|
displayName = CSTRING(PlaceInBodyBagBlack);
|
2018-07-18 18:13:25 +00:00
|
|
|
displayNameProgress = CSTRING(PlacingInBodyBag);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\bodybag.paa);
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "advanced";
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = TREATMENT_LOCATIONS_ALL;
|
2016-10-13 07:47:52 +00:00
|
|
|
allowSelfTreatment = 0;
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = 0;
|
2020-10-29 16:07:30 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeBodyBag);
|
2023-10-30 20:54:29 +00:00
|
|
|
items[] = {"ACE_bodyBag"};
|
2020-10-29 16:37:36 +00:00
|
|
|
condition = QFUNC(canPlaceInBodyBag);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackSuccess = QFUNC(placeInBodyBag);
|
|
|
|
consumeItem = 1;
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
2023-10-30 20:54:29 +00:00
|
|
|
class BodyBagBlue: BodyBag {
|
|
|
|
displayName = CSTRING(PlaceInBodyBagBlue);
|
|
|
|
items[] = {"ACE_bodyBag_blue"};
|
|
|
|
};
|
|
|
|
class BodyBagWhite: BodyBag {
|
|
|
|
displayName = CSTRING(PlaceInBodyBagWhite);
|
|
|
|
items[] = {"ACE_bodyBag_white"};
|
|
|
|
};
|
2023-09-24 19:57:08 +00:00
|
|
|
class Grave: BodyBag {
|
|
|
|
displayName = CSTRING(DigGrave);
|
|
|
|
displayNameProgress = CSTRING(DiggingGrave);
|
2023-10-01 18:55:13 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\grave.paa);
|
2023-09-24 19:57:08 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeGrave);
|
|
|
|
condition = QFUNC(canDigGrave);
|
|
|
|
callbackSuccess = QFUNC(placeInGrave);
|
|
|
|
items[] = {};
|
|
|
|
consumeItem = 0;
|
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
class CPR: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Actions_CPR);
|
|
|
|
displayNameProgress = CSTRING(Actions_PerformingCPR);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = "";
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "advanced";
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = TREATMENT_LOCATIONS_ALL;
|
2016-10-13 07:47:52 +00:00
|
|
|
allowedSelections[] = {"Body"};
|
|
|
|
allowSelfTreatment = 0;
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = 0;
|
2020-10-29 16:37:44 +00:00
|
|
|
treatmentTime = QGVAR(treatmentTimeCPR);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {};
|
2019-06-03 15:31:46 +00:00
|
|
|
condition = QFUNC(canCPR);
|
2019-06-28 00:01:20 +00:00
|
|
|
callbackSuccess = QFUNC(cprSuccess);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackFailure = QFUNC(cprFailure);
|
|
|
|
callbackProgress = QFUNC(cprProgress);
|
|
|
|
callbackStart = QFUNC(cprStart);
|
2019-06-22 20:55:42 +00:00
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDr_medic0";
|
|
|
|
animationMedicProne = "AinvPknlMstpSnonWnonDr_medic0";
|
2019-06-03 15:31:46 +00:00
|
|
|
animationMedicSelf = "";
|
|
|
|
animationMedicSelfProne = "";
|
|
|
|
consumeItem = 0;
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
2016-12-15 13:06:09 +00:00
|
|
|
class SurgicalKit: FieldDressing {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Use_SurgicalKit);
|
|
|
|
displayNameProgress = CSTRING(Stitching);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = QPATHTOEF(medical_gui,ui\surgical_kit.paa);
|
2016-12-05 20:34:20 +00:00
|
|
|
category = "advanced";
|
|
|
|
items[] = {"ACE_surgicalKit"};
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = QGVAR(locationSurgicalKit);
|
2019-08-12 19:05:59 +00:00
|
|
|
allowSelfTreatment = QGVAR(allowSelfStitch);
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = QGVAR(medicSurgicalKit);
|
|
|
|
treatmentTime = QFUNC(getStitchTime);
|
2019-04-03 11:36:37 +00:00
|
|
|
condition = QFUNC(canStitch);
|
2016-12-05 20:34:20 +00:00
|
|
|
callbackSuccess = "";
|
2023-03-06 20:17:01 +00:00
|
|
|
callbackStart = QFUNC(surgicalKitStart);
|
2019-06-03 15:31:46 +00:00
|
|
|
callbackProgress = QFUNC(surgicalKitProgress);
|
2023-03-06 20:17:01 +00:00
|
|
|
consumeItem = QGVAR(consumeSurgicalKit); // setting can be 0,1,2 - only 1 will consume items[]
|
2019-06-03 15:31:46 +00:00
|
|
|
animationMedic = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
litter[] = {{"ACE_MedicalLitter_gloves"}};
|
2016-12-05 20:34:20 +00:00
|
|
|
};
|
|
|
|
class PersonalAidKit: BasicBandage {
|
2018-07-18 18:13:25 +00:00
|
|
|
displayName = CSTRING(Use_Aid_Kit);
|
|
|
|
displayNameProgress = CSTRING(TreatmentAction);
|
2019-03-24 22:17:48 +00:00
|
|
|
icon = "";
|
2016-12-05 20:34:20 +00:00
|
|
|
category = "advanced";
|
2019-06-03 15:31:46 +00:00
|
|
|
condition = QUOTE(_patient call EFUNC(medical_status,isInStableCondition));
|
2016-12-05 20:34:20 +00:00
|
|
|
items[] = {"ACE_personalAidKit"};
|
2019-06-03 15:31:46 +00:00
|
|
|
treatmentLocations = QGVAR(locationPAK);
|
2020-01-04 12:42:51 +00:00
|
|
|
allowSelfTreatment = QGVAR(allowSelfPAK);
|
2019-06-03 15:31:46 +00:00
|
|
|
medicRequired = QGVAR(medicPAK);
|
|
|
|
treatmentTime = QFUNC(getHealTime);
|
|
|
|
callbackSuccess = QFUNC(fullHeal);
|
|
|
|
consumeItem = QGVAR(consumePAK);
|
|
|
|
animationMedic = "AinvPknlMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationMedicProne = "AinvPpneMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationMedicSelf = "";
|
|
|
|
animationMedicSelfProne = "";
|
|
|
|
litter[] = {
|
|
|
|
{"ACE_MedicalLitter_gloves"},
|
|
|
|
{"ACE_MedicalLitter_clean"},
|
|
|
|
{
|
|
|
|
{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"},
|
|
|
|
{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}
|
|
|
|
}
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|