Skip to content

Commit

Permalink
Medical Treatment - Allow diagnosing cardiac arrest with clear langua…
Browse files Browse the repository at this point in the history
…ge (acemod#9997)
  • Loading branch information
PabstMirror authored and blake8090 committed Aug 18, 2024
1 parent b5e6678 commit bf8fa09
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions addons/medical_treatment/functions/fnc_checkResponse.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ params ["_medic", "_patient"];
private _output = if (_patient call EFUNC(common,isAwake)) then {
LSTRING(Check_Response_Responsive)
} else {
if (GVAR(advancedDiagnose) == 3) exitWith {
if (IN_CRDC_ARRST(_patient)) exitWith { LSTRING(Check_Response_CardiacArrestDirect) };
if (!alive _patient) exitWith { LSTRING(Check_Response_DeadDirect) };
LSTRING(Check_Response_UnresponsiveDirect)
};
if ((GVAR(advancedDiagnose) == 2) && {IN_CRDC_ARRST(_patient)}) exitWith { LSTRING(Check_Response_CardiacArrest) };
if ((GVAR(advancedDiagnose) == 2) && {!alive _patient}) exitWith { LSTRING(Check_Response_Dead) };
LSTRING(Check_Response_Unresponsive)
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_treatment/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"LIST",
[LSTRING(AdvancedDiagnose_DisplayName), LSTRING(AdvancedDiagnose_Description)],
[ELSTRING(medical,Category), LSTRING(SubCategory_Treatment)],
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), LSTRING(AdvancedDiagnose_DiagnoseCardiacArrest)], 1],
[[0, 1, 2, 3], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), LSTRING(AdvancedDiagnose_DiagnoseCardiacArrest), LSTRING(AdvancedDiagnose_DiagnoseCardiacArrestDirect)], 1],
true
] call CBA_fnc_addSetting;

Expand Down
12 changes: 12 additions & 0 deletions addons/medical_treatment/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<Spanish>Habilitado y poder diagnosticar Muerte/Parada cardíaca</Spanish>
<Italian>Abilitato e può diagnosticare Morte/Arresto Cardiaco</Italian>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AdvancedDiagnose_DiagnoseCardiacArrestDirect">
<English>Enabled &amp; Can Diagnose Death/Cardiac Arrest [Directly]</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_AdvancedMedication_DisplayName">
<English>Advanced Medication</English>
<German>Erweiterte Medikation</German>
Expand Down Expand Up @@ -4153,6 +4156,9 @@
<Chinese>%1 沒有反應</Chinese>
<Turkish>%1 tepki vermiyor</Turkish>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_UnresponsiveDirect">
<English>%1 is unconscious</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_CardiacArrest">
<English>%1 is not responsive, taking shallow gasps and convulsing</English>
<French>%1 est inconscient, respire par intermittence et convulse.</French>
Expand All @@ -4165,6 +4171,9 @@
<Russian>%1 не реагирует на раздражители, поверхностно дышит, в конвульсиях</Russian>
<Spanish>%1 no responde, dando pequeñas bocanadas y convulsionando</Spanish>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_CardiacArrestDirect">
<English>%1 is in cardiac arrest</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_Dead">
<English>%1 is not responsive, motionless and cold</English>
<French>%1 est inconscient, inanimé et froid.</French>
Expand All @@ -4177,6 +4186,9 @@
<Russian>%1 не реагирует на раздражители, не шевелится и холодный</Russian>
<Spanish>%1 no responde, sin movimiento y frío</Spanish>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_DeadDirect">
<English>%1 is dead</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Check_Response_You_Checked">
<English>You checked %1</English>
<Russian>Вы осмотрели раненого %1</Russian>
Expand Down

0 comments on commit bf8fa09

Please sign in to comment.