From 3264e9ecb2e16a8ab3ef146388e980557c1a530c Mon Sep 17 00:00:00 2001 From: LinkIsGrim Date: Thu, 26 Oct 2023 20:28:46 -0400 Subject: [PATCH] add setting, stringtable --- addons/medical_engine/initSettings.sqf | 12 ++++++++++++ addons/medical_engine/stringtable.xml | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/addons/medical_engine/initSettings.sqf b/addons/medical_engine/initSettings.sqf index 062e2a0822..b60ab23344 100644 --- a/addons/medical_engine/initSettings.sqf +++ b/addons/medical_engine/initSettings.sqf @@ -1,3 +1,15 @@ +[ + QEGVAR(medical,enabled), + "CHECKBOX", + [LSTRING(Enabled_DisplayName), LSTRING(Enabled_Description)], + ELSTRING(medical,Category), + true, + true, { + [QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged) + }, + true // Needs mission restart +] call CBA_fnc_addSetting; + [ QEGVAR(medical,enableVehicleCrashes), "CHECKBOX", diff --git a/addons/medical_engine/stringtable.xml b/addons/medical_engine/stringtable.xml index ac2968bd0f..a4614d57ae 100644 --- a/addons/medical_engine/stringtable.xml +++ b/addons/medical_engine/stringtable.xml @@ -1,6 +1,12 @@ + + Enable Medical System + + + Controls whether ACE's Medical System is enabled. Disabling the medical system through this setting is experimental, and may not be compatible with other mods.\nUse the No Medical optional component instead if you have issues. + Enable Vehicle Crash Damage Вкл. урон при аварии в транспорте