From 3387898441f71b5b81317ec15e8a40ff246a21dd Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sun, 7 Jan 2024 17:46:20 +0100 Subject: [PATCH] Check correct ragdoll state --- addons/dragging/functions/fnc_canCarry.sqf | 2 +- addons/dragging/functions/fnc_canDrag.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/dragging/functions/fnc_canCarry.sqf b/addons/dragging/functions/fnc_canCarry.sqf index 6d45d2df71..732b619e6f 100644 --- a/addons/dragging/functions/fnc_canCarry.sqf +++ b/addons/dragging/functions/fnc_canCarry.sqf @@ -33,7 +33,7 @@ if (_target isKindOf "StaticWeapon") exitWith { // Units need to be unconscious or limping; Units also need to not be in ragdoll, as that causes desync issues if (_target isKindOf "CAManBase") exitWith { - (isAwake _target != alive _target) && // not ragdolled + (isAwake _target == alive _target) && // not ragdolled {!(lifeState _target in ["HEALTHY", "INJURED"]) || {_target getHitPointDamage "HitLegs" >= 0.5}} }; diff --git a/addons/dragging/functions/fnc_canDrag.sqf b/addons/dragging/functions/fnc_canDrag.sqf index ad1f0d40b4..1e2155a400 100644 --- a/addons/dragging/functions/fnc_canDrag.sqf +++ b/addons/dragging/functions/fnc_canDrag.sqf @@ -29,7 +29,7 @@ if (_target isKindOf "StaticWeapon") exitWith { // Units need to be unconscious or limping; Units also need to not be in ragdoll, as that causes desync issues if (_target isKindOf "CAManBase") exitWith { - (isAwake _target != alive _target) && // not ragdolled + (isAwake _target == alive _target) && // not ragdolled {!(lifeState _target in ["HEALTHY", "INJURED"]) || {_target getHitPointDamage "HitLegs" >= 0.5}} };