From bfb43dcf43d91fa1bc7fe9924a37fc745365c3c1 Mon Sep 17 00:00:00 2001 From: sethduda Date: Tue, 23 Aug 2016 23:11:43 -0400 Subject: [PATCH] Reducing rope lag when helicopter is moving --- .../functions/fn_advancedRappellingInit.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/AR_AdvancedRappelling/functions/fn_advancedRappellingInit.sqf b/addons/AR_AdvancedRappelling/functions/fn_advancedRappellingInit.sqf index 89a9ea6..bfa23ec 100644 --- a/addons/AR_AdvancedRappelling/functions/fn_advancedRappellingInit.sqf +++ b/addons/AR_AdvancedRappelling/functions/fn_advancedRappellingInit.sqf @@ -452,7 +452,8 @@ AR_Client_Rappel_From_Heli = { _velocityVec = _velocityVec vectorAdd (( _surfaceVector vectorMultiply (_velocityVec vectorDotProduct _surfaceVector)) vectorMultiply -1); }; - _rappelDevice setPosWorld (_newPosition vectorAdd (_velocityVec vectorMultiply 0.1) ); + _rappelDevice setPosWorld (_lastPosition vectorAdd ((_newPosition vectorDiff _lastPosition) vectorMultiply 6)); + _rappelDevice setVectorDir (vectorDir _player); _player setPosWorld [_newPosition select 0, _newPosition select 1, (_newPosition select 2)-0.6]; _player setVelocity [0,0,0];