From 82cf18575c4b1b82875b00cac831a86544106c4d Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Wed, 3 Aug 2016 13:14:12 -0500 Subject: [PATCH] Minor tweaks to medical - decrease needed blood loss on selection to turn icon red. (Largest wound bleedingRate is only 0.1) - Don't print warning for basic medical bandage not having sub configs --- addons/medical/functions/fnc_modifyMedicalAction.sqf | 2 +- .../medical/functions/fnc_treatmentAdvanced_bandageLocal.sqf | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/medical/functions/fnc_modifyMedicalAction.sqf b/addons/medical/functions/fnc_modifyMedicalAction.sqf index 0081529c5a..4d0db7af34 100644 --- a/addons/medical/functions/fnc_modifyMedicalAction.sqf +++ b/addons/medical/functions/fnc_modifyMedicalAction.sqf @@ -28,7 +28,7 @@ private _bloodLossOnSelection = 0; }; } forEach (_target getvariable [QGVAR(openWounds), []]); -if (_bloodLossOnSelection >=1 ) then { +if (_bloodLossOnSelection >= 0.15) then { _actionData set [2, QPATHTOF(UI\icons\medical_crossRed.paa)]; } else { if (_bloodLossOnSelection > 0 ) then { diff --git a/addons/medical/functions/fnc_treatmentAdvanced_bandageLocal.sqf b/addons/medical/functions/fnc_treatmentAdvanced_bandageLocal.sqf index 0ad6d854f5..2c9a771804 100644 --- a/addons/medical/functions/fnc_treatmentAdvanced_bandageLocal.sqf +++ b/addons/medical/functions/fnc_treatmentAdvanced_bandageLocal.sqf @@ -57,7 +57,10 @@ private _exit = false; _woundEffectiveness = getNumber (_woundTreatmentConfig >> "effectiveness"); }; } else { - ACE_LOGWARNING_2("No config for wound type [%1] config base [%2]", _className, _config); + //Basic medical bandage just has a base level config (same effectivenes for all wound types) + if (_bandage != "Bandage") then { + ACE_LOGWARNING_2("No config for wound type [%1] config base [%2]", _className, _config); + }; }; TRACE_2("Wound classes: ", _specificClass, _classID);