Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions addons/breathing/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ class ACEGVAR(medical_treatment,actions) {
callbackSuccess = QUOTE([ARR_3(_medic,_patient,0)] call FUNC(Thoracostomy_drain));
ACM_menuIcon = "ACM_SuctionBag";
};
class DrainFluid_HandPump: DrainFluid_ACCUVAC {
displayName = CSTRING(DrainFluid_HandPump);
icon = "";
treatmentTime = 8;
items[] = {"ACM_HandPump"};
consumeItem = 0;
callbackSuccess = QUOTE([ARR_3(_medic,_patient,2)] call FUNC(Thoracostomy_drain));
ACM_menuIcon = "ACM_HandPump";
};

class CloseIncision: PerformThoracostomy {
displayName = CSTRING(CloseIncision);
Expand Down
9 changes: 9 additions & 0 deletions addons/breathing/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ class CfgWeapons {
};
};

class ACM_HandPump: ACM_ChestSeal {
picture = QPATHTOF(ui\handPump_ca.paa);
displayName = CSTRING(HandPump);
descriptionShort = CSTRING(HandPump_Desc);
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 4;
};
};

class ACM_PocketBVM: ACM_ChestSeal {
picture = QPATHTOF(ui\pocketbvm_ca.paa);
displayName = CSTRING(PocketBVM);
Expand Down
3 changes: 2 additions & 1 deletion addons/breathing/functions/fnc_Thoracostomy_drain.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 2: Device type <NUMBER>
* 0: Suction Bag
* 1: ACCUVAC
* 2: Hand Pump
*
* Return Value:
* None
Expand All @@ -21,7 +22,7 @@

params ["_medic", "_patient", ["_type", 1]];

private _item = [LELSTRING(airway,SuctionBag_Short), LELSTRING(airway,ACCUVAC)] select _type;
private _item = [LELSTRING(airway,SuctionBag_Short), LELSTRING(airway,ACCUVAC), LELSTRING(breathing,HandPump)] select _type;

[_patient, "activity", LLSTRING(ThoracostomyDrain_ActionLog), [[_medic, false, true] call ACEFUNC(common,getName), _item]] call ACEFUNC(medical_treatment,addToLog);

Expand Down
2 changes: 1 addition & 1 deletion addons/breathing/functions/fnc_Thoracostomy_drainLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private _fluid = _patient getVariable [QGVAR(Hemothorax_Fluid), 0];
private _width = 10;
private _amount = "";

if (_type == 0) then {
if (_type != 1) then {
_amount = switch (true) do {
case (_fluid <= 0): {
LLSTRING(ThoracostomyDrain_Amount_None);
Expand Down
19 changes: 19 additions & 0 deletions addons/breathing/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,18 @@
<Ukrainian>Одноразовий набір для підготовки пацієнта до встановлення дренажу грудної клітки</Ukrainian>
<Korean>가슴관 (Chest Tube) 삽입 준비용 1회용 키트</Korean>
</Key>
<Key ID="STR_ACM_Breathing_HandPump">
<English>Hand Pump</English>
<German>Handpumpe</German>
<French>Pompe à main</French>
<Portuguese>Bomba manual</Portuguese>
</Key>
<Key ID="STR_ACM_Breathing_HandPump_Desc">
<English>Reusable hand-held suction pump used to drain fluids from a chest tube</English>
<German>Wiederverwendbare Handabsaugpumpe zum Ablassen von Flüssigkeiten aus einem Thoraxschlauch</German>
<French>Pompe d'aspiration portative réutilisable utilisée pour drainer les fluides d'un drain thoracique</French>
<Portuguese>Bomba de sucção manual reutilizável usada para drenar fluidos de um dreno torácico</Portuguese>
</Key>
<Key ID="STR_ACM_Breathing_PocketBVM">
<English>Pocket BVM</English>
<Polish>Kieszonkowy worek samorozprężalny (BVM)</Polish>
Expand Down Expand Up @@ -1086,6 +1098,13 @@
<Ukrainian>Дренувати рідину (відсмоктувальний мішок)</Ukrainian>
<Korean>배액 (Suction Bag)</Korean>
</Key>
<Key ID="STR_ACM_Breathing_DrainFluid_HandPump">
<English>Drain Fluid (Hand Pump)</English>
<Polish>Odessaj płyny (Pompka ręczna)</Polish>
<German>Flüssigkeit absaugen (Handpumpe)</German>
<French>Aspirer le liquide (Pompe à main)</French>
<Portuguese>Drenar fluido (Bomba manual)</Portuguese>
</Key>
<Key ID="STR_ACM_Breathing_DrainFluid_Suction_Progress">
<English>Draining Fluid...</English>
<Polish>Odsysanie płynów...</Polish>
Expand Down
Binary file added addons/breathing/ui/handPump_ca.paa
Binary file not shown.
1 change: 1 addition & 0 deletions addons/gui/ActionButtons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ACM_MEDICALMENU_ACTION_BUTTON(ACM_Stethoscope,QPATHTOEF(breathing,ui\stethoscope
ACM_MEDICALMENU_ACTION_BUTTON(ACM_NCDKit,QPATHTOEF(breathing,ui\ncdkit_ca.paa));
ACM_MEDICALMENU_ACTION_BUTTON(ACM_ChestTubeKit,QPATHTOEF(breathing,ui\chestTubeKit_ca.paa));
ACM_MEDICALMENU_ACTION_BUTTON(ACM_ThoracostomyKit,QPATHTOEF(breathing,ui\thoracostomyKit_ca.paa));
ACM_MEDICALMENU_ACTION_BUTTON(ACM_HandPump,QPATHTOEF(breathing,ui\handPump_ca.paa));
ACM_MEDICALMENU_ACTION_BUTTON(ACM_PocketBVM,QPATHTOEF(breathing,ui\pocketbvm_ca.paa));
ACM_MEDICALMENU_ACTION_BUTTON(ACM_BVM,QPATHTOEF(breathing,ui\bvm_ca.paa));

Expand Down