﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="cutter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>4408</name>
        <specs>
            <workingWidth>6.0</workingWidth>
            <combination xmlFilename="$data/vehicles/caseIH/axialFlow150/axialFlow150.xml"/>
            <combination xmlFilename="$data/vehicles/nardi/n20T/n20T.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutter</function>
        </functions>
        <image>$data/vehicles/caseIH/header4408/store_header4408.png</image>
        <price>53000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CASEIH</brand>
        <category>cornHeaders</category>
        <shopTranslationOffset>0 -0.162 0</shopTranslationOffset>
        <shopRotationOffset>4.882 0 0</shopRotationOffset>
        <shopHeight>4</shopHeight>
        <vertexBufferMemoryUsage>3195392</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>777728</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>$data/vehicles/caseIH/header4408/header4408.i3d</filename>
        <size width="7.5" length="3.5"/>
        <speedLimit value="10"/>
        <components>
            <component solverIterationCount="10" mass="3030"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="COMBINE_HEADER" />
        <mapHotspot type="CUTTER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cutter">
                <heightNode node="heightNode01"/>
                <heightNode node="heightNode02"/>
                <heightNode node="heightNode03"/>
                <distanceToGround lower="0.4" upper="1.7"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <customTarget node="cnhMultiCoupler" type="cnhMultiCoupler" inputAttacherJointIndices="1">
            <objectChange node="cnhMultiCoupler_cover" rotationActive="18 0 90" rotationInactive="-63 0 90"/>
        </customTarget>
        <customTarget node="electric" type="cnhElectricConnector" inputAttacherJointIndices="1">
            <objectChange node="electric_cover" rotationActive="82 0 0" rotationInactive="0 0 0"/>
        </customTarget>
    </connectionHoses>

    <lights>
        <sharedLight linkNode="rearLight27Orange_left"  lightTypes="0" filename="$data/shared/assets/lights/lizard/rearLight27Orange.xml" />
        <sharedLight linkNode="rearLight27Orange_right" lightTypes="0" filename="$data/shared/assets/lights/lizard/rearLight27Orange.xml" />
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" endTime="0.2" startTrans="0 0 0" endTrans="0 -0.25 0" />
        </animation>
    </animations>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoLeft"  aboveAttacher="true" ptoName="LEFT_PTO"  detachNode="ptoLeft_detached"  color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"/>
        <input inputAttacherJointIndices="1" inputNode="ptoRight" aboveAttacher="true" ptoName="RIGHT_PTO" detachNode="ptoRight_detached" color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="470" neededMaxPtoPower="100"/>

    <groundReferenceNodes>
        <groundReferenceNode node="heightNode02" threshold="0.5" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <chopperArea index="2" />
            <testAreas autoGenerate="true" zOffset="0.5" xOffset="0" length="0.6" numAreas="8" areaWidthScale="0.25"/>
        </workArea>
        <workArea type="auxiliary" >
            <area startNode="workAreaStrawStart" widthNode="workAreaStrawWidth" heightNode="workAreaStrawHeight" />
        </workArea>
    </workAreas>

    <cutter fruitTypeCategories="maizeHeader" strawRatio="0.1">
        <effect>
            <effectNode effectClass="CutterMotionPathEffect" effectType="CUTTER" linkNode="effectNodePlant">
                <motionPathEffect textureFilename="$data/vehicles/caseIH/header4408/plantArray.dds" textureRealWidth="9.5" numRows="12" rowLength="8" minFade="0.19" />
            </effectNode>
            <effectNode effectClass="CutterMotionPathEffect" effectType="CUTTER_FRUITS" linkNode="effectNodeFruit">
                <motionPathEffect textureFilename="$data/vehicles/caseIH/header4408/fruitArray.dds" textureRealWidth="9.5" numRows="12" rowLength="28" speedScale="0.23" verticalOffset="0" minFade="0.09" startDelay="0.4" stopDelay="0.6" />
            </effectNode>
            <effectNode effectClass="CutterMotionPathEffect" effectType="CUTTER_THRESHING" linkNode="effectNodeThreshing">
                <motionPathEffect textureFilename="$data/vehicles/caseIH/header4408/threshingArray.dds" textureRealWidth="9.5" numRows="12" rowLength="10" verticalOffset="0" minFade="0.15" startDelay="0.2" stopDelay="0.6"/>
            </effectNode>
            <effectNode effectClass="ParticleEffect" effectNode="smokeEmitter" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.1" worldSpace="false" useCuttingWidth="false"/>
        </effect>

        <animationNodes>
            <animationNode node="drum" rotSpeed="900" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="7"/>
            <animationNode node="rollerLeft"  rotSpeed="1300" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="rollerRight" rotSpeed="-1300" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="5"/>

            <animationNode node="cutter01" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter02" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter03" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter04" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter05" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter06" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter07" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="cutter08" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>

            <animationNode node="rollerBottom01" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom02" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom03" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom04" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom05" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom06" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom07" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom08" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom09" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom10" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom11" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom12" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom13" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom14" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom15" rotSpeed="1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>
            <animationNode node="rollerBottom16" rotSpeed="-1500" rotAxis="3" turnOnFadeTime="3" turnOffFadeTime="4"/>

            <animationNode node="chain_uvRotate" rotSpeed="-500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2" shaderComponentScale="0 0 1 0" shaderParameterName="offsetUV" />
            <animationNode node="chain_uvScroll" rotSpeed="-300" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
        </animationNodes>

        <automaticTilt raycastNode1="heightNode01" raycastNode2="heightNode03"/>
        <sounds>
            <cut template="cropCutting" />
        </sounds>
    </cutter>

    <turnOnVehicle turnedOnByAttacherVehicle="true">
        <sounds>
            <start template="forageHarvesterStart" volumeScale="0.7"/>
            <work  template="forageHarvesterWork"  pitchScale="0.8" />
            <stop  template="forageHarvesterStop"  pitchScale="1.4" volumeScale="0.35" />
        </sounds>
    </turnOnVehicle>

    <dynamicMount forceLimitScale="1"/>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="6.6" height="2.0"/>
        <agentAttachment width="6.4" height="2.2" length="3" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-3.1" maxX="3.1" minZ="-1.2" maxZ="0.3" yOffset="0.3" />
    </foliageBending>

    <designConfigurations>
        <designConfiguration name="Case IH" price="0">
            <objectChange node="brandCaseIH_decals" visibilityActive="true" visibilityInactive="false"/>
            <material name="header4409_mat" shaderParameter="colorMat0" color="CASEIH_RED1"/>
            <material name="header4409_mat" shaderParameter="colorMat2" color="CASEIH_RED1"/>
        </designConfiguration>
        <designConfiguration name="New Holland" price="0" isSelectable="false" vehicleBrand="NEWHOLLAND" vehicleName="980CR 8-30" vehicleIcon="$data/vehicles/newHolland/cr980_830/store_cr980_830.png">
            <objectChange node="brandNewHoland_decals" visibilityActive="true" visibilityInactive="false"/>
            <material name="header4409_mat" shaderParameter="colorMat0" color="NEWHOLLAND_YELLOW1"/>
            <material name="header4409_mat" shaderParameter="colorMat2" color="NEWHOLLAND_YELLOW1"/>
        </designConfiguration>
    </designConfigurations>

    <baseMaterial>
        <material name="header4409_mat" baseNode="header4409_vis">
            <shaderParameter name="colorMat0" value="CASEIH_RED1"/>
            <shaderParameter name="colorMat2" value="CASEIH_RED1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="header4409_main_component1" node="0>" />
        <i3dMapping id="header4409_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="ptoLeft" node="0>0|0|1|0" />
        <i3dMapping id="ptoRight" node="0>0|0|1|1" />
        <i3dMapping id="ptoLeft_detached" node="0>0|0|1|2" />
        <i3dMapping id="ptoRight_detached" node="0>0|0|1|3" />
        <i3dMapping id="supportArm" node="0>0|0|2|0" />
        <i3dMapping id="connectionHoses" node="0>0|0|3" />
        <i3dMapping id="electric" node="0>0|0|3|0" />
        <i3dMapping id="electric_cover" node="0>0|0|3|0|0" />
        <i3dMapping id="cnhMultiCoupler" node="0>0|0|3|1" />
        <i3dMapping id="cnhMultiCoupler_cover" node="0>0|0|3|1|0" />
        <i3dMapping id="heightNode01" node="0>0|0|4|0" />
        <i3dMapping id="heightNode02" node="0>0|0|4|1" />
        <i3dMapping id="heightNode03" node="0>0|0|4|2" />
        <i3dMapping id="rearLight27Orange_left" node="0>0|1|0" />
        <i3dMapping id="rearLight27Orange_right" node="0>0|1|1" />
        <i3dMapping id="drum" node="0>0|2|0" />
        <i3dMapping id="rollerLeft" node="0>0|2|1|0" />
        <i3dMapping id="rollerRight" node="0>0|2|2|0" />
        <i3dMapping id="cutter01" node="0>0|2|3|0|0" />
        <i3dMapping id="cutter02" node="0>0|2|3|1|0" />
        <i3dMapping id="cutter03" node="0>0|2|3|2|0" />
        <i3dMapping id="cutter04" node="0>0|2|3|3|0" />
        <i3dMapping id="cutter05" node="0>0|2|3|4|0" />
        <i3dMapping id="cutter06" node="0>0|2|3|5|0" />
        <i3dMapping id="cutter07" node="0>0|2|3|6|0" />
        <i3dMapping id="cutter08" node="0>0|2|3|7|0" />
        <i3dMapping id="rollerBottom01" node="0>0|2|4|0|0" />
        <i3dMapping id="rollerBottom02" node="0>0|2|4|1|0" />
        <i3dMapping id="rollerBottom03" node="0>0|2|4|2|0" />
        <i3dMapping id="rollerBottom04" node="0>0|2|4|3|0" />
        <i3dMapping id="rollerBottom05" node="0>0|2|4|4|0" />
        <i3dMapping id="rollerBottom06" node="0>0|2|4|5|0" />
        <i3dMapping id="rollerBottom07" node="0>0|2|4|6|0" />
        <i3dMapping id="rollerBottom08" node="0>0|2|4|7|0" />
        <i3dMapping id="rollerBottom09" node="0>0|2|4|8|0" />
        <i3dMapping id="rollerBottom10" node="0>0|2|4|9|0" />
        <i3dMapping id="rollerBottom11" node="0>0|2|4|10|0" />
        <i3dMapping id="rollerBottom12" node="0>0|2|4|11|0" />
        <i3dMapping id="rollerBottom13" node="0>0|2|4|12|0" />
        <i3dMapping id="rollerBottom14" node="0>0|2|4|13|0" />
        <i3dMapping id="rollerBottom15" node="0>0|2|4|14|0" />
        <i3dMapping id="rollerBottom16" node="0>0|2|4|15|0" />
        <i3dMapping id="chain_uvRotate" node="0>0|2|5" />
        <i3dMapping id="chain_uvScroll" node="0>0|2|6" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="workAreaStrawStart" node="0>0|3|3" />
        <i3dMapping id="workAreaStrawWidth" node="0>0|3|4" />
        <i3dMapping id="workAreaStrawHeight" node="0>0|3|5" />
        <i3dMapping id="effectNodePlant" node="0>0|4|0|0" />
        <i3dMapping id="effectNodeFruit" node="0>0|4|0|1" />
        <i3dMapping id="effectNodeThreshing" node="0>0|4|0|2" />
        <i3dMapping id="smokeEmitter" node="0>0|4|1" />
        <i3dMapping id="aiMarkerLeft" node="0>0|5|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|5|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|5|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|5|3" />
        <i3dMapping id="brandCaseIH_decals" node="0>0|6|0" />
        <i3dMapping id="brandNewHoland_decals" node="0>0|6|1" />
    </i3dMappings>
</vehicle>
