From 54f304be3c8806370653f3685eacc1dc2b908470 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:35:42 +0100 Subject: [PATCH] Update fnc_updateBodyImage.sqf --- addons/medical_gui/functions/fnc_updateBodyImage.sqf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/medical_gui/functions/fnc_updateBodyImage.sqf b/addons/medical_gui/functions/fnc_updateBodyImage.sqf index 71b86449280..25204e4b6ac 100644 --- a/addons/medical_gui/functions/fnc_updateBodyImage.sqf +++ b/addons/medical_gui/functions/fnc_updateBodyImage.sqf @@ -81,17 +81,17 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0]; // TODO: make multipliers for head and torso a macro in medical_engine/script_macros_medical.hpp switch (true) do { // torso damage threshold doesn't need scaling case (_forEachIndex > 3): { // legs: index 4 & 5 - if (!EGVAR(medical,useLimbDamage) || EGVAR(medical,limbDamageThreshold) == 0) then { // Just indicate how close to the limping threshold we are - _damageThreshold = LIMPING_DAMAGE_THRESHOLD * 4; - } else { + if (EGVAR(medical,limbDamageThreshold) != 0 && {[false, !isPlayer _target, true] select EGVAR(medical,useLimbDamage)}) then { // Just indicate how close to the limping threshold we are _damageThreshold = _damageThreshold * EGVAR(medical,limbDamageThreshold); + } else { + _damageThreshold = LIMPING_DAMAGE_THRESHOLD * 4; }; }; case (_forEachIndex > 1): { // arms: index 2 & 3 - if (!EGVAR(medical,useLimbDamage) || EGVAR(medical,limbDamageThreshold) == 0) then { // Just indicate how close to the fracture threshold we are - _damageThreshold = FRACTURE_DAMAGE_THRESHOLD * 4; - } else { + if (EGVAR(medical,limbDamageThreshold) != 0 && {[false, !isPlayer _target, true] select EGVAR(medical,useLimbDamage)}) then { // Just indicate how close to the fracture threshold we are _damageThreshold = _damageThreshold * EGVAR(medical,limbDamageThreshold); + } else { + _damageThreshold = FRACTURE_DAMAGE_THRESHOLD * 4; }; }; case (_forEachIndex == 0): { // head: index 0