Updated medical action config.

Added bodybag action
Added Tourniquet action to basic.
Added more displayNameProgress entries.
Removed deadcode
This commit is contained in:
Glowbal 2015-04-03 22:59:28 +02:00
parent a6ce961ca1
commit 36288fce43
3 changed files with 77 additions and 61 deletions

View File

@ -49,34 +49,34 @@ class ACE_Medical_Actions {
callbackSuccess = QUOTE(DFUNC(treatmentBasic_bloodbag)); callbackSuccess = QUOTE(DFUNC(treatmentBasic_bloodbag));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
/*class Carry: Bandage { class Tourniquet: Bandage {
displayName = ""; displayName = "$STR_ACE_Medical_Apply_Tourniquet";
displayNameProgress = ""; displayNameProgress = "$STR_ACE_Medical_Applying_Tourniquet";
items[] = {"ACE_tourniquet"};
treatmentTime = 6;
callbackSuccess = QUOTE(DFUNC(treatmentTourniquet));
condition = QUOTE(!([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo)));
};
class BodyBag: Bandage {
displayName = "$STR_ACE_MEDICAL_PlaceInBodyBag";
displayNameProgress = "$STR_ACE_MEDICAL_PlacingInBodyBag";
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
requiredMedic = 0; requiredMedic = 0;
treatmentTime = 0; treatmentTime = 2;
items[] = {}; items[] = {"ACE_bodyBag"};
condition = QUOTE(DFUNC(canCarry)); condition = "!alive (_this select 1);";
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, true)] call DFUNC(actionCarryUnit)); callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag));
callbackFailure = ""; callbackFailure = "";
callbackProgress = ""; callbackProgress = "";
itemConsumed = 0;
animationPatient = ""; animationPatient = "";
animationCaller = ""; itemConsumed = 0;
animationCallerProne = "";
animationCallerSelf = "";
animationCallerSelfProne = "";
}; };
class Drag: Carry {
displayName = "";
displayNameProgress = "";
condition = QUOTE(DFUNC(canCarry));
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, false)] call DFUNC(actionCarryUnit));
};*/
}; };
class Advanced { class Advanced {
class FieldDressing { class FieldDressing {
displayName = "$STR_ACE_Medical_Bandage";
displayNameProgress = "$STR_ACE_Medical_Bandaging";
// Which locations can this treatment action be used? Available: Field, MedicalFacility, MedicalVehicle, All. // Which locations can this treatment action be used? Available: Field, MedicalFacility, MedicalVehicle, All.
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
// What is the level of medical skill required for this treatment action? 0 = all soldiers, 1 = medic, 2 = doctor // What is the level of medical skill required for this treatment action? 0 = all soldiers, 1 = medic, 2 = doctor
@ -107,24 +107,34 @@ class ACE_Medical_Actions {
items[] = {"ACE_quikclot"}; items[] = {"ACE_quikclot"};
}; };
class Tourniquet: fieldDressing { class Tourniquet: fieldDressing {
displayName = "$STR_ACE_Medical_Apply_Tourniquet";
displayNameProgress = "$STR_ACE_Medical_Applying_Tourniquet";
items[] = {"ACE_tourniquet"}; items[] = {"ACE_tourniquet"};
treatmentTime = 6; treatmentTime = 6;
callbackSuccess = QUOTE(DFUNC(treatmentTourniquet)); callbackSuccess = QUOTE(DFUNC(treatmentTourniquet));
condition = QUOTE(!([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo))); condition = QUOTE(!([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo)));
}; };
class Morphine: fieldDressing { class Morphine: fieldDressing {
displayName = "$STR_ACE_Medical_Inject_Morphine";
displayNameProgress = "$STR_ACE_Medical_Injecting_Morphine";
items[] = {"ACE_morphine"}; items[] = {"ACE_morphine"};
treatmentTime = 3; treatmentTime = 3;
callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_medication)); callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_medication));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
class Atropine: Morphine { class Atropine: Morphine {
displayName = "$STR_ACE_Medical_Inject_Atropine";
displayNameProgress = "$STR_ACE_Medical_Injecting_Atropine";
items[] = {"ACE_atropine"}; items[] = {"ACE_atropine"};
}; };
class Epinephrine: Morphine { class Epinephrine: Morphine {
displayName = "$STR_ACE_Medical_Inject_Epinephrine";
displayNameProgress = "$STR_ACE_Medical_Injecting_Epinephrine";
items[] = {"ACE_epinephrine"}; items[] = {"ACE_epinephrine"};
}; };
class BloodIV: fieldDressing { class BloodIV: fieldDressing {
displayName = "$STR_ACE_Medical_Transfuse_Blood";
displayNameProgress = "$STR_ACE_Medical_Transfusing_Blood";
items[] = {"ACE_bloodIV"}; items[] = {"ACE_bloodIV"};
requiredMedic = 1; requiredMedic = 1;
treatmentTime = 7; treatmentTime = 7;
@ -138,6 +148,8 @@ class ACE_Medical_Actions {
items[] = {"ACE_bloodIV_250"}; items[] = {"ACE_bloodIV_250"};
}; };
class PlasmaIV: BloodIV { class PlasmaIV: BloodIV {
displayName = "$STR_ACE_Medical_Transfuse_Plasma";
displayNameProgress = "$STR_ACE_Medical_Transfusing_Plasma";
items[] = {"ACE_plasmaIV"}; items[] = {"ACE_plasmaIV"};
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
@ -148,6 +160,8 @@ class ACE_Medical_Actions {
items[] = {"ACE_plasmaIV_250"}; items[] = {"ACE_plasmaIV_250"};
}; };
class SalineIV: BloodIV { class SalineIV: BloodIV {
displayName = "$STR_ACE_Medical_Transfuse_Saline";
displayNameProgress = "$STR_ACE_Medical_Transfusing_Saline";
items[] = {"ACE_salineIV"}; items[] = {"ACE_salineIV"};
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
@ -158,6 +172,8 @@ class ACE_Medical_Actions {
items[] = {"ACE_salineIV_250"}; items[] = {"ACE_salineIV_250"};
}; };
class SurgicalKit: fieldDressing { class SurgicalKit: fieldDressing {
displayName = "";
displayNameProgress = "";
items[] = {"ACE_surgicalKit"}; items[] = {"ACE_surgicalKit"};
treatmentLocations[] = {"MedicalFacility", "MedicalVehicle"}; treatmentLocations[] = {"MedicalFacility", "MedicalVehicle"};
requiredMedic = 2; requiredMedic = 2;
@ -167,6 +183,8 @@ class ACE_Medical_Actions {
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
class PersonalAidKit: fieldDressing { class PersonalAidKit: fieldDressing {
displayName = "";
displayNameProgress = "";
items[] = {"ACE_personalAidKit"}; items[] = {"ACE_personalAidKit"};
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
requiredMedic = 1; requiredMedic = 1;
@ -176,6 +194,8 @@ class ACE_Medical_Actions {
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1"; animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
}; };
class CheckPulse: fieldDressing { class CheckPulse: fieldDressing {
displayName = "";
displayNameProgress = "";
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
requiredMedic = 0; requiredMedic = 0;
treatmentTime = 2; treatmentTime = 2;
@ -199,6 +219,8 @@ class ACE_Medical_Actions {
condition = QUOTE([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo)); condition = QUOTE([ARR_2(_this select 1, _this select 2)] call FUNC(hasTourniquetAppliedTo));
}; };
class CPR: fieldDressing { class CPR: fieldDressing {
displayName = "CPR";
displayNameProgress = "Performing CPR";
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
requiredMedic = 0; requiredMedic = 0;
treatmentTime = 25; treatmentTime = 25;
@ -212,9 +234,11 @@ class ACE_Medical_Actions {
itemConsumed = 0; itemConsumed = 0;
}; };
class BodyBag: fieldDressing { class BodyBag: fieldDressing {
displayName = "$STR_ACE_MEDICAL_PlaceInBodyBag";
displayNameProgress = "$STR_ACE_MEDICAL_PlacingInBodyBag";
treatmentLocations[] = {"All"}; treatmentLocations[] = {"All"};
requiredMedic = 0; requiredMedic = 0;
treatmentTime = 7.5; treatmentTime = 2;
items[] = {"ACE_bodyBag"}; items[] = {"ACE_bodyBag"};
condition = "!alive (_this select 1);"; condition = "!alive (_this select 1);";
callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag)); callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag));
@ -223,31 +247,6 @@ class ACE_Medical_Actions {
animationPatient = ""; animationPatient = "";
itemConsumed = 0; itemConsumed = 0;
}; };
/*class Carry: fieldDressing {
displayName = "";
displayNameProgress = "";
treatmentLocations[] = {"All"};
requiredMedic = 0;
treatmentTime = 0;
items[] = {};
condition = QUOTE(DFUNC(canCarry));
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, true)] call DFUNC(actionCarryUnit));
callbackFailure = "";
callbackProgress = "";
itemConsumed = 0;
animationPatient = "";
animationCaller = "";
animationCallerProne = "";
animationCallerSelf = "";
animationCallerSelfProne = "";
};
class Drag: Carry {
displayName = "";
displayNameProgress = "";
condition = QUOTE(DFUNC(canCarry));
callbackSuccess = QUOTE([ARR_3(_this select 0, _this select 1, false)] call DFUNC(actionCarryUnit));
};*/
}; };
}; };

View File

@ -940,29 +940,16 @@ class CfgVehicles {
enableInside = 1; enableInside = 1;
icon = PATHTOF(UI\icons\bandage.paa); icon = PATHTOF(UI\icons\bandage.paa);
}; };
/*class Carry { class PlaceInBodyBag {
displayName = "$STR_ACE_MEDICAL_CARRY"; displayName = "$STR_ACE_MEDICAL_PlaceInBodyBag";
distance = 2.0; distance = 2.0;
condition = QUOTE([ARR_4(_player, _target, 'body', 'Carry')] call DFUNC(canTreatCached)); condition = QUOTE([ARR_4(_player, _target, 'body', 'BodyBag')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'Carry')] call DFUNC(treatment)); statement = QUOTE([ARR_4(_player, _target, 'body', 'BodyBag')] call DFUNC(treatment));
showDisabled = 1; showDisabled = 1;
priority = 2; priority = 2;
hotkey = ""; hotkey = "";
enableInside = 1; enableInside = 1;
//icon = PATHTOF(UI\icons\bandage.paa);
}; };
class Drag {
displayName = "$STR_ACE_MEDICAL_DRAG";
distance = 2.0;
condition = QUOTE([ARR_4(_player, _target, 'body', 'Drag')] call DFUNC(canTreatCached));
statement = QUOTE([ARR_4(_player, _target, 'body', 'Drag')] call DFUNC(treatment));
showDisabled = 1;
priority = 2;
hotkey = "";
enableInside = 1;
//icon = PATHTOF(UI\icons\bandage.paa);
};*/
class TriageCard { class TriageCard {
displayName = "Triage Card"; displayName = "Triage Card";
distance = 2.0; distance = 2.0;

View File

@ -30,6 +30,9 @@
<Portuguese>Injetar Morfina</Portuguese> <Portuguese>Injetar Morfina</Portuguese>
<Italian>Inietta Morfina</Italian> <Italian>Inietta Morfina</Italian>
</Key> </Key>
<Key ID="STR_ACE_Medical_Inject_Atropine">
<English>Inject Atropine</English>
</Key>
<Key ID="STR_ACE_Medical_Transfuse_Blood"> <Key ID="STR_ACE_Medical_Transfuse_Blood">
<English>Transfuse Blood</English> <English>Transfuse Blood</English>
<German>Bluttransfusion</German> <German>Bluttransfusion</German>
@ -42,6 +45,15 @@
<Portuguese>Transfundir Sangue</Portuguese> <Portuguese>Transfundir Sangue</Portuguese>
<Italian>Effettua Trasfusione</Italian> <Italian>Effettua Trasfusione</Italian>
</Key> </Key>
<Key ID="STR_ACE_Medical_Transfuse_Plasma">
<English>Transfuse Plasma</English>
</Key>
<Key ID="STR_ACE_Medical_Transfuse_Saline">
<English>Transfuse Saline</English>
</Key>
<Key ID="STR_ACE_Medical_Apply_Tourniquet">
<English>Apply Tourniquet</English>
</Key>
<Key ID="STR_ACE_Medical_Bandage"> <Key ID="STR_ACE_Medical_Bandage">
<English>Bandage</English> <English>Bandage</English>
<German>Verbinden</German> <German>Verbinden</German>
@ -150,6 +162,9 @@
<Portuguese>Injetando Epinefrina ...</Portuguese> <Portuguese>Injetando Epinefrina ...</Portuguese>
<Italian>Inietto l'epinefrina ...</Italian> <Italian>Inietto l'epinefrina ...</Italian>
</Key> </Key>
<Key ID="STR_ACE_Medical_Injecting_Atropine">
<English>Injecting Atropine ...</English>
</Key>
<Key ID="STR_ACE_Medical_Transfusing_Blood"> <Key ID="STR_ACE_Medical_Transfusing_Blood">
<English>Transfusing Blood ...</English> <English>Transfusing Blood ...</English>
<German>Bluttransfusion ...</German> <German>Bluttransfusion ...</German>
@ -162,6 +177,12 @@
<Portuguese>Transfundindo Sangue ...</Portuguese> <Portuguese>Transfundindo Sangue ...</Portuguese>
<Italian>Effettuo la trasfusione ...</Italian> <Italian>Effettuo la trasfusione ...</Italian>
</Key> </Key>
<Key ID="STR_ACE_Medical_Transfusing_Saline">
<English>Transfusing Saline ...</English>
</Key>
<Key ID="STR_ACE_Medical_Transfusing_Plasma">
<English>Transfusing Plasma ...</English>
</Key>
<Key ID="STR_ACE_Medical_Bandaging"> <Key ID="STR_ACE_Medical_Bandaging">
<English>Bandaging ...</English> <English>Bandaging ...</English>
<German>Verbinden ...</German> <German>Verbinden ...</German>
@ -174,6 +195,9 @@
<Portuguese>Atando ...</Portuguese> <Portuguese>Atando ...</Portuguese>
<Russian>Перевязывание....</Russian> <Russian>Перевязывание....</Russian>
</Key> </Key>
<Key ID="STR_ACE_Medical_Applying_Tourniquet">
<English>Applying Tourniquet ...</English>
</Key>
<Key ID="STR_ACE_MEDICAL_ACTIONS_Medical"> <Key ID="STR_ACE_MEDICAL_ACTIONS_Medical">
<English>Medical</English> <English>Medical</English>
<Czech>Zdravotní</Czech> <Czech>Zdravotní</Czech>
@ -852,6 +876,12 @@
<Key ID="STR_ACE_Medical_UnloadPatient"> <Key ID="STR_ACE_Medical_UnloadPatient">
<English>Unload patient</English> <English>Unload patient</English>
</Key> </Key>
<Key ID="STR_ACE_MEDICAL_PlaceInBodyBag">
<English>Place body in bodybag</English>
</Key>
<Key ID="STR_ACE_MEDICAL_PlacingInBodyBag">
<English>Placing body in bodybag</English>
</Key>
</Container> </Container>
<Container name="Activities"> <Container name="Activities">
<Key ID="STR_ACE_MEDICAL_ACTIVITY_bandagedPatient"> <Key ID="STR_ACE_MEDICAL_ACTIVITY_bandagedPatient">