Skip to content

Commit

Permalink
Airway - Add option to disable head turning or overstretch when airwa…
Browse files Browse the repository at this point in the history
…y item is inserted (#357)

**When merged this pull request will:**
- _title_

### 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
YetheSamartaka authored Jun 25, 2023
1 parent d0adbe0 commit 85ea104
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/airway/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ACE_Medical_Treatment_Actions {
medicRequired = 0;
items[] = {};
icon = "";
condition = QUOTE(!([_patient] call ace_common_fnc_isAwake) && !(_patient getVariable [ARR_2(QQGVAR(overstretch), false)]) && (missionNamespace getVariable [ARR_2(QQGVAR(enable),true)]));
condition = QUOTE(!([_patient] call ace_common_fnc_isAwake) && !(_patient getVariable [ARR_2(QQGVAR(overstretch), false)]) && !(_patient getVariable [ARR_2(QQGVAR(recovery),false)]) && (missionNamespace getVariable [ARR_2(QQGVAR(enable),true)]) && !(_patient getVariable [ARR_2(QQGVAR(airway_item), '')] == 'Guedeltubus') && !(_patient getVariable [ARR_2(QQGVAR(airway_item), '')] == 'Larynxtubus'));
callbackSuccess = QFUNC(treatmentAdvanced_overstretchHead);
};
class TurnAround: Larynxtubus {
Expand All @@ -79,6 +79,7 @@ class ACE_Medical_Treatment_Actions {
medicRequired = 0;
items[] = {};
icon = "";
condition = QUOTE(!([_patient] call ace_common_fnc_isAwake) && (missionNamespace getVariable [ARR_2(QQGVAR(enable),true)]) && !(_patient getVariable [ARR_2(QQGVAR(recovery),false)]) && !(_patient getVariable [ARR_2(QQGVAR(airway_item), '')] == 'Larynxtubus') && (!(_patient getVariable [ARR_2(QQGVAR(airway_item), '')] == 'Guedeltubus') || !(missionNamespace getVariable [ARR_2(QQGVAR(block_turnAround_ifAirwayItem),true)])));
callbackSuccess = QFUNC(treatmentAdvanced_turnaroundHead);
};
class RecoveryPosition: Larynxtubus {
Expand Down
10 changes: 10 additions & 0 deletions addons/airway/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ In real life, this will happen sometimes, not quiet often.
true
] call CBA_Settings_fnc_init;

// Blocks head turning if patient has Guedel Tube or KingLT inserted
[
QGVAR(block_turnAround_ifAirwayItem),
"CHECKBOX",
[LLSTRING(BLOCK_HEADTURNING),LLSTRING(BLOCK_HEADTURNING_DESC)],
[CBA_SETTINGS_CAT, LSTRING(SubCategory_Basic)],
[true],
true
] call CBA_Settings_fnc_init;

// airway puking sound yes or no?
// somebody told me that the sound which is played then someone is puking is super annoying and now you can remove it easily
[
Expand Down
8 changes: 8 additions & 0 deletions addons/airway/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1270,5 +1270,13 @@
<German>Setzt, ob die aktuelle triage Karte übershrieben werden soll durch das checken der Atemwege</German>
<French>Définit si l'inspection des voies aériennes modifie le niveau actuel de triage</French>
</Key>
<Key ID="STR_KAT_Airway_BLOCK_HEADTURNING">
<English>Block head turning</English>
<Czech>Blokování otáčení hlavou</Czech>
</Key>
<Key ID="STR_KAT_Airway_BLOCK_HEADTURNING_DESC">
<English>Blocks head turning if patient has Guedel Tube inserted</English>
<Czech>Blokuje otáčení hlavou pokud má pacient zavedenou Guedel tubu</Czech>
</Key>
</Package>
</Project>

0 comments on commit 85ea104

Please sign in to comment.