From 12779b03bf9e2b2159c9d5d882cf528a7241ebbb Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Wed, 25 Nov 2015 00:19:17 +0100 Subject: [PATCH] Glitchy rope fix --- addons/fastroping/functions/fnc_deployRopes.sqf | 2 +- addons/fastroping/functions/fnc_fastRopePFH.sqf | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/fastroping/functions/fnc_deployRopes.sqf b/addons/fastroping/functions/fnc_deployRopes.sqf index 384c57e363..d253dbe9d7 100644 --- a/addons/fastroping/functions/fnc_deployRopes.sqf +++ b/addons/fastroping/functions/fnc_deployRopes.sqf @@ -40,7 +40,7 @@ _deployedRopes = []; _hook attachTo [_vehicle, [0,0,0], _x]; }; - _ropeTop = ropeCreate [_hook, [0, 0, 0], _dummy, [0, 0, 0], 2]; + _ropeTop = ropeCreate [_dummy, [0, 0, 0], _hook, [0, 0, 0], 2]; _ropeBottom = ropeCreate [_dummy, [0, 0, 0], _anchor, [0, 0, 0], 33]; //deployedRopes format: attachment point, top part of the rope, bottom part of the rope, attachTo helper object, anchor helper object, occupied diff --git a/addons/fastroping/functions/fnc_fastRopePFH.sqf b/addons/fastroping/functions/fnc_fastRopePFH.sqf index 706d570343..9a693cffc8 100644 --- a/addons/fastroping/functions/fnc_fastRopePFH.sqf +++ b/addons/fastroping/functions/fnc_fastRopePFH.sqf @@ -24,9 +24,10 @@ private ["_origin"]; //Wait until the unit is actually outside of the helicopter if (vehicle _unit != _unit) exitWith {}; +_unit setVectorUp [0, 0, 1]; + //Start fast roping if (isNull attachedTo _unit) exitWith { - _dummy setVectorUp [0, 0, 1]; _unit attachTo [_dummy, [0, 0, -1.2]]; [_unit, "ACE_FastRoping", 2] call EFUNC(common,doAnimation); ropeUnwind [_ropeTop, 6, 35]; @@ -45,7 +46,7 @@ if (((getPos _unit select 2) < 0.2) || {ropeUnwound _ropeTop} || {vectorMagnitud _origin = AGLtoASL (_vehicle modelToWorld _attachmentPoint); _dummy setPosASL (_origin vectorAdd [0, 0, -2]); - _ropeTop = ropeCreate [_hook, [0, 0, 0], _dummy, [0, 0, 0], 2]; + _ropeTop = ropeCreate [_dummy, [0, 0, 0], _hook, [0, 0, 0], 2]; _ropeBottom = ropeCreate [_dummy, [0, 0, 0], _anchor, [0, 0, 0], 33]; //Update deployedRopes array