<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="woodBackingTool">
	<storeData>
        <name>$l10n_shopItem_woodBackingTool</name>
        <functions>
            <function>$l10n_function_woodBackingTool</function>
        </functions>
        <image>store/store_woodBackingTool.png</image>
        <price>100</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LSFMHA</brand>
        <category>hofBergmannHorseAddonPack</category>
		<canBeSold>true</canBeSold>
    </storeData>

	<base>
        <typeDesc>$l10n_typeDesc_woodBackingTool</typeDesc>
        <filename>woodBackingTool.i3d</filename>
        <size width="1.5" length="0.5" height="0.1"/>
		<supportsPickUp>true</supportsPickUp>
        <components>
         	<component centerOfMass="0 0 0" solverIterationCount="10" mass="100"/>
         	<component centerOfMass="0 0 0" solverIterationCount="10" mass="100"/>
			<joint component1="1" component2="2" node="componentJoint" rotLimit="0 0 0" transLimit="0 0 0" />
		</components>
        <schemaOverlay attacherJointPosition="0 0" name="CARRIAGE" />
		<showInVehicleMenu>true</showInVehicleMenu>
        <mapHotspot type="TRAILER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" rootNode="woodBackingTool_main_component1" jointType="trailer"> <!-- attacherHeight="0.555" -->
				<!-- <objectChange node="attacherBarAttached" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="attacherBarDetached" visibilityActive="false" visibilityInactive="true"/> -->
				<subType name="horseAttacher2" showWarning="false"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="ROPE" hoseType="ROPE" node="strap_connectNodeLeft"  length="2.5" diameter="0.024" straighteningFactor="0" materialTemplateName="SHARED_BLACK5"/>
        <hose inputAttacherJointIndices="1" type="ROPE" hoseType="ROPE" node="strap_connectNodeRight" length="2.5" diameter="0.024" straighteningFactor="0" materialTemplateName="SHARED_BLACK5"/>
	</connectionHoses>
	
	<winch>
        <rope node="ropeNode" triggerNode="ropeTrigger" maxTreeMass="6.6" maxNumTrees="2" minLength="0.25" maxLength="10" maxSubLength="5">
            <mainRope diameter="0.02" uvScale="4" />
            <setupRope diameter="0.02" uvScale="4" emissiveColor="0 2 0 1" />
            <componentJoint jointIndex="1" limitActive="0 0 0" limitInactive="0 0 0"/>
            <attach node="ropeNode">
                <marker width="0.1" offset="0.005" color="0 2 0"/>
            </attach>
            <treeHook filename="$data/shared/forestry/treeHook03.xml"/>
            <!-- <objectChange node="rope_attached" visibilityActive="true" visibilityInactive="false" />
            <objectChange node="rope_detached" visibilityActive="false" visibilityInactive="true" /> -->

            <sounds>
                <releaseRope file="sounds/winch/winchOutLoop.wav" fadeIn="0.1" fadeOut="0.1" supportsReverb="false">
                    <volume indoor="0.5" outdoor="1"/>
                    <lowpassGain indoor="0.6" outdoor="1"/>
                </releaseRope>
                <pullRope    file="sounds/winch/winchInLoop.wav"  fadeIn="0.1" fadeOut="0.1" supportsReverb="false">
                    <volume indoor="0.5" outdoor="1"/>
                    <lowpassGain indoor="0.6" outdoor="1"/>
                </pullRope>
                <attachTree file="sounds/winch/attachTree.wav" supportsReverb="false">
                    <volume indoor="0.7" outdoor="1.7"/>
                </attachTree>
                <detachTree file="sounds/winch/removeRope.wav" supportsReverb="false">
                    <volume indoor="0.7" outdoor="1.7"/>
                </detachTree>
            </sounds>
        </rope>
    </winch>

	<ai supportsAIJobs="false" >
		<agentAttachment />
	</ai>

	<foliageBending>
        <bendingNode minX="-0.4" maxX="0.4" minZ="-0.2" maxZ="0.2" yOffset="0.1" />
    </foliageBending>
	
	<realDirtColor disable="true" />
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
		<i3dMapping id="woodBackingTool_main_component1" node="0>" />
		<i3dMapping id="attacherJoint" node="0>0|0" />
		<i3dMapping id="strap_connectNodeLeft" node="0>0|1" />
		<i3dMapping id="strap_connectNodeRight" node="0>0|2" />
		<i3dMapping id="woodBackingTool_component2" node="1>" />
		<i3dMapping id="componentJoint" node="1>0" />
		<i3dMapping id="winch" node="0>2" />
		<i3dMapping id="ropeTrigger" node="0>2|0" />
		<i3dMapping id="ropeNode" node="0>2|1" />
	</i3dMappings>
</vehicle>
