mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Check correct ragdoll state
This commit is contained in:
parent
573bfbb92d
commit
3387898441
@ -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
|
// 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 {
|
if (_target isKindOf "CAManBase") exitWith {
|
||||||
(isAwake _target != alive _target) && // not ragdolled
|
(isAwake _target == alive _target) && // not ragdolled
|
||||||
{!(lifeState _target in ["HEALTHY", "INJURED"]) ||
|
{!(lifeState _target in ["HEALTHY", "INJURED"]) ||
|
||||||
{_target getHitPointDamage "HitLegs" >= 0.5}}
|
{_target getHitPointDamage "HitLegs" >= 0.5}}
|
||||||
};
|
};
|
||||||
|
@ -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
|
// 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 {
|
if (_target isKindOf "CAManBase") exitWith {
|
||||||
(isAwake _target != alive _target) && // not ragdolled
|
(isAwake _target == alive _target) && // not ragdolled
|
||||||
{!(lifeState _target in ["HEALTHY", "INJURED"]) ||
|
{!(lifeState _target in ["HEALTHY", "INJURED"]) ||
|
||||||
{_target getHitPointDamage "HitLegs" >= 0.5}}
|
{_target getHitPointDamage "HitLegs" >= 0.5}}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user