Added isSurrendering check

This commit is contained in:
Glowbal 2015-08-07 14:49:01 +02:00
parent 4c935bb504
commit 997ac53c11

View File

@ -22,4 +22,5 @@ params ["_unit", "_target"];
(GVAR(allowHandcuffOwnSide) || {(side _unit) != (side _target)}) &&
("ACE_CableTie" in (items _unit)) &&
{alive _target} &&
{!(_target getVariable [QGVAR(isHandcuffed), false])}
{!(_target getVariable [QGVAR(isHandcuffed), false])} &&
(!GVAR(requireSurrender) || (_target getVariable [QGVAR(isSurrendering), false]) || currentWeapon _target == "")