mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix going unconscious while fastroping (#4531)
This commit is contained in:
parent
c390b6c1fc
commit
2ba0137a1e
@ -53,7 +53,12 @@ if (_hasBeenAttached && {isNull attachedTo _unit}) exitWith {
|
|||||||
_dummy setVelocity [0,0,-6];
|
_dummy setVelocity [0,0,-6];
|
||||||
|
|
||||||
//Check if fast rope is finished
|
//Check if fast rope is finished
|
||||||
if (((getPos _unit select 2) < 0.2) || {ropeLength _ropeTop == 34.5} || {vectorMagnitude (velocity _vehicle) > 5} || {!(alive _unit)} || {captive _unit}) exitWith {
|
if (
|
||||||
|
((getPos _unit select 2) < 0.2)
|
||||||
|
|| {ropeLength _ropeTop == 34.5}
|
||||||
|
|| {vectorMagnitude (velocity _vehicle) > 5}
|
||||||
|
|| {!([_unit] call EFUNC(common,isAwake))}
|
||||||
|
) exitWith {
|
||||||
detach _unit;
|
detach _unit;
|
||||||
|
|
||||||
//Reset rope
|
//Reset rope
|
||||||
|
Loading…
Reference in New Issue
Block a user