Skip to content

Commit

Permalink
Gave rope some slack at usual connection distances
Browse files Browse the repository at this point in the history
  • Loading branch information
mrschick committed Oct 7, 2023
1 parent 77e077d commit a879c85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sys_core/fnc_handleConnectorRope.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (_state) then {
//_fromPoint set [2, (_fromPoint select 2) - 0.3]; // Lower Z coordinate by 30cm ---------------------- CHECK IF NEEDED

// Create Rope
GVAR(connectorRope) = ropeCreate [_fromObject, _fromPoint, 2, nil, nil, QGVAR(connectorWire)];
GVAR(connectorRope) = ropeCreate [_fromObject, _fromPoint, 3, nil, nil, QGVAR(connectorWire)];

// Create helper object on player pelvis
GVAR(connectorRopeHelpers) set [0, "Land_Can_V2_F" createVehicle position _toObject];
Expand All @@ -58,7 +58,7 @@ if (_state) then {
hideObject (GVAR(connectorRopeHelpers) select 1);

// Create Rope between helper objects
GVAR(connectorRope) = ropeCreate [GVAR(connectorRopeHelpers) select 0, _fromPoint, 2.5, nil, nil, QGVAR(connectorWire)];
GVAR(connectorRope) = ropeCreate [GVAR(connectorRopeHelpers) select 0, _fromPoint, 5, nil, nil, QGVAR(connectorWire)];
[(GVAR(connectorRopeHelpers) select 1), [0, 0, 0]] ropeAttachTo GVAR(connectorRope);
systemChat "created rope";
};
Expand All @@ -74,7 +74,7 @@ if (_state) then {
hideObject (GVAR(connectorRopeHelpers) select 1);

// Create Rope between helper objects
GVAR(connectorRope) = ropeCreate [GVAR(connectorRopeHelpers) select 0, _fromPoint, 0.5, nil, nil, QGVAR(connectorWire)];
GVAR(connectorRope) = ropeCreate [GVAR(connectorRopeHelpers) select 0, _fromPoint, 3, nil, nil, QGVAR(connectorWire)];
[GVAR(connectorRopeHelpers) select 1, [0, 0, 0]] ropeAttachTo GVAR(connectorRope);
systemChat "created rope";
};
Expand Down

0 comments on commit a879c85

Please sign in to comment.