<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="attachableFrontloader">
    <annotation>Copyright (C) Stefan Maurus - Quality since 2010</annotation>
    <storeData>
        <name>
			<en>John Deere 740</en>
		</name>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>store/store_trimaP73.dds</image>
        <price>9630</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>frontLoaders</category>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
        <filename>i3d/trimaP73.i3d</filename>
        <size width="2.5" length="5"/>
        <components>
            <component centerOfMass="0 -0.2 1.703" solverIterationCount="16" mass="828" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="FRONTLOADER" />
    </base>

	<!--baseMaterial>
        <material name="AloeFrontLoaderFZ_mat" baseNode="mainArm">
            <shaderParameter name="colorMat0" value="0.06 0.06 0.06 0"/>
        </material>
    </baseMaterial>
    <baseMaterialConfigurations price="400" useDefaultColors="true">
		<baseMaterialConfiguration name="Standard"        color="0.06 0.06 0.06 0" 	 material="0" price="0" />
		<baseMaterialConfiguration name="Deutz Green"     color="0.1 0.43 0.055" 	 material="0" price="400" />
        <material name="AloeFrontLoaderFZ_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations-->
	
		<designConfigurations>
		<designConfiguration name="Old Decals" price="0">
		<objectChange node="0>9|0" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>9|1" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>9|2" visibilityActive="false" visibilityInactive="true"/>
		<objectChange node="0>9|3" visibilityActive="false" visibilityInactive="true"/>
	</designConfiguration>
	<designConfiguration name="New Decals" price="1500">
		<objectChange node="0>9|0" visibilityActive="false" visibilityInactive="true"/>
		<objectChange node="0>9|1" visibilityActive="false" visibilityInactive="true"/>
		<objectChange node="0>9|2" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>9|3" visibilityActive="true" visibilityInactive="false"/>
	</designConfiguration>
	</designConfigurations>

	<lights>
	     <states>
            <state lightTypes="1 2"/>
        </states>
        <realLights>
            <high>
                <light node="workLightFrontHigh" lightTypes="1 2" />
            </high>
        </realLights>
		<defaultLights>
            <defaultLight shaderNode="worklightStatic" lightTypes="1 2" intensity="30"/>
        </defaultLights>
	</lights>

    <attacherJoints>
        <attacherJoint jointType="frontloader" node="attacherJointTools" nodeVisual="attacherJointTools_visuals" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="Plus41P_Q88_main_component1" />
        </sounds>
    </attacherJoints>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableFrontloader"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="supportPart1" startTime="0" duration="0.75" startRot="58 0 0" endRot="-1 0 0"/>
            <part node="supportPart2" startTime="0" duration="0.75" startRot="55 0 0" endRot="-28 0 0"/>
			<part node="hydraulicHoses_attached"   startTime="0"    endTime="0"  visibility="true" />
            <part node="hydraulicHoses_attached"   startTime="0.01" endTime="0"  visibility="false" />
            <part node="hydraulicHoses_deattached"   startTime="0"    endTime="0"  visibility="false" />
            <part node="hydraulicHoses_deattached"   startTime="0.01" endTime="0"  visibility="true" />			
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="armDummy" delayedNode="mainArm">
				<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE" />
				<attacherJoint jointIndices="1"/>
                <rotation rotSpeed="20" rotAcceleration="145" rotMax="10" rotMin="-93" startRot="-10" detachingRotMinLimit="-10" />
				<dependentPart node="attacherRotDummy"/>
                <dependentMovingTool node="attacherDummy" minRotLimits="-39 -40" maxRotLimits="120 50"/>
            </movingTool>
            <movingTool node="attacherDummy" delayedNode="attacher">
				<controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
				<attacherJoint jointIndices="1"/>
				<rotation rotSpeed="50" rotAcceleration="300" rotMax="120" rotMin="-38" startRot="-20" syncMaxRotLimits="true"/>
            </movingTool>
            <movingTool node="mainArm">
                <dependentPart node="mainHydraulicPunch"/>
                <dependentPart node="reversArm"/>
                <dependentPart node="attacherPlate"/>
                <dependentPart node="trima"/>
                <dependentPart node="armPunch"/>
            </movingTool>
			<movingTool node="attacher">
                <dependentPart node="rotationArm"/>
                <dependentPart node="armPunch"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="attacherRotDummy" referenceFrame="attacherRootDummy"/>
            <movingPart node="attacherPlate" referenceFrame="mainFrame">
                <dependentPart node="rotationArm"/>
            </movingPart>
            <movingPart node="trima" referencePoint="refArm" referenceFrame="reversArm" invertZ="false" scaleZ="true"/> <!-- -->
            <movingPart node="reversArm" referenceFrame="0>1"/>
            <movingPart node="armPunch" referencePoint="refHydraulic" referenceFrame="refHydraulic" invertZ="true" scaleZ="false" playSound="true">
                <translatingPart node="armHydraulic"/>
            </movingPart>
            <movingPart node="mainHydraulicPunch" referencePoint="mainHydraulicRefPoint" referenceFrame="mainHydraulicRefPoint" scaleZ="false" playSound="true">
                <translatingPart node="mainHydraulic"/>
            </movingPart>
            <movingPart node="rotationArm" referencePoint="orientationArmRefPoint" localReferencePoint="orientationArm" referenceFrame="0>0|2|0|5">
                <dependentPart node="armPunch"/>
                <dependentPart node="orientationArm"/>
            </movingPart>
            <movingPart node="orientationArm" referencePoint="orientationArmRefPoint" referenceFrame="0>10"/>
        </movingParts>
		<sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="0>1|2"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>1|2" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="0>1|2"   actionNames="TRANSLATING_POS" nodes="0>1|2" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone2"   pitchScale="2.5" volumeScale="0.4" linkNode="0>0|1|1" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>0|1|1" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="0.8" linkNode="0>0|1|1" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>0|1|1" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalLowVar2"  pitchScale="1.0" volumeScale="3"   linkNode="0>4"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>4"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.4" linkNode="0>4"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>4"/>
            <actionSound template="metalClose"    pitchScale="2.5" volumeScale="0.2" linkNode="0>4"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>4"/>
            <actionSound template="clackVar6"     pitchScale="1.0" volumeScale="1.0" linkNode="0>4"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>4"/>

            <actionSound template="metalLowVar2"  pitchScale="1.3" volumeScale="2.0"   linkNode="0>4" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>4"/>
            <actionSound template="cylinderPunch" pitchScale="1.8" volumeScale="0.2" linkNode="0>4"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>4"/>
            <actionSound template="metalClose"    pitchScale="2.8" volumeScale="0.1" linkNode="0>4"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>4"/>
            <actionSound template="clackVar6"     pitchScale="1.8" volumeScale="0.5" linkNode="0>4"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>4"/>
        </sounds>
    </cylindered>

	<connectionHoses>
        <target attacherJointIndices="1" type="hydraulicIn" node="hydraulicIn1" socket="hydraulic01"/>
        <target attacherJointIndices="1" type="hydraulicOut" node="hydraulicOut1" socket="hydraulic01"/>
    </connectionHoses>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	<i3dMappings>
        <i3dMapping id="Plus41P_Q88_main_component1" node="0>" />
        <i3dMapping id="mainArm" node="0>0" />
		<i3dMapping id="attacherPlate" node="0>0|2" />
		<i3dMapping id="attacher" node="0>0|2|0" />
		<i3dMapping id="armDummy" node="0>4" />
		<i3dMapping id="attacherRotDummy" node="0>4|0" />
		<i3dMapping id="attacherDummy" node="0>4|0|0" />
		<i3dMapping id="attacherJointTools" node="0>4|0|0|0" />
		<i3dMapping id="attacherJointTools_visuals" node="0>0|2|0|0|0" />
		<i3dMapping id="attacherJoint" node="0>1|0" />
		<i3dMapping id="supportPart1" node="0>0|6|0" />
		<i3dMapping id="supportPart2" node="0>0|6|1" />
		<i3dMapping id="hydraulicHoses_deattached" node="0>0|7" />
        <i3dMapping id="hydraulicHoses_attached" node="0>3|0" />
		<i3dMapping id="mainFrame" node="0>1" />
		<i3dMapping id="hydraulicIn1" node="0>0|2|0|7|0" />
		<i3dMapping id="hydraulicOut1" node="0>0|2|0|7|1" />
		<i3dMapping id="hydraulicIn2" node="0>0|2|0|7|2" />
		<i3dMapping id="hydraulicOut2" node="0>0|2|0|7|3" />
        <i3dMapping id="workLightFrontHigh" node="0>0|5|1" />
		<i3dMapping id="worklightStatic" node="0>0|5|0" />
		<i3dMapping id="reversArm" node="0>0|0" />
		<i3dMapping id="attacherPlate" node="0>0|2" />
		<i3dMapping id="rotationArm" node="0>0|1" />
		<i3dMapping id="orientationArm" node="0>0|1|0" />
		<i3dMapping id="armPunch" node="0>0|1|1" />
		<i3dMapping id="armHydraulic" node="0>0|1|1|0" />
		<i3dMapping id="mainHydraulicPunch" node="0>1|2" />
		<i3dMapping id="trima" node="0>1|6" />
		<i3dMapping id="refHydraulic" node="0>0|0|0" />
		<i3dMapping id="refArm" node="0>0|0|1" />
		<i3dMapping id="mainHydraulic" node="0>1|2|0" />
		<i3dMapping id="mainHydraulicRefPoint" node="0>0|3" />
		<i3dMapping id="orientationArmRefPoint" node="0>0|2|0|3" />
		<i3dMapping id="quickeFrame" node="0>1|4|0" />
		<i3dMapping id="quickeArm" node="0>0|8|0" />
		<i3dMapping id="trimaArm" node="0>0|8|1" />
		<i3dMapping id="attacherRootDummy" node="0>5" />
				
	</i3dMappings>
</vehicle>