Ropes – Arma 3

From Bohemia Interactive Community
Revision as of 17:10, 25 November 2021 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Commands

See Ropes and Sling Loading command group.


Config

Rope Type

A rope stretches and breaks following the formula:

const float maxRopeStretchLength = (desiredLength * maxRelLength) + maxExtraLength;
if (currentLength > maxRopeStretchLength) { /* breaks */ };

Config declaration:

class CfgVehicles
{
	class Rope;
	class RopeRabbit : Rope
	{
		maxRelLenght = 1.1;
		maxExtraLenght = 20;
		springFactor = 0.5;					// higher == less stretchy rope
		segmentType = "RopeSegmentRabbit";	// reference to CfgNonAIVehicles' class
		torqueFactor = 0.5;
		dampingFactor[] = {1.0,2.5,1.0};
		model = "\A3\Animals_F\rabbit\rabbit_F.p3d";
	};
};

class CfgNonAIVehicles
{
	class RopeSegmentRabbit
	{
		scope = 2;
		displayName = "";
		simulation = "ropesegment";
		autocenter = 0;
		animated = 0;
		model = "\A3\Animals_F\rabbit\rabbit_F.p3d";
	};
};

Rope End

TBD