<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Winch527" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation> Made By FS Miner For FS25</annotation>

    <storeData>
        <name>
            <en>527 Winch</en>
        </name>
        <specs>
            <neededPower>50</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_winch</function>
        </functions>
        <storePacks>
            <storePack>FSM_CREATIONS_DOZERS</storePack>
        </storePacks>
        <image>store_Wicnh.dds</image>
        <price>10900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CATERPILLAR</brand>
         <category>miscDrivables</category> 
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_527Winch</typeDesc>
        <filename>527Winch.i3d</filename>
        <size width="2.5" length="1.5" height="3.5" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="15" mass="580" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

    <powerConsumer ptoRpm="350" neededMinPtoPower="5" neededMaxPtoPower="40"/>

	<attachable>
		<inputAttacherJoints>
			<inputAttacherJoint node="attacherWinch" jointType="skidSteer"  >
			</inputAttacherJoint>
		</inputAttacherJoints>
	</attachable>
	
	 <attacherJoints> 
		 <attacherJoint node="attacherRearTrailer"  jointType="trailer" lowerRotLimit="25 60 50" allowsJointLimitMovement="false" comboTime="1">
            <distanceToGround lower="0.64" upper="1.11" />
			<schema position="1 0" rotation="0" invertX="false" />
    </attacherJoint>
    </attacherJoints> 

	<connectionHoses>
		<hose inputAttacherJointIndices="1" type="hydraulicIn"  node="out1"  length="0.001" diameter="0.030" straighteningFactor="0.2" isWorldSpaceHose="true" />
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="in1" length="0.001" diameter="0.030" straighteningFactor="0.2" isWorldSpaceHose="true" />
		
		 <localHose>
            <hose type="hydraulicIn" node="1" length="0.3" diameter="0.025" straighteningFactor="0.4" isWorldSpaceHose="true" />
            <target attacherJointIndices="0" type="hydraulic" node="4" straighteningFactor="0.5" />
        </localHose> 
		 <localHose>
            <hose type="hydraulicIn" node="2" length="0.7" diameter="0.025" straighteningFactor="0.4" isWorldSpaceHose="true" />
            <target attacherJointIndices="0" type="hydraulic" node="3" straighteningFactor="0.5" />
        </localHose> 
		
		
		
    </connectionHoses>

	<winch>
        <rope node="winchRopeNode" triggerNode="winchTrigger" maxTreeMass="999999" maxNumTrees="8" minLength="0.5" maxLength="100" maxSubLength="5">
            <mainRope diameter="0.01" uvScale="4" />
            <setupRope diameter="0.01" uvScale="4" emissiveColor="0 2 0 1" />
            <attach node="winchRopeNode">
                <marker filename="$data/shared/forestry/targetTreeMarker.i3d" width="0.1" offset="0.005" color="0 2 0"/>
            </attach>
            <treeHook filename="$data/shared/forestry/treeHook03.xml"/>
            <objectChange node="WinchropePart" visibilityActive="false" visibilityInactive="true" />
			
			 <sounds>
                <releaseRope template="winchOut" fadeIn="0.1" fadeOut="0.1" supportsReverb="false">
                    <volume indoor="0.5" outdoor="0.8"/>
                    <lowpassGain indoor="0.6" outdoor="1"/>
                </releaseRope>
                <pullRope    template="winchIn"  fadeIn="0.1" fadeOut="0.1" supportsReverb="false">
                    <volume indoor="0.5" outdoor="0.8"/>
                    <lowpassGain indoor="0.6" outdoor="1"/>
                </pullRope>
                <attachTree template="treeAttach" supportsReverb="false">
                    <volume indoor="0.7" outdoor="1.4"/>
                </attachTree>
                <detachTree template="yarderRemove" supportsReverb="false">
                    <volume indoor="0.7" outdoor="1.4"/>
                </detachTree>
            </sounds>
        </rope>
    </winch>
	
	 <ai>
        <agentAttachment width="0.8" height="0.8" length="0.8" lengthOffset="-0.2"/>
    </ai>
	
	
	<foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-1.5" maxZ="1.5" yOffset="0.2" />
    </foliageBending>
      
        <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
        <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

	
	<i3dMappings>
  <i3dMapping id="mainCompWinch" node="0>" />
  <i3dMapping id="mainVisWinch" node="0>0" />
  <i3dMapping id="attachble" node="0>0|0" />
  <i3dMapping id="attacherRearTrailer" node="0>0|0|0" />
  <i3dMapping id="attacherWinch" node="0>0|0|1" />
  <i3dMapping id="bodyWinch" node="0>0|1" />
  <i3dMapping id="WinchropePart" node="0>0|1|0" />
  <i3dMapping id="winch" node="0>0|1|1" />
  <i3dMapping id="collisions1" node="0>0|2" />
  <i3dMapping id="zcol" node="0>0|2|0" />
  <i3dMapping id="zcol.002" node="0>0|2|1" />
  <i3dMapping id="zcol.003" node="0>0|2|2" />
  <i3dMapping id="winchHoses" node="0>0|3" />
  <i3dMapping id="1" node="0>0|3|0" />
  <i3dMapping id="4" node="0>0|3|1" />
  <i3dMapping id="2" node="0>0|3|2" />
  <i3dMapping id="3" node="0>0|3|3" />
  <i3dMapping id="out1" node="0>0|3|4" />
  <i3dMapping id="in1" node="0>0|3|5" />
  <i3dMapping id="winchNodes" node="0>0|4" />
  <i3dMapping id="winchTrigger" node="0>0|4|0" />
  <i3dMapping id="winchRopeNode" node="0>0|4|1" />
</i3dMappings>
	
</vehicle>