Skip to content

Commit

Permalink
Surgery - Update Ultrasound to handle dead patients (#688)
Browse files Browse the repository at this point in the history
**When merged this pull request will:**
- Adds condition to ultrasound examination to handle dead players

### IMPORTANT

- [Development Guidelines](https://ace3.acemod.org/wiki/development/)
are read, understood and applied.
- Title of this PR uses our standard template `Component -
Add|Fix|Improve|Change|Make|Remove {changes}`.
  • Loading branch information
mazinskihenry authored Jan 14, 2025
1 parent de2989a commit e06c27d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addons/surgery/functions/fnc_ultraAssessmentLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ if (_patient getVariable [QEGVAR(circulation,effusion), 0] > 0) then {
_cardiac = LSTRING(Ultra_Cardiac_Tamponade);
};

if !(alive _patient) then {
_cardiac = LSTRING(Ultra_Cardiac_Unshockable);
_thorasic = LSTRING(Ultra_Thorasic_NoActivity);
_airway = LSTRING(Ultra_Airway_NoActivity);
};

[_patient, "quick_view", LSTRING(Ultra_Airway), [_airway]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "quick_view", LSTRING(Ultra_Cardiac), [_cardiac]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "quick_view", LSTRING(Ultra_Thorasic), [_thorasic]] call ACEFUNC(medical_treatment,addToLog);
[_patient, "quick_view", LSTRING(Ultra_Thorasic), [_thorasic]] call ACEFUNC(medical_treatment,addToLog);
6 changes: 6 additions & 0 deletions addons/surgery/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,9 @@
<German>Normal</German>
<Chinesesimp>正常</Chinesesimp>
</Key>
<Key ID="STR_KAT_Surgery_Ultra_Airway_NoActivity">
<English>No Activity</English>
</Key>
<Key ID="STR_KAT_Surgery_Ultra_Thorasic_PTX">
<English>Pneumothorax</English>
<Russian>Пневмоторакс</Russian>
Expand Down Expand Up @@ -761,6 +764,9 @@
<German>Spannungspneumothorax</German>
<Chinesesimp>张力性气胸</Chinesesimp>
</Key>
<Key ID="STR_KAT_Surgery_Ultra_Thorasic_NoActivity">
<English>No Activity</English>
</Key>
<Key ID="STR_KAT_Surgery_Ultra_Cardiac_Shockable">
<English>Arrest - Shockable</English>
<Russian>Остановка - шоковая</Russian>
Expand Down

0 comments on commit e06c27d

Please sign in to comment.