<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="recoveryRope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
          <en>Recovery Rope End</en>
          <de>Ende Des Bergungsseils</de>
          <fr>Corde De Récupération</fr>
          <es>Cuerda De Recuperación</es>
        </name>
        <functions>
            <function>$l10n_function_recoveryRope</function>
        </functions>
        <rotation>0</rotation>
        <image>images/store_RopeRed.dds</image>
        <price>250</price>
        <lifetime>600</lifetime>
        <brand>LIZARD</brand>
        <category>misc</category>
        <shopHeight>1.2</shopHeight>
        <showInStore>false</showInStore>
        <canBeSold>false</canBeSold>
        <shopTranslationOffset>0 0.1 0</shopTranslationOffset>
        <shopRotationOffset>0 180 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_recoveryRope</typeDesc>
        <filename>i3d/ropeB.i3d</filename>
        <size width="0.5" length="1.5" height="0.2"/>
        <components>
            <component centerOfMass="0 0 0.7" solverIterationCount="10" mass="20" />
        </components>
        <schemaOverlay attacherJointPosition="0 0.25" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
        <supportsPickUp>true</supportsPickUp>
    </base>

    <attacherJoints comboDuration="2">
        <attacherJoint node="attacherjoint" jointType="trailer" lowerRotLimit="70 70 70" comboTime ="0" allowsJointLimitMovement="false" transLimitSpring="5000 5000 5000">
          <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="attacherjoint" jointType="trailerLow" lowerRotLimit="70 70 70" comboTime ="0" allowsJointLimitMovement="false" transLimitSpring="5000 5000 5000">
          <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="attacherjoint" jointType="recoveryMountJoint" lowerRotLimit="60 90 30" comboTime ="0" allowsJointLimitMovement="false" transLimitSpring="5000 5000 5000">
          <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="ropeComponent" />
        </sounds>
    </attacherJoints>
  
	  <attachable>
        <inputAttacherJoints>
          <inputAttacherJoint node="ropejoint" jointType="recoveryRopeJoint" allowsDetaching="false" allowsLowering="false" attacherHeight="0.001" transLimitSpring="5000 5000 5000"/>
        </inputAttacherJoints>
    </attachable>
  
    <connectionHoses>
      <hose inputAttacherJointIndices="1" type="recoveryRope" node="connect" length="2.25" diameter="0.06" straighteningFactor="0.25" centerPointTension="0.1" minDeltaY="0" hoseType="RED"/>
    </connectionHoses>
  
    <ai>
        <agentAttachment width="0.85" height="0.5" length="3" lengthOffset="-0.1"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.5" maxX="0.5" minZ="-0.5" maxZ="0.3" yOffset="0.1" />
    </foliageBending>

  <baseMaterial>
    <material name="rope_mat" baseNode="ropeEndVisual">
      <shaderParameter name="colorMat1" material="11" value="0.45 0 0"/>
      <shaderParameter name="colorMat2" material="1" value="0.6 0.6 0.6"/>
    </material>
  </baseMaterial>
  
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2" showOnHud="false"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

	<i3dMappings>
    <i3dMapping id="ropeComponent" node="0>"/>
    <i3dMapping id="ropeEndVisual" node="0>0|0"/>
    <i3dMapping id="ropejoint" node="0>1|0"/>
    <i3dMapping id="connect" node="0>1|1"/>
    <i3dMapping id="attacherjoint" node="0>1|2"/>
	</i3dMappings>
</vehicle>
