From 62fccd6ff03b77803dc4a811ffda89e27c8bd3c9 Mon Sep 17 00:00:00 2001 From: mharis001 <34453221+mharis001@users.noreply.github.com> Date: Sat, 4 Jan 2020 07:42:51 -0500 Subject: [PATCH] Medical Treatment - Add self PAK setting (#7382) --- .../ACE_Medical_Treatment_Actions.hpp | 1 + addons/medical_treatment/initSettings.sqf | 9 +++++++++ addons/medical_treatment/stringtable.xml | 18 ++++++++++++------ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp index 74f02397c6..1799d4f583 100644 --- a/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp +++ b/addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp @@ -298,6 +298,7 @@ class GVAR(actions) { condition = QUOTE(_patient call EFUNC(medical_status,isInStableCondition)); items[] = {"ACE_personalAidKit"}; treatmentLocations = QGVAR(locationPAK); + allowSelfTreatment = QGVAR(allowSelfPAK); medicRequired = QGVAR(medicPAK); treatmentTime = QFUNC(getHealTime); callbackSuccess = QFUNC(fullHeal); diff --git a/addons/medical_treatment/initSettings.sqf b/addons/medical_treatment/initSettings.sqf index a5da520e89..a4f8191563 100644 --- a/addons/medical_treatment/initSettings.sqf +++ b/addons/medical_treatment/initSettings.sqf @@ -118,6 +118,15 @@ true ] call CBA_settings_fnc_init; +[ + QGVAR(allowSelfPAK), + "LIST", + [LSTRING(AllowSelfPAK_DisplayName), LSTRING(AllowSelfPAK_Description)], + [ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)], + [[0, 1], [ELSTRING(common,No), ELSTRING(common,Yes)], 0], + true +] call CBA_settings_fnc_init; + [ QGVAR(timeCoefficientPAK), "SLIDER", diff --git a/addons/medical_treatment/stringtable.xml b/addons/medical_treatment/stringtable.xml index e483ff9f12..e9df8c966b 100644 --- a/addons/medical_treatment/stringtable.xml +++ b/addons/medical_treatment/stringtable.xml @@ -195,7 +195,7 @@ 允許使用腎上腺素 - Training level required to use Epinephrine. + Training level required to use epinephrine. アドレナリンの使用に訓練レベルを必要とさせます。 Définit quelle qualification médicale est requise pour pouvoir utiliser l'épinéphrine. Уровень подготовки, необходимый для использования Адреналина. @@ -220,7 +220,7 @@ 腎上腺素使用地點 - Controls where Epinephrine can be used. + Controls where epinephrine can be used. アドレナリンが使える場所を決定します。 Définit où l'épinéphrine peut être utilisée. Контролирует, где можно использовать Адреналин. @@ -301,6 +301,12 @@ Controlla se un PAK deve essere consumato dopo l'uso. Nastavuje zda má být osobní lékárnička (PAK) spotřebována po použití. + + Self PAK Usage + + + Enables the use of PAKs to heal oneself. + Time Coefficient PAK 応急処置キットの時間係数 @@ -332,7 +338,7 @@ Povolit sešívací sadu - Training level required to use a Surgical Kit. + Training level required to use a surgical kit. 縫合キットの使用に訓練レベルを必要とさせます。 Définit quelle qualification médicale est requise pour pouvoir utiliser une trousse chirurgicale. Уровень медицинской подготовки, необходимый для использования Хирургического набора. @@ -352,7 +358,7 @@ Nastavuje kde může být sešívací sada použita - Controls where a Surgical Kit can be used. + Controls where a surgical kit can be used. 縫合キットが使える場所を決定します。 Définit où la trousse chirurgicale peut être utilisée. Контролирует, где можно использовать Хирургический набор @@ -372,7 +378,7 @@ Spotřebuj sešívací sadu - Controls whether a Surgical Kit should be consumed after use. + Controls whether a surgical kit should be consumed after use. 縫合キットの使用後に消費するかどうかを決定します。 Définit si la trousse chirurgicale doit être à usage unique. Контролирует, следует ли израсходовать Хирургический набор после использования. @@ -410,7 +416,7 @@ Samoaplikace IV transfuze - Enables the use of IV Transfusions on oneself. + Enables the use of IV transfusions on oneself. Erlaube Bluttransfusionen an sich selbst zu benutzen Позволяет использовать внутривенные переливания на себе 自らに対して IV 輸血を可能にします。