Skip to content

Commit

Permalink
Merge branch 'dev-Tomcat' of https://github.com/Apricot-ale/KAM into …
Browse files Browse the repository at this point in the history
…dev-Tomcat
  • Loading branch information
Apricot-ale committed Mar 26, 2024
2 parents 50f75f5 + 7ac545c commit af08811
Show file tree
Hide file tree
Showing 17 changed files with 817 additions and 86 deletions.
117 changes: 91 additions & 26 deletions addons/airway/stringtable.xml

Large diffs are not rendered by default.

144 changes: 133 additions & 11 deletions addons/breathing/stringtable.xml

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions addons/chemical/stringtable.xml

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions addons/circulation/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,13 @@ class CfgVehicles {
};
};

class kat_X_AEDItem: Item_Base_F {
scope = 2;
scopeCurator = 2;
class kat_X_AEDItem: kat_AEDItem {
displayName = CSTRING(X_Display);
author = "Katalam";
vehicleClass = "Items";
model = QPATHTOF(models\aedx\aedx.p3d);
class TransportItems {
MACRO_ADDITEM(kat_X_AED,1);
};

ACEGVAR(dragging,canDrag) = 1;
ACEGVAR(dragging,canCarry) = 1;
ACEGVAR(dragging,dragPosition)[] = {0,1.1,0};
ACEGVAR(dragging,carryPosition)[] = {0,1.1,1};

class ACE_Actions {
class ACE_MainActions {
selection = "interaction_point";
Expand Down
11 changes: 11 additions & 0 deletions addons/circulation/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ PREP_RECOMPILE_END;
true
] call CBA_Settings_fnc_init;

// Allow application of AED pads while CPR is performed
[
QGVAR(AED_duringCpr),
"CHECKBOX",
LLSTRING(SETTING_AED_duringCpr),
[CBA_SETTINGS_CAT, LSTRING(SubCategory_AED)],
[true],
true
] call CBA_Settings_fnc_init;


//Max Succes chance for AED-X
[
QGVAR(AED_X_MaxChance),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ switch (_AEDOrigin) do {

if (_exit) exitWith {false};

_condition && !(_patient getVariable [QGVAR(DefibrillatorPads_Connected), false]) && !(_patient getVariable [QEGVAR(airway,recovery), false]) && (objectParent _patient isEqualTo objectParent _medic) && {["",_patient] call ACEFUNC(medical_treatment,canCPR)};
_condition && !(_patient getVariable [QGVAR(DefibrillatorPads_Connected), false]) && !(_patient getVariable [QEGVAR(airway,recovery), false]) && (objectParent _patient isEqualTo objectParent _medic) && (["",_patient] call ACEFUNC(medical_treatment,canCPR) || GVAR(AED_duringCpr));
9 changes: 4 additions & 5 deletions addons/circulation/functions/fnc_placeAED_PickUpAction.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ _pickUpText,
};

deleteVehicle _AED;
if (_medic canAddItemToUniform _AEDClassName || _medic canAddItemToVest _AEDClassName || _medic canAddItemToBackpack _AEDClassName) then {
_medic addItem _AEDClassName;
} else {
private _droppedAED = createVehicle ["Weapon_Empty", getPosATL _medic, [], 0, "CAN_COLLIDE"];
_droppedAED addItemCargo [_AEDClassName, 1];

private _added = (([_medic, _AEDClassName] call ACEFUNC(common,addToInventory)) select 0);

if !(_added) then {
[ACELLSTRING(Common,Inventory_Full), 1.5, _medic] call ACEFUNC(common,displayTextStructured);
};
},
Expand Down
Binary file modified addons/circulation/models/aedx/aedx.p3d
Binary file not shown.
133 changes: 125 additions & 8 deletions addons/circulation/stringtable.xml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions addons/gui/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<Spanish>Parámetros básicos</Spanish>
<Portuguese>Configurações básicas</Portuguese>
<Finnish>Perus asetukset</Finnish>
<Russian>Основные настройки</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_ColoredLogs">
<English>Colored activitylogs (AED-X/Pulseoximeter)</English>
Expand Down Expand Up @@ -58,6 +59,7 @@
<Portuguese>Sem fluídos injetados</Portuguese>
<Spanish>No se administraron fluidos</Spanish>
<Finnish>Ei lisätty nesteitä</Finnish>
<Russian>Никаких переливаний</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_showInactiveStatuses">
<English>Show Inactive Statuses</English>
Expand All @@ -68,6 +70,7 @@
<Portuguese>Mostrar status inativos</Portuguese>
<Spanish>Mostrar estados inactivos</Spanish>
<Finnish>Näytä passiiviset tehosteet</Finnish>
<Russian>Показывать неактивные статусы</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_showBleedRate">
<English>Show Bleed Rate</English>
Expand All @@ -78,6 +81,7 @@
<Portuguese>Mostrar taxa de sangramento</Portuguese>
<Spanish>Mostrar ritmo de sangrado</Spanish>
<Finnish>Näytä verenvuotonopeus</Finnish>
<Russian>Показывать скорость кровотечения</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_showBleedRate_DESC">
<English>Display bleed rate (slow/moderate/severe/massive)</English>
Expand All @@ -88,6 +92,7 @@
<Portuguese>Exibir taxa de sangramento (lento/moderado/grave/massivo)</Portuguese>
<Spanish>Mostrar la tasa de sangrado (lento, moderado, grave, masivo)</Spanish>
<Finnish>Näytä verenvuotonopeus (hidas/kohtalainen/vakava/valtava)</Finnish>
<Russian>Отображение скорости кровотечения (медленное/умеренное/сильное/массивное)</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_overlayBodyPart">
<English>Overlay Selected Body Part</English>
Expand All @@ -98,6 +103,7 @@
<Portuguese>Sobrepor parte do corpo selecionada</Portuguese>
<Spanish>Resaltar parte del cuerpo seleccionada</Spanish>
<Finnish>Korosta valittu kehon osa</Finnish>
<Russian>Показать выбранную часть тела</Russian>
</Key>
<Key ID="STR_KAT_GUI_SETTING_showPatientSideLabels">
<English>Label Patient Sides</English>
Expand All @@ -108,6 +114,7 @@
<Portuguese>Mostrar etiquetas laterias do paciente</Portuguese>
<Spanish>Señalar lados del paciente</Spanish>
<Finnish>Merkitse potilaan sivut</Finnish>
<Russian>Маркировка сторон пациента</Russian>
</Key>
</Package>
</Project>
1 change: 1 addition & 0 deletions addons/main/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Korean>https://github.com/KAT-Advanced-Medical/KAM</Korean>
<Portuguese>https://github.com/KAT-Advanced-Medical/KAM</Portuguese>
<Finnish>https://github.com/KAT-Advanced-Medical/KAM</Finnish>
<Russian>https://github.com/KAT-Advanced-Medical/KAM</Russian>
</Key>
</Package>
</Project>
Loading

0 comments on commit af08811

Please sign in to comment.