<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) PeterJ, All Rights Reserved.</annotation>

    <storeData>
        <name>Systematic</name>
        <specs>
            <combination xmlFilename="MF35series.xml"/>
            <combination xmlFilename="MF100series3cyl.xml"/>
            <combination xmlFilename="concreteWeight.xml"/>
            <combination filterCategory="frontLoaderTools" />
        </specs>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>store_Systematic.png</image>
        <price>1950</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>frontLoaders</category>
        <vertexBufferMemoryUsage>258048</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>35584</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
		<filename>Systematic.i3d</filename>
        <size width="2.5" length="3" lengthOffset="-0.15" />
        <components>
            <component centerOfMass="0 0.4 -0.1" solverIterationCount="10" mass="400" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="FRONTLOADER" />
        <mapHotspot type="TOOL" />
    </base>

    <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-->
		<attacherJointConfigurations>
			<attacherJointConfiguration name="$l10n_configuration_tripLoader" price="0" >
				<attacherJoint jointType="frontloader" node="attacherJointToolsTL" nodeVisual="attacherJointToolsTL_visuals" lowerRotLimit="0 0 120" lowerTransLimit="0 0 0" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" moveTime="0.7">
					<subType name="SystematicLoader"/>
					<rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
					<schema position="1 0" rotation="0" invertX="false" />
				</attacherJoint>
				<objectChange node="attacherRot" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydraulicFront" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydraulicHoseFront" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydraulicHoseBack" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydraulicHoseIn2" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydraulicHoseIn3" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydrauliInTarget2" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="hydrauliInTarget3" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="releaseLever" visibilityActive="true" visibilityInactive="false" />
				<objectChange node="hydraulicPipes" visibilityActive="false" visibilityInactive="true" />
				<objectChange node="releaseMechanism" visibilityActive="true" visibilityInactive="false" />
				<objectChange node="leftHook_col" translationActive="0.6 -1.043 1.334" />
				<objectChange node="rightHook_col" translationActive="-0.6 -1.043 1.334" />
			</attacherJointConfiguration>
			<attacherJointConfiguration name="$l10n_configuration_hydraulicCylinder" price="350" >
				<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>
			</attacherJointConfiguration>	
		</attacherJointConfigurations>	
        <sounds>
            <attach template="ATTACH_01" linkNode="Systematic_main_component1" />
        </sounds>
    </attacherJoints>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableFrontloader" >
				<subType name="SystematicLoader"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="attachAnimations" />
    </attachable>
	
    <connectionHoses>
		<localHose>
            <hose type="hydraulicIn" node="mainRamHydLeft" length="0.4" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydraulicHoseLeft" straighteningFactor="1"/>
        </localHose>
		<localHose>
            <hose type="hydraulicIn" node="mainRamHydRight" length="0.4" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydraulicHoseRight" straighteningFactor="1"/>
        </localHose>
		<localHose>
            <hose type="hydraulicIn" node="hydraulicHoseBack" length="0.8" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydraulicHoseInBack" straighteningFactor="1"/>
        </localHose>		<localHose>
            <hose type="hydraulicIn" node="hydraulicHoseFront" length="1.8" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydraulicHoseInFront" straighteningFactor="1"/>
        </localHose>		
		<localHose>
            <hose type="hydraulicIn" node="hydraulicHoseIn1" length="0.9" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydrauliInTarget1" straighteningFactor="1"/>
        </localHose>
		<localHose>
            <hose type="hydraulicIn" node="hydraulicHoseIn2" length="0.9" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydrauliInTarget2" straighteningFactor="1"/>
        </localHose>
		<localHose>
            <hose type="hydraulicIn" node="hydraulicHoseIn3" length="0.9" diameter="0.02" minCenterPointAngle="90" straighteningFactor="2" isWorldSpaceHose="false" isTwoPointHose="true"/>
            <target type="none" node="hydrauliInTarget3" straighteningFactor="1"/>
        </localHose>		
    </connectionHoses>

    <animations>
        <animation name="attachAnimations">
            <part node="loaderStand"	startTime="0" endTime="0.1" startTrans="0 0.45 -0.227"  endTrans="0 0.02 -0.227" />	
			<part node="loaderStand"	startTime="0" endTime="0.05" visibility="false" />			
			<part node="loaderStand"	startTime="0.05" endTime="0.1" visibility="true" />
			
            <part node="hydrauliInTarget1"	startTime="0" endTime="0.1" startTrans="-0.308 0.873 -1.264"  endTrans="-0.388 0.7 -1.07" />	
            <part node="hydrauliInTarget2"	startTime="0" endTime="0.1" startTrans="-0.349 0.873 -1.264"  endTrans="-0.39 0.73 -1.105" />	
            <part node="hydrauliInTarget3"	startTime="0" endTime="0.1" startTrans="-0.387 0.873 -1.264"  endTrans="-0.39 0.741 -1.147" />	
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
			<movingTool node="armDummy" delayedNode="mainArm">
				<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.0" iconName="FRONTLOADER_ARM_ROTATE" />
				<attacherJoint jointIndices="1" />
				<rotation rotSpeed="20" rotAcceleration="200" rotMax="2" rotMin="-87" startRot="0" detachingRotMinLimit="-2" />
			</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="33" rotAcceleration="300" rotMax="120" rotMin="-43" startRot="-25" syncMaxRotLimits="true" />
			</movingTool>

			<movingTool node="mainArm">
				<dependentPart node="hydraulicMain" />
			</movingTool>
			<movingTool node="attacher">
				<dependentPart node="hydraulicFront" />
			</movingTool>
        </movingTools>		
		
        <movingParts>
			<movingPart node="hydraulicMain" referencePoint="hydraulicMainRef" referenceFrame="supportArm" playSound="true" >
				<translatingPart node="hydraulicMainPunch" />
			</movingPart>
			<movingPart node="hydraulicFront" referencePoint="hydraulicFrontRef" referenceFrame="SystematicBracket" playSound="true">
				<translatingPart node="hydraulicFrontPunch" />
			</movingPart>
		</movingParts>

		<sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="hydraulicMain"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicMain" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="hydraulicMain"   actionNames="TRANSLATING_POS" nodes="hydraulicMain" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone2"   pitchScale="2.5" volumeScale="0.4" linkNode="hydraulicFront" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicFront" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="0.8" linkNode="hydraulicFront" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicFront" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalLowVar2"  pitchScale="1.0" volumeScale="3"   linkNode="armDummy"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="armDummy"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.4" linkNode="armDummy"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="armDummy"/>
            <actionSound template="metalClose"    pitchScale="2.5" volumeScale="0.2" linkNode="armDummy"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="armDummy"/>
            <actionSound template="clackVar6"     pitchScale="1.0" volumeScale="1.0" linkNode="armDummy"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="armDummy"/>

            <actionSound template="metalLowVar2"  pitchScale="1.3" volumeScale="2.0" linkNode="armDummy"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="armDummy"/>
            <actionSound template="cylinderPunch" pitchScale="1.8" volumeScale="0.2" linkNode="armDummy"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="armDummy"/>
            <actionSound template="metalClose"    pitchScale="2.8" volumeScale="0.1" linkNode="armDummy"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="armDummy"/>
            <actionSound template="clackVar6"     pitchScale="1.8" volumeScale="0.5" linkNode="armDummy"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="armDummy"/>
        </sounds>
    </cylindered>
    
	<baseMaterial>
        <material name="MF135parts_mat" baseNode="mainArm">
            <shaderParameter name="colorMat0" value="0.4936 0.001 0.002 1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations>
        <baseMaterialConfiguration color="0.4936 0.001 0.002 1" name="$l10n_colour_MFred" />
        <baseMaterialConfiguration color="MASSEYFERGUSON_ORIGINAL_GREY" name="$l10n_ui_colorGrey" />
        <baseMaterialConfiguration color="SHARED_BLACK3" name="$l10n_ui_colorBlack" />
        <material name="MF135parts_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
	
    <ai>
        <agentAttachment width="1.2" height="1.4" length="1.7" lengthOffset="-0.45"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <foliageBending>
        <bendingNode minX="-0.6" maxX="0.6" minY="0" maxY="1.3" minZ="-0.1" maxZ="0.1" node="attacherRot" />
    </foliageBending>

    <i3dMappings>
        <i3dMapping id="Systematic_main_component1" node="0>" />
        <i3dMapping id="SystematicBracket" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="hydraulicMainRef" node="0>0|1" />
        <i3dMapping id="loaderStand" node="0>0|2" />		
        <i3dMapping id="hydrauliInTarget1" node="0>0|3|0" />
        <i3dMapping id="hydrauliInTarget2" node="0>0|3|1" />
        <i3dMapping id="hydrauliInTarget3" node="0>0|3|2" />		
        <i3dMapping id="releaseLever" node="0>0|4" />				
        <i3dMapping id="mainArm" node="0>1" />
        <i3dMapping id="hydraulicMain" node="0>1|0" />
        <i3dMapping id="hydraulicMainPunch" node="0>1|0|0" />
        <i3dMapping id="hydraulicHoseLeft" node="0>1|0|1" />
        <i3dMapping id="hydraulicHoseRight" node="0>1|0|2" />
        <i3dMapping id="attacherRot" node="0>1|1" />
        <i3dMapping id="attacher" node="0>1|1|0" />
        <i3dMapping id="hydraulicFrontRef" node="0>1|1|0|0" />
        <i3dMapping id="attacherJointTools_visuals" node="0>1|1|0|1" />
        <i3dMapping id="hydraulicFront" node="0>1|2" />
        <i3dMapping id="hydraulicFrontPunch" node="0>1|2|0" />
        <i3dMapping id="hydraulicHoseInBack" node="0>1|2|1" />
        <i3dMapping id="hydraulicHoseInFront" node="0>1|2|2" />		
        <i3dMapping id="mainRamHydLeft" node="0>1|3|0" />
        <i3dMapping id="mainRamHydRight" node="0>1|3|1" />
        <i3dMapping id="hydraulicHoseBack" node="0>1|3|2" />
        <i3dMapping id="hydraulicHoseFront" node="0>1|3|3" />
        <i3dMapping id="hydraulicHoseIn1" node="0>1|3|4" />
        <i3dMapping id="hydraulicHoseIn2" node="0>1|3|5" />
        <i3dMapping id="hydraulicHoseIn3" node="0>1|3|6" />		
        <i3dMapping id="hydraulicPipes" node="0>1|3|7" />		
        <i3dMapping id="supportArm" node="0>1|4" />
        <i3dMapping id="attacherJointToolsTL_visuals" node="0>1|9" />		
        <i3dMapping id="releaseMechanism" node="0>1|10" />	
        <i3dMapping id="leftHook_col" node="0>1|11" />
        <i3dMapping id="rightHook_col" node="0>1|12" />
        <i3dMapping id="armDummy" node="0>2" />
        <i3dMapping id="attacherRotDummy" node="0>2|0" />
        <i3dMapping id="attacherDummy" node="0>2|0|0" />
        <i3dMapping id="attacherJointTools" node="0>2|0|0|0" />		
        <i3dMapping id="attacherJointToolsTL" node="0>2|1" />		
    </i3dMappings>

</vehicle>
