Skip to content

Commit

Permalink
Misc - Add / Change - KAT self-interaction category & Remove pulsoxim…
Browse files Browse the repository at this point in the history
…eter requirement (#470)

**When merged this pull request will:**
- Add new self interaction category to easily access all kat self
interactions without needing to go through 3 menus.
- Remove the requirement to have breathing enabled to use pulsoximeter.
- Change enable breathing string to be more telling of what it does.
  • Loading branch information
MissHeda authored Feb 29, 2024
1 parent e360eb3 commit 86e8c81
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion addons/breathing/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ACE_Medical_Treatment_Actions {
medicRequired = QGVAR(medLvl_Pulseoximeter);
treatmentTime = 2;
items[] = {"kat_Pulseoximeter"};
condition = QUOTE(missionNamespace getVariable [ARR_2(QQGVAR(enable),true)] && !(_patient getVariable [ARR_2(QQGVAR(pulseoximeter),false)]) && !([ARR_2(_patient,_bodyPart)] call FUNC(checkPulseOximeter)));
condition = QUOTE(!(_patient getVariable [ARR_2(QQGVAR(pulseoximeter),false)]) && !([ARR_2(_patient,_bodyPart)] call FUNC(checkPulseOximeter)));
callbackSuccess = QFUNC(treatmentAdvanced_pulseoximeter);
callbackFailure = "";
callbackProgress = "";
Expand Down
2 changes: 1 addition & 1 deletion addons/breathing/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Equipment {
class KAT_Equipment {
class PulseOximeter_removeSound {
displayName = CSTRING(PulseOximeter_Action_removeSound);
condition = QUOTE('kat_Pulseoximeter' in (items _player) && (_player getVariable [ARR_2(QQGVAR(PulseOximeter_Volume),false])));
Expand Down
2 changes: 1 addition & 1 deletion addons/breathing/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PREP_RECOMPILE_END;
[
QGVAR(enable),
"CHECKBOX",
LLSTRING(SETTING_ENABLE),
[LLSTRING(SETTING_ENABLE),LLSTRING(SETTING_ENABLE_DESC)],
[CBA_SETTINGS_CAT, ELSTRING(GUI,SubCategory_Basic)],
[true],
true
Expand Down
19 changes: 6 additions & 13 deletions addons/breathing/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
<Project name="KAT">
<Package name="Breathing">
<Key ID="STR_KAT_Breathing_SETTING_ENABLE">
<English>ACE-Breathing activated?</English>
<German>ACE-Atmung aktiviert?</German>
<Polish>ACE-Czy zaawansowane oddychanie ma być włączone?</Polish>
<Spanish>¿Activar ACE-Respiración?</Spanish>
<Chinese>啟用ACE-心肺呼吸系統?</Chinese>
<Chinesesimp>启用ACE-呼吸系统</Chinesesimp>
<Czech>ACE-Breathing aktivováno?</Czech>
<Korean>ACE 심폐호흡기 기능 활성화</Korean>
<French>ACE-Respiration activé?</French>
<Turkish>ACE-Nefes etkinleştirildi mi?</Turkish>
<Italian>Attivare ACE-Respirazione?</Italian>
<Russian>ACE-дыхание активировано?</Russian>
<English>Activate Breathing Module</English>
<German>Aktiviere Athmungs Modul</German>
<Japanese>KAM-Breathing を有効化しますか?</Japanese>
<Portuguese>ACE - Respiração ativada?</Portuguese>
</Key>
<Key ID="STR_KAT_Breathing_SETTING_ENABLE_DESC">
<English>Sets if SPO2 simulation and according functionality like Pneumothorax and \nAirway: occlusion &amp; obstruction (SPO2 reduction will be deactivated) should be activated</English>
<German>Setzt ob SPO2 Simuliert werden soll mit funktionen wie Pneumothorax und Atemwege: Verstopfung &amp; Obstruktion (SPO2 reduktion wird deaktiviert)</German>
</Key>
<Key ID="STR_KAT_Breathing_SETTING_SpO2_dieValue">
<English>Lethal SpO2 value</English>
Expand Down
2 changes: 1 addition & 1 deletion addons/chemical/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Equipment {
class KAT_Equipment {
class KAT_CheckGasMaskDur {
displayName = CSTRING(CheckGasMaskDurability);
condition = QUOTE([_player] call FUNC(hasGasMaskOn));
Expand Down
2 changes: 1 addition & 1 deletion addons/circulation/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class CfgVehicles {
class CheckBloodPressure {};
};
};
class ACE_Equipment {
class KAT_Equipment {
class openCrossPanel {
displayName = CSTRING(open_crosspanel);
condition = "('kat_crossPanel' in (uniformItems _player)) || ('kat_crossPanel' in (vestItems _player))";
Expand Down
6 changes: 4 additions & 2 deletions addons/misc/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ class CfgVehicles {
class CAManBase: Man {
class ACE_SelfActions
{
class ACE_Equipment
{
class KAT_Equipment {
displayName = CSTRING(Kat_Equipment);
icon = QPATHTOF(ui\KAM_Iteraction_Logo.paa);

class Armband {
displayName = CSTRING(Armband_Sling);
condition = QUOTE(_player call FUNC(checkArmbandCondition));
Expand Down
4 changes: 4 additions & 0 deletions addons/misc/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="KAT">
<Package name="Misc">
<Key ID="STR_KAT_Misc_Kat_Equipment">
<English>KAT Equipment</English>
<German>KAT Gegenstände</German>
</Key>
<Key ID="STR_KAT_Misc_SETTING_ENABLE">
<English>ACE-Misc activated?</English>
<German>ACE-Sonstiges aktivieren?</German>
Expand Down
Binary file added addons/misc/ui/KAM_Iteraction_Logo.paa
Binary file not shown.

0 comments on commit 86e8c81

Please sign in to comment.