2016-09-18 17:48:49 +00:00
|
|
|
|
2016-09-29 14:00:19 +00:00
|
|
|
class GVAR(Actions) {
|
2016-10-13 07:47:52 +00:00
|
|
|
// --- bandages
|
|
|
|
class BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Bandage);
|
|
|
|
displayNameProgress = ECSTRING(medical,Bandaging);
|
|
|
|
category = "bandage";
|
|
|
|
treatmentLocations[] = {"All"};
|
|
|
|
allowedSelections[] = {"All"};
|
|
|
|
allowSelfTreatment = 1;
|
|
|
|
requiredMedic = 0;
|
2016-10-13 15:39:01 +00:00
|
|
|
treatmentTime = 8;
|
2016-10-13 07:47:52 +00:00
|
|
|
treatmentTimeSelfCoef = 1;
|
|
|
|
items[] = {{"ACE_fieldDressing", "ACE_packingBandage", "ACE_elasticBandage", "ACE_quikclot"}};
|
2016-10-13 15:14:43 +00:00
|
|
|
condition = QUOTE(!EGVAR(medical,advancedBandages));
|
2016-10-13 07:47:52 +00:00
|
|
|
itemConsumed = 1;
|
|
|
|
callbackSuccess = QFUNC(treatmentBandage);
|
|
|
|
callbackFailure = "";
|
|
|
|
callbackProgress = "";
|
2016-09-18 17:48:49 +00:00
|
|
|
|
2016-10-13 07:47:52 +00:00
|
|
|
animationPatient = "";
|
|
|
|
animationPatientUnconscious = "AinjPpneMstpSnonWrflDnon_rolltoback";
|
|
|
|
animationPatientUnconsciousExcludeOn[] = {"ainjppnemstpsnonwrfldnon"};
|
|
|
|
animationCaller = "AinvPknlMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationCallerProne = "AinvPpneMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationCallerSelf = "AinvPknlMstpSlayW[wpn]Dnon_medic";
|
|
|
|
animationCallerSelfProne = "AinvPpneMstpSlayW[wpn]Dnon_medic";
|
|
|
|
litter[] = {
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class FieldDressing: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_FieldDressing);
|
|
|
|
items[] = {"ACE_fieldDressing"};
|
2016-10-13 15:14:43 +00:00
|
|
|
condition = QEGVAR(medical,advancedBandages);
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class PackingBandage: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_PackingBandage);
|
|
|
|
items[] = {"ACE_packingBandage"};
|
2016-10-13 15:14:43 +00:00
|
|
|
condition = QEGVAR(medical,advancedBandages);
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {
|
|
|
|
{"All", "", {"ACE_MedicalLitter_packingBandage"}},
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class ElasticBandage: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_ElasticBandage);
|
|
|
|
items[] = {"ACE_elasticBandage"};
|
2016-10-13 15:14:43 +00:00
|
|
|
condition = QEGVAR(medical,advancedBandages);
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
class QuikClot: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_QuikClot);
|
|
|
|
items[] = {"ACE_quikclot"};
|
2016-10-13 15:14:43 +00:00
|
|
|
condition = QEGVAR(medical,advancedBandages);
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {
|
|
|
|
{"All", "", {"ACE_MedicalLitter_QuickClot"}},
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-10-12 23:55:10 +00:00
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
2016-10-12 23:55:10 +00:00
|
|
|
|
2016-10-13 07:47:52 +00:00
|
|
|
// --- tourniquet
|
|
|
|
class Tourniquet: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Apply_Tourniquet);
|
|
|
|
displayNameProgress = ECSTRING(medical,Applying_Tourniquet);
|
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
|
|
|
items[] = {"ACE_tourniquet"};
|
2016-12-08 10:38:43 +00:00
|
|
|
treatmentTime = 7;
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackSuccess = QFUNC(treatmentTourniquet);
|
2016-12-15 13:05:08 +00:00
|
|
|
condition = QUOTE(!([ARR_2(_target,_bodyPart)] call EFUNC(medical,hasTourniquetAppliedTo)));
|
2016-10-13 07:47:52 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class RemoveTourniquet: Tourniquet {
|
|
|
|
displayName = ECSTRING(medical,Actions_RemoveTourniquet);
|
|
|
|
displayNameProgress = ECSTRING(medical,RemovingTourniquet);
|
|
|
|
items[] = {};
|
2016-10-13 08:28:28 +00:00
|
|
|
callbackSuccess = QFUNC(treatmentTourniquetRemove);
|
2016-12-15 13:05:08 +00:00
|
|
|
condition = QUOTE([ARR_2(_target,_bodyPart)] call EFUNC(medical,hasTourniquetAppliedTo));
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- syringes
|
2016-12-15 13:06:09 +00:00
|
|
|
class Morphine: FieldDressing {
|
2016-10-13 07:47:52 +00:00
|
|
|
displayName = ECSTRING(medical,Inject_Morphine);
|
|
|
|
displayNameProgress = ECSTRING(medical,Injecting_Morphine);
|
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
|
|
|
category = "medication";
|
|
|
|
items[] = {"ACE_morphine"};
|
|
|
|
condition = "";
|
2016-12-05 20:34:20 +00:00
|
|
|
treatmentTime = 9;
|
2016-10-20 00:14:11 +00:00
|
|
|
callbackSuccess = QFUNC(treatmentMedication);
|
2016-10-13 07:47:52 +00:00
|
|
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_morphine"}} };
|
|
|
|
sounds[] = {{QPATHTO_R(sounds\Inject.ogg),1,1,50}};
|
|
|
|
};
|
2016-10-20 00:14:11 +00:00
|
|
|
class Adenosine: Morphine {
|
|
|
|
displayName = ECSTRING(medical,Inject_Adenosine);
|
|
|
|
displayNameProgress = ECSTRING(medical,Injecting_Adenosine);
|
2016-12-05 20:34:20 +00:00
|
|
|
condition = QEGVAR(medical,advancedMedication);
|
2016-10-20 00:14:11 +00:00
|
|
|
items[] = {"ACE_adenosine"};
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_adenosine"}} };
|
|
|
|
};
|
|
|
|
class Atropine: Morphine {
|
|
|
|
displayName = ECSTRING(medical,Inject_Atropine);
|
|
|
|
displayNameProgress = ECSTRING(medical,Injecting_Atropine);
|
2016-12-05 20:34:20 +00:00
|
|
|
condition = QEGVAR(medical,advancedMedication);
|
2016-10-20 00:14:11 +00:00
|
|
|
items[] = {"ACE_atropine"};
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_atropine"}} };
|
|
|
|
};
|
2016-10-13 07:47:52 +00:00
|
|
|
class Epinephrine: Morphine {
|
|
|
|
displayName = ECSTRING(medical,Inject_Epinephrine);
|
|
|
|
displayNameProgress = ECSTRING(medical,Injecting_Epinephrine);
|
2016-12-14 19:44:06 +00:00
|
|
|
requiredMedic = QEGVAR(medical,medicSetting_Epi);
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {"ACE_epinephrine"};
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_epinephrine"}} };
|
2016-12-14 19:44:06 +00:00
|
|
|
treatmentLocations[] = {QEGVAR(medical,useLocation_Epi)};
|
2016-10-13 07:47:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- iv bags
|
|
|
|
class BloodIV: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_Blood4_1000);
|
|
|
|
displayNameProgress = ECSTRING(medical,Transfusing_Blood);
|
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
2016-12-14 19:44:06 +00:00
|
|
|
allowSelfTreatment = QEGVAR(medical,allowSelfIV);
|
2016-10-13 07:47:52 +00:00
|
|
|
category = "advanced";
|
|
|
|
requiredMedic = 1;
|
|
|
|
treatmentTime = 12;
|
|
|
|
items[] = {"ACE_bloodIV"};
|
|
|
|
condition = "";
|
|
|
|
callbackSuccess = QFUNC(treatmentIV);
|
|
|
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class BloodIV_500: BloodIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Blood4_500);
|
|
|
|
items[] = {"ACE_bloodIV_500"};
|
|
|
|
};
|
|
|
|
class BloodIV_250: BloodIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Blood4_250);
|
|
|
|
items[] = {"ACE_bloodIV_250"};
|
|
|
|
};
|
|
|
|
class PlasmaIV: BloodIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Plasma4_1000);
|
|
|
|
displayNameProgress = ECSTRING(medical,Transfusing_Plasma);
|
|
|
|
items[] = {"ACE_plasmaIV"};
|
|
|
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
};
|
|
|
|
class PlasmaIV_500: PlasmaIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Plasma4_500);
|
|
|
|
items[] = {"ACE_plasmaIV_500"};
|
|
|
|
};
|
|
|
|
class PlasmaIV_250: PlasmaIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Plasma4_250);
|
|
|
|
items[] = {"ACE_plasmaIV_250"};
|
|
|
|
};
|
|
|
|
class SalineIV: BloodIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Saline4_1000);
|
|
|
|
displayNameProgress = ECSTRING(medical,Transfusing_Saline);
|
|
|
|
items[] = {"ACE_salineIV"};
|
|
|
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
};
|
|
|
|
class SalineIV_500: SalineIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Saline4_500);
|
|
|
|
items[] = {"ACE_salineIV_500"};
|
|
|
|
};
|
|
|
|
class SalineIV_250: SalineIV {
|
|
|
|
displayName = ECSTRING(medical,Actions_Saline4_250);
|
|
|
|
items[] = {"ACE_salineIV_250"};
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
|
|
|
|
2016-10-13 07:47:52 +00:00
|
|
|
// --- diagnose
|
|
|
|
class Diagnose: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_Diagnose);
|
|
|
|
displayNameProgress = ECSTRING(medical,Actions_Diagnosing);
|
|
|
|
category = "examine";
|
|
|
|
treatmentLocations[] = {"All"};
|
|
|
|
allowedSelections[] = {"Head", "Body"};
|
|
|
|
requiredMedic = 0;
|
2016-10-13 15:39:01 +00:00
|
|
|
treatmentTime = 2.5;
|
2016-10-13 07:47:52 +00:00
|
|
|
items[] = {};
|
2016-12-15 13:00:09 +00:00
|
|
|
condition = QUOTE(!EGVAR(medical,advancedDiagnose));
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackSuccess = QFUNC(actionDiagnose);
|
|
|
|
callbackFailure = "";
|
|
|
|
callbackProgress = "";
|
|
|
|
animationPatient = "";
|
|
|
|
animationCaller = ""; // TODO
|
|
|
|
itemConsumed = 0;
|
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class CheckPulse: Diagnose {
|
|
|
|
displayName = ECSTRING(medical,Actions_CheckPulse);
|
|
|
|
displayNameProgress = ECSTRING(medical,Check_Pulse_Content);
|
|
|
|
allowedSelections[] = {"All"};
|
2016-12-15 13:00:09 +00:00
|
|
|
condition = QEGVAR(medical,advancedDiagnose);
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackSuccess = QFUNC(actionCheckPulse);
|
|
|
|
animationCallerProne = "";
|
|
|
|
animationCallerSelfProne = "";
|
|
|
|
};
|
|
|
|
class CheckBloodPressure: CheckPulse {
|
|
|
|
displayName = ECSTRING(medical,Actions_CheckBloodPressure);
|
|
|
|
displayNameProgress = ECSTRING(medical,Check_Bloodpressure_Content);
|
2016-12-05 20:34:20 +00:00
|
|
|
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackSuccess = QFUNC(actionCheckBloodPressure);
|
|
|
|
};
|
|
|
|
class CheckResponse: CheckPulse {
|
|
|
|
displayName = ECSTRING(medical,Check_Response);
|
|
|
|
displayNameProgress = ECSTRING(medical,Check_Response_Content);
|
2016-10-13 15:39:01 +00:00
|
|
|
allowedSelections[] = {"Head"};
|
2016-10-13 07:47:52 +00:00
|
|
|
allowSelfTreatment = 0;
|
|
|
|
callbackSuccess = QFUNC(actionCheckResponse);
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- misc
|
|
|
|
class BodyBag: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,PlaceInBodyBag);
|
|
|
|
displayNameProgress = ECSTRING(medical,PlacingInBodyBag);
|
|
|
|
category = "advanced";
|
|
|
|
treatmentLocations[] = {"All"};
|
|
|
|
allowSelfTreatment = 0;
|
|
|
|
requiredMedic = 0;
|
|
|
|
treatmentTime = 15;
|
2016-12-10 03:03:52 +00:00
|
|
|
items[] = {"ACE_bodyBag"};
|
2016-10-13 07:47:52 +00:00
|
|
|
condition = "!alive _target";
|
|
|
|
callbackSuccess = QFUNC(actionPlaceInBodyBag);
|
|
|
|
callbackFailure = "";
|
|
|
|
callbackProgress = "";
|
|
|
|
animationPatient = "";
|
|
|
|
animationPatientUnconscious = "";
|
|
|
|
itemConsumed = 1;
|
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class CPR: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Actions_CPR);
|
|
|
|
displayNameProgress = ECSTRING(medical,Actions_PerformingCPR);
|
|
|
|
category = "advanced";
|
|
|
|
treatmentLocations[] = {"All"};
|
|
|
|
allowedSelections[] = {"Body"};
|
|
|
|
allowSelfTreatment = 0;
|
|
|
|
requiredMedic = 0;
|
|
|
|
treatmentTime = 15;
|
|
|
|
items[] = {};
|
2016-12-09 16:07:05 +00:00
|
|
|
condition = QUOTE(!(_target call EFUNC(common,isAwake)));
|
2016-10-13 07:47:52 +00:00
|
|
|
callbackSuccess = QFUNC(treatmentCPR);
|
2017-03-23 12:32:49 +00:00
|
|
|
callbackFailure = QFUNC(treatmentCPR_failure);
|
2016-12-06 16:26:11 +00:00
|
|
|
callbackProgress = QUOTE(!([(_this select 0) select 1] call EFUNC(common,isAwake)));
|
2017-03-23 12:15:17 +00:00
|
|
|
callbackStart = QFUNC(treatmentCPR_start);
|
2016-10-13 07:47:52 +00:00
|
|
|
animationPatient = "";
|
|
|
|
animationPatientUnconscious = "AinjPpneMstpSnonWrflDnon_rolltoback";
|
|
|
|
animationCaller = "AinvPknlMstpSlayW[wpn]Dnon_medic";
|
|
|
|
animationCallerProne = "AinvPpneMstpSlayW[wpn]Dnon_medic";
|
|
|
|
animationCallerSelf = "";
|
|
|
|
animationCallerSelfProne = "";
|
|
|
|
itemConsumed = 0;
|
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
|
2016-12-15 13:06:09 +00:00
|
|
|
class SurgicalKit: FieldDressing {
|
2016-12-05 20:34:20 +00:00
|
|
|
displayName = ECSTRING(medical,Use_SurgicalKit);
|
|
|
|
displayNameProgress = ECSTRING(medical,Stitching);
|
|
|
|
category = "advanced";
|
|
|
|
items[] = {"ACE_surgicalKit"};
|
|
|
|
treatmentLocations[] = {QEGVAR(medical,useLocation_SurgicalKit)};
|
|
|
|
allowSelfTreatment = 0;
|
|
|
|
requiredMedic = QEGVAR(medical,medicSetting_SurgicalKit);
|
|
|
|
treatmentTime = QUOTE(count (_target getVariable [ARR_2('EGVAR(medical,bandagedWounds)',[])]) * 5);
|
|
|
|
callbackSuccess = "";
|
|
|
|
callbackProgress = QFUNC(treatmentSurgicalKit_onProgress);
|
|
|
|
itemConsumed = QEGVAR(medical,consumeItem_SurgicalKit);
|
|
|
|
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_gloves"} }};
|
|
|
|
};
|
|
|
|
class PersonalAidKit: BasicBandage {
|
|
|
|
displayName = ECSTRING(medical,Use_Aid_Kit);
|
|
|
|
displayNameProgress = ECSTRING(medical,TreatmentAction);
|
|
|
|
category = "advanced";
|
|
|
|
condition = QUOTE(_target call EFUNC(medical,isInStableCondition));
|
|
|
|
items[] = {"ACE_personalAidKit"};
|
|
|
|
treatmentLocations[] = {QEGVAR(medical,useLocation_PAK)};
|
|
|
|
requiredMedic = QEGVAR(medical,medicSetting_PAK);
|
2016-12-08 11:30:59 +00:00
|
|
|
treatmentTime = QUOTE(_target call FUNC(healTime));
|
2016-12-05 20:34:20 +00:00
|
|
|
callbackSuccess = QFUNC(treatmentFullHeal);
|
|
|
|
itemConsumed = QEGVAR(medical,consumeItem_PAK);
|
|
|
|
animationPatient = "";
|
|
|
|
animationPatientUnconscious = "AinjPpneMstpSnonWrflDnon_rolltoback";
|
|
|
|
animationCaller = "AinvPknlMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationCallerProne = "AinvPpneMstpSlayW[wpn]Dnon_medicOther";
|
|
|
|
animationCallerSelf = "";
|
|
|
|
animationCallerSelfProne = "";
|
|
|
|
litter[] = { {"All", "", {"ACE_MedicalLitter_gloves"}},
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart > 0", {{"ACE_MedicalLitterBase", "ACE_MedicalLitter_bandage1", "ACE_MedicalLitter_bandage2", "ACE_MedicalLitter_bandage3"}}},
|
|
|
|
{"All", "_bloodLossOnBodyPart <= 0", {"ACE_MedicalLitter_clean"}}
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|
|
|
|
};
|
2016-12-08 17:11:24 +00:00
|
|
|
class MedKit: PersonalAidKit {
|
|
|
|
displayName = ECSTRING(medical,Use_Med_Kit);
|
|
|
|
items[] = {"ACE_medKit"};
|
|
|
|
treatmentLocations[] = {QEGVAR(medical,useLocation_MedKit)};
|
|
|
|
requiredMedic = QEGVAR(medical,medicSetting_MedKit);
|
|
|
|
callbackSuccess = QFUNC(treatmentPartialHeal);
|
|
|
|
itemConsumed = QEGVAR(medical,consumeItem_MedKit);
|
|
|
|
};
|
2016-09-18 17:48:49 +00:00
|
|
|
};
|