﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../bin/shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>L630</name>
        <specs>
            <neededPower>90</neededPower>
            <combination xmlFilename="$data/vehicles/caseIH/farmall120C/farmall120C.xml"/>
            <combination filterCategory="frontLoaderTools" />
        </specs>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>$data/vehicles/caseIH/frontloaderL630/store_frontloaderL630.png</image>
        <price>7500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CASEIH</brand>
        <category>frontLoaders</category>
        <shopHeight>2.8</shopHeight>
        <shopTranslationOffset>0 0.223 0</shopTranslationOffset>
        <shopRotationOffset>7.172 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>716544</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>121088</indexBufferMemoryUsage>
        <textureMemoryUsage>1638400</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
        <filename>$data/vehicles/caseIH/frontloaderL630/frontloaderL630.i3d</filename>
        <size width="2.5" length="3.3" lengthOffset="0.6"/>
        <components>
            <component centerOfMass="0 0.2 1.0" solverIterationCount="10" mass="750" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="FRONTLOADER" />
        <mapHotspot type="TOOL" />
    </base>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut02_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableFrontloader"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <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" />
            <objectChange node="attacherLockLeft" translationActive="0 0 0" translationInactive="-0.045 0 0"/>
            <objectChange node="attacherLockRight" translationActive="0 0 0" translationInactive="0.045 0 0"/>
            <objectChange node="attacherLockHandlePart" rotationActive="0 0 0" rotationInactive="-1.35 0 0"/>
            <objectChange node="attacherLockHandle" rotationActive="0 0 0" rotationInactive="58.25 0 0"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="frontloaderL630_main_component1" />
        </sounds>
    </attacherJoints>

    <connectionHoses>
        <target attacherJointIndices="1" type="hydraulicIn" node="connector01" straighteningFactor="2" socket="hydraulic03" socketColor="SHARED_BLACK1"/>
        <target attacherJointIndices="1" type="hydraulicOut" node="connector02" straighteningFactor="2" socket="hydraulic04" socketColor="SHARED_BLACK1"/>
    </connectionHoses>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm01" startTime="0.01" endTime="0.99" startRot="0 0 0" endRot="-105 0 0" />
            <part node="supportArmBolt" startTime="0.0" endTime="0.01" visibility="true"/>
            <part node="supportArmBolt" startTime="0.01" endTime="0.2" visibility="false"/>
            <part node="supportArmBolt" startTime="0.2" endTime="1.00" visibility="true"/>
            <part node="frontloaderLockArmBolt" startTime="0.0" endTime="0.1" visibility="true"/>
            <part node="frontloaderLockArmBolt" startTime="0.1" endTime="0.9" visibility="false"/>
            <part node="frontloaderLockArmBolt" startTime="0.9" endTime="1.0" visibility="true"/>
            <part node="frontloaderLockArm" startTime="0.1" endTime="0.233" startTrans="0.0 1.042 -0.594" endTrans="0.0 1.042 -0.585" />
            <part node="frontloaderLockArm" startTime="0.233" endTime="0.367" startTrans="0.0 1.042 -0.585" endTrans="0.0 1.042 -0.577" />
            <part node="frontloaderLockArm" startTime="0.367" endTime="0.5" startTrans="0.0 1.042 -0.577" endTrans="0.0 1.062 -0.564" />
            <part node="frontloaderLockArm" startTime="0.5" endTime="0.633" startTrans="0.0 1.062 -0.564" endTrans="0.0 1.07 -0.543" />
            <part node="frontloaderLockArm" startTime="0.633" endTime="0.767" startTrans="0.0 1.07 -0.543" endTrans="0.0 1.056 -0.532" />
            <part node="frontloaderLockArm" startTime="0.767" endTime="0.9" startTrans="0.0 1.056 -0.532" endTrans="0.0 1.044 -0.55" />
            <part node="hosesDetached" startTime="0.0" endTime="0.9" visibility="false"/>
            <part node="hosesAttached" startTime="0.0" endTime="0.9" visibility="true"/>
            <part node="hosesDetached" startTime="0.9" endTime="1.0" visibility="true"/>
            <part node="hosesAttached" startTime="0.9" endTime="1.0" visibility="false"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="armDummy" delayedNode="arm">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.3" iconName="FRONTLOADER_ARM_ROTATE" />
                <attacherJoint jointIndices="1" />
                <rotation rotSpeed="25" rotAcceleration="150" rotMin="-75" rotMax="10" startRot="0" detachingRotMinLimit="-10" />
                <dependentPart node="attacherRotDummy" />
                <dependentMovingTool node="attacherDummy" minRotLimits="-20 -64" maxRotLimits="125 56"/>
            </movingTool>
            <movingTool node="attacherDummy" delayedNode="attacher">
                <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.3" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
                <attacherJoint jointIndices="1" />
                <rotation rotSpeed="55" rotAcceleration="300" rotMin="-60" rotMax="100" startRot="0" syncMaxRotLimits="true" />
            </movingTool>
            <movingTool node="arm">
                <dependentPart node="armHydraulic" />
                <dependentPart node="attacherRot" />
                <dependentPart node="armAlign" />
            </movingTool>
            <movingTool node="attacher">
                <dependentPart node="attacherWing" />
                <dependentPart node="attacherHydraulic" />
            </movingTool>
            <movingTool node="frontloaderLockArm">
                <dependentPart node="frontloaderLockArmSpring" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="attacherRotDummy" referenceFrame="frontloaderL630_main_component1">
                <attacherJoint jointIndices="1" />
            </movingPart>
            <movingPart node="attacherRot" referenceFrame="frontloaderL630_main_component1">
                <attacherJoint jointIndices="1" />
                <dependentPart node="attacherWing" />
            </movingPart>

            <movingPart node="armHydraulic" referencePoint="armHydraulicRef" referenceFrame="armHydraulicRef">
                <translatingPart node="armHydraulicPunch" />
            </movingPart>
            <movingPart node="armAlign" localReferencePoint="armAlignPart" referencePoint="armAlignPartRef" referenceFrame="armAlignRefFrame">
                <dependentPart node="armAlignPart" />
                <dependentPart node="attacherHydraulic" />
            </movingPart>
            <movingPart node="armAlignPart" referencePoint="armAlignPartRef" referenceFrame="armAlignPartRef">
                <dependentPart node="attacherRotationIndicator" />
            </movingPart>
            <movingPart node="attacherWing" localReferencePoint="attacherWingPart" referencePoint="attacherWingRef" referenceFrame="attacherWingRefFrame">
                <dependentPart node="attacherWingPart" />
                <dependentPart node="attacherRotationIndicator" />
            </movingPart>
            <movingPart node="attacherWingPart" referencePoint="attacherWingRef" referenceFrame="attacherWingPartRefFrame"/>
            <movingPart node="attacherHydraulic" referencePoint="attacherHydraulicRef" referenceFrame="attacherHydraulicRef" playSound="true">
                <translatingPart node="attacherHydraulicPunch" />
            </movingPart>

            <movingPart node="attacherRotationIndicator" referencePoint="attacherRotationIndicatorRef" referenceFrame="attacherRotationIndicatorRef" doInversedLineAlignment="true" doDirectionAlignment="false">
                <orientationLine>
                    <lineNode node="attacherRotationIndicatorLine01"/>
                    <lineNode node="attacherRotationIndicatorLine02"/>
                    <lineNode node="attacherRotationIndicatorLine03"/>
                    <lineNode node="attacherRotationIndicatorLine04"/>
                    <lineNode node="attacherRotationIndicatorLine05"/>
                    <lineNode node="attacherRotationIndicatorLine06"/>
                    <lineNode node="attacherRotationIndicatorLine07"/>
                    <lineNode node="attacherRotationIndicatorLine08"/>
                </orientationLine>
            </movingPart>

            <movingPart node="frontloaderLockArmSpring" referencePoint="frontloaderLockArmSpringRef" referenceFrame="frontloaderLockArmSpringRef" scaleZ="true" />
        </movingParts>
        <sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="armHydraulic"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="armHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="armHydraulic"   actionNames="TRANSLATING_POS" nodes="armHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone2"   pitchScale="2.5" volumeScale="0.4" linkNode="attacherHydraulic" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="attacherHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="0.8" linkNode="attacherHydraulic" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="attacherHydraulic" 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>

    <ai>
        <agentAttachment width="1.3" height="1.8" length="2.7" lengthOffset="0.55"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.62" maxX="0.62" minZ="-0.4" maxZ="0.35" yOffset="0" node="attacherRot" />
    </foliageBending>

    <baseMaterial>
        <material name="frontloaderL630_mat" baseNode="frontloaderL630_vis">
            <shaderParameter name="colorMat1" value="CASEIH_RED1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="frontloaderL630_main_component1" node="0>" />
        <i3dMapping id="frontloaderL630_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="hosesDetached" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|1|0|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|1|0|1" />
        <i3dMapping id="hydraulicIn02_connector" node="0>0|0|1|0|2" />
        <i3dMapping id="hydraulicOut02_connector" node="0>0|0|1|0|3" />
        <i3dMapping id="hosesAttached" node="0>0|0|1|1" />
        <i3dMapping id="frontloaderConnectors" node="0>0|0|1|1|0" />
        <i3dMapping id="frontloaderLockArm" node="0>0|0|2" />
        <i3dMapping id="frontloaderLockArmSpring" node="0>0|0|2|0" />
        <i3dMapping id="frontloaderLockArmBolt" node="0>0|0|3" />
        <i3dMapping id="arm" node="0>0|1|0" />
        <i3dMapping id="attacherRot" node="0>0|1|0|0" />
        <i3dMapping id="attacher" node="0>0|1|0|0|0" />
        <i3dMapping id="attacherLockLeft" node="0>0|1|0|0|0|0|0|0" />
        <i3dMapping id="attacherLockRight" node="0>0|1|0|0|0|0|1|0" />
        <i3dMapping id="attacherLockHandlePart" node="0>0|1|0|0|0|0|1|0|0|0" />
        <i3dMapping id="attacherLockHandle" node="0>0|1|0|0|0|0|1|0|0|0|0|0" />
        <i3dMapping id="attacherJointTools_visuals" node="0>0|1|0|0|0|1" />
        <i3dMapping id="attacherWingRef" node="0>0|1|0|0|0|2" />
        <i3dMapping id="attacherWingRefFrame" node="0>0|1|0|1|0" />
        <i3dMapping id="attacherWing" node="0>0|1|0|1|0|0" />
        <i3dMapping id="attacherWingPartRefFrame" node="0>0|1|0|1|0|0|0" />
        <i3dMapping id="attacherWingPart" node="0>0|1|0|1|0|0|0|0" />
        <i3dMapping id="attacherRotationIndicator" node="0>0|1|0|1|0|0|1" />
        <i3dMapping id="attacherRotationIndicatorLine01" node="0>0|1|0|1|0|0|1|0" />
        <i3dMapping id="attacherRotationIndicatorLine02" node="0>0|1|0|1|0|0|1|1" />
        <i3dMapping id="attacherRotationIndicatorLine03" node="0>0|1|0|1|0|0|1|2" />
        <i3dMapping id="attacherRotationIndicatorLine04" node="0>0|1|0|1|0|0|1|3" />
        <i3dMapping id="attacherRotationIndicatorLine05" node="0>0|1|0|1|0|0|1|4" />
        <i3dMapping id="attacherRotationIndicatorLine06" node="0>0|1|0|1|0|0|1|5" />
        <i3dMapping id="attacherRotationIndicatorLine07" node="0>0|1|0|1|0|0|1|6" />
        <i3dMapping id="attacherRotationIndicatorLine08" node="0>0|1|0|1|0|0|1|7" />
        <i3dMapping id="attacherHydraulicRef" node="0>0|1|0|1|0|0|2" />
        <i3dMapping id="armHydraulic" node="0>0|1|0|1|1" />
        <i3dMapping id="armHydraulicPunch" node="0>0|1|0|1|1|0" />
        <i3dMapping id="supportArm01" node="0>0|1|0|2|0" />
        <i3dMapping id="colPart" node="0>0|1|0|2|0|0" />
        <i3dMapping id="supportArmBolt" node="0>0|1|0|2|1" />
        <i3dMapping id="connector01" node="0>0|1|0|3|0" />
        <i3dMapping id="connector02" node="0>0|1|0|3|1" />
        <i3dMapping id="armAlignPartRef" node="0>0|1|0|5" />
        <i3dMapping id="armDummy" node="0>0|1|1" />
        <i3dMapping id="attacherRotDummy" node="0>0|1|1|0" />
        <i3dMapping id="attacherDummy" node="0>0|1|1|0|0" />
        <i3dMapping id="attacherJointTools" node="0>0|1|1|0|0|0" />
        <i3dMapping id="armAlignRefFrame" node="0>0|1|2" />
        <i3dMapping id="armAlign" node="0>0|1|2|0" />
        <i3dMapping id="armAlignPart" node="0>0|1|2|0|0" />
        <i3dMapping id="attacherHydraulic" node="0>0|1|2|0|0|0" />
        <i3dMapping id="attacherHydraulicPunch" node="0>0|1|2|0|0|0|0" />
        <i3dMapping id="attacherRotationIndicatorRef" node="0>0|1|2|0|0|1" />
        <i3dMapping id="armHydraulicRef" node="0>0|1|3" />
        <i3dMapping id="frontloaderLockArmSpringRef" node="0>0|1|4" />
    </i3dMappings>
</vehicle>
