From d39998ac141927188ac200d5817eddd071eb7fa0 Mon Sep 17 00:00:00 2001 From: mrpvtdagger Date: Tue, 2 Mar 2021 15:28:06 -0400 Subject: [PATCH] Fixed Rope Lengths --- ACE_MPD_SlingLoad/init.sqf | 5 +++-- ACE_MPD_SlingLoad/sling.sqf | 16 +++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ACE_MPD_SlingLoad/init.sqf b/ACE_MPD_SlingLoad/init.sqf index aac1f4f..3ce98fa 100644 --- a/ACE_MPD_SlingLoad/init.sqf +++ b/ACE_MPD_SlingLoad/init.sqf @@ -15,13 +15,14 @@ _ccargo = [ ]; */ - _ccargo = [ ]; +/* Here you can change blacklisted entities which will be added at the start of a mission. */ +_acargo = entities [[], ["Air","Man","Tank","Logic","House"], true];; + // ====================== Don't Touch Anything Below this line ====================== -_acargo = entities [[], ["Air","Man","Tank","Logic","Car"], true];; // Maybe Better way of Doing This???? _acargo append _ccargo; { _action = [ diff --git a/ACE_MPD_SlingLoad/sling.sqf b/ACE_MPD_SlingLoad/sling.sqf index 8b95b1f..9758ade 100644 --- a/ACE_MPD_SlingLoad/sling.sqf +++ b/ACE_MPD_SlingLoad/sling.sqf @@ -36,11 +36,17 @@ _rearCorner2 = [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) - _lengthOffset, (_centerOfMass select 2)+_heightOffset]; _frontCorner = [(_centerOfMass select 0) + _widthOffset, (_centerOfMass select 1) + _lengthOffset, (_centerOfMass select 2)+_heightOffset]; _frontCorner2 = [(_centerOfMass select 0) - _widthOffset, (_centerOfMass select 1) + _lengthOffset, (_centerOfMass select 2)+_heightOffset]; - - _Rope1 = ropeCreate [_nObject, [0,1.1,-2], 5]; - _Rope2 = ropeCreate [_nObject, [0,1.1,-2], 5]; - _Rope3 = ropeCreate [_nObject, [0,1.1,-2], 5]; - _Rope4 = ropeCreate [_nObject, [0,1.1,-2], 5]; + + _cargodistance = _nObject distance _cargo; + _Rope1length = _lengthOffset + 4.8; + _Rope2length = _lengthOffset + 4.8; + _Rope3length = _lengthOffset + 4.8; + _Rope4length = _lengthOffset + 4.8; + + _Rope1 = ropeCreate [_nObject, [0,1.1,-2], _Rope1length]; + _Rope2 = ropeCreate [_nObject, [0,1.1,-2], _Rope2length]; + _Rope3 = ropeCreate [_nObject, [0,1.1,-2], _Rope3length]; + _Rope4 = ropeCreate [_nObject, [0,1.1,-2], _Rope4length]; [_cargo , _rearCorner, [0,0,-1]] ropeAttachTo (_Rope1); [_cargo , _rearCorner2, [0,0,-1]] ropeAttachTo (_Rope2);