diff --git a/addons/pharma/XEH_preInit.sqf b/addons/pharma/XEH_preInit.sqf index 7e6a01f91..8e62f2d96 100644 --- a/addons/pharma/XEH_preInit.sqf +++ b/addons/pharma/XEH_preInit.sqf @@ -144,7 +144,7 @@ PREP_RECOMPILE_END; "SLIDER", LLSTRING(SETTING_reorientationChance), [CBA_SETTINGS_CAT, LSTRING(SubCategory_Reorientation)], - [0, 100, 100, 0], + [0, 100, 50, 0], true ] call CBA_Settings_fnc_init; diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf index 237688ec7..a111bf7fd 100644 --- a/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf +++ b/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf @@ -1,6 +1,6 @@ #include "script_component.hpp" /* - * Author: Mazinski.H + * Author: Mazinski.H, Blue * Checks for Carbonate Wakeup values to restore consciousness * * Arguments: @@ -24,6 +24,6 @@ if (_sedated) exitWith {}; private _bloodPressure = GET_BLOOD_PRESSURE(_patient); _bloodPressureH = _bloodPressure select 1; -if (_bloodPressureH >= 100 && _bloodPressureH <= 140 && (random 100 <= GVAR(carbonateChance)) && {[_patient] call EFUNC(misc,hasStableVitals)} ) then { +if ((floor (random 100) < ((linearConversion [50, 100, _bloodPressureH, 0, GVAR(carbonateChance), true]) min (linearConversion [140, 200, _bloodPressureH, GVAR(carbonateChance), 0, true]))) && {[_patient] call EFUNC(misc,hasStableVitals)}) then { [_patient, false] call ACEFUNC(medical,setUnconscious); }; \ No newline at end of file diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf index db69a5570..4512611bf 100644 --- a/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf +++ b/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf @@ -1,6 +1,6 @@ #include "script_component.hpp" /* - * Author: Mazinski.H + * Author: Mazinski.H, Blue * Checks for Reorientation Wakeup values to restore consciousness * * Arguments: @@ -20,7 +20,7 @@ params ["_medic", "_patient"]; private _pulse = GET_HEART_RATE(_patient); -if (_pulse >= 70 && _pulse <= 100 && (random 100 <= GVAR(reorientationChance)) && {[_patient] call EFUNC(misc,hasStableVitals)}) then { +if ((floor (random 100) < ((linearConversion [40, 79, _pulse, 0, GVAR(reorientationChance), true]) min (linearConversion [80, 220, _pulse, GVAR(reorientationChance), 0, true]))) && {[_patient] call EFUNC(misc,hasStableVitals)}) then { [_patient, false] call ACEFUNC(medical,setUnconscious); _output = LLSTRING(ReorientingSuccess); [_output, 1.5, _medic] call ACEFUNC(common,displayTextStructured); diff --git a/addons/pharma/stringtable.xml b/addons/pharma/stringtable.xml index 187d8f89b..afa90ca58 100644 --- a/addons/pharma/stringtable.xml +++ b/addons/pharma/stringtable.xml @@ -1608,7 +1608,7 @@ Suprime a dor - Chance for succesful reorientation + Maximum Reorientation Success Chance Szansa na pomyślne ocucenie 成功进行恢复体态的几率 Possibilità di un riorientamento riuscito @@ -1621,7 +1621,7 @@ Chance de reorientação bem-sucedida - Chance for succesful Carbonate use + Maximum Carbonate Success Chance Szansa na pomyślne użycie soli trzeźwiących 成功使用碳酸盐的几率 Possibilità di utilizzare con successo il carbonato