Check correct ragdoll state

This commit is contained in:
johnb432 2024-01-07 17:46:20 +01:00
parent 573bfbb92d
commit 3387898441
2 changed files with 2 additions and 2 deletions

View File

@ -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}}
};

View File

@ -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}}
};