﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="spreader" 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>ZA-TS 3200</name>
        <specs>
            <workingWidth>42.0</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="1500" filterSpecMax="1600"/>
        </specs>
        <functions>
            <function>$l10n_function_fertilizer</function>
        </functions>
        <image>$data/vehicles/amazone/zats3200/store_zats3200.png</image>
        <price>25000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>AMAZONE</brand>
        <category>fertilizerSpreaders</category>
        <shopLoadingDelay initial="0.15"/>
        <shopTranslationOffset>0 0.004 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1975808</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>352000</indexBufferMemoryUsage>
        <textureMemoryUsage>2097152</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_fertilizerSpreader</typeDesc>
        <filename>$data/vehicles/amazone/zats3200/zats3200.i3d</filename>
        <size width="3.5" length="2.5" lengthOffset="0"/>
        <speedLimit value="18" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="573"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <powerConsumer ptoRpm="400" neededMaxPtoPower="15"/>

    <lights>
        <sharedLight linkNode="yellowRectangle_01_01" filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="yellowRectangle_01_02" filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />
        <sharedLight linkNode="redRound_02_01" filename="$data/shared/assets/reflectors/lizard/redRound_01.xml" />
        <sharedLight linkNode="redRound_02_02" filename="$data/shared/assets/reflectors/lizard/redRound_01.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLight" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="backlightStatic" lightTypes="0" />
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="backlightStatic" lightTypes="0" />
        </brakeLights>

        <reverseLights>
            <reverseLight shaderNode="reverselightStatic"/>
        </reverseLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic"/>
            <turnLightRight shaderNode="turnlightRightStatic"/>
        </turnLights>
    </lights>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
    </workAreas>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferencePoint" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperRotationOffset="2" needsLowering="false" >
                <distanceToGround lower="0.35" upper="0.75" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.4" diameter="0.02" straighteningFactor="0.2">
            <objectChange node="hydraulicIn01_attached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.4" diameter="0.02" straighteningFactor="0.2">
            <objectChange node="hydraulicOut01_attached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electricIn01" length="1.6" diameter="0.01" straighteningFactor="0.2">
            <objectChange node="electricIn01_attached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electricIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <animations>
        <animation name="toggleCover">
            <part node="coverClosed_lod" startTime="1"    endTime="1.02" visibility="true" />
            <part node="coverClosed_lod" startTime="1.02" endTime="1.04" visibility="false" />
            <part node="coverOpen_lod" startTime="1"    endTime="1.02" visibility="false" />
            <part node="coverOpen_lod" startTime="1.02" endTime="1.04" visibility="true" />
            <part node="ladder01"    startTime="0"    endTime="1" startRot="0 0 0" endRot="0 0 -153.358"/>
            <part node="ladder02"    startTime="0"    endTime="1" startRot="0 0 0" endRot="0 0 153.358"/>

            <sound template="fabricCover2" startTime="0.99" direction="1"  volumeScale="1.8" pitchScale="1.5"/>
            <sound template="fabricCover1" startTime="0.99" direction="-1" volumeScale="1.8" pitchScale="1.8"/>

            <sound template="clackVar4" startTime="0.01" volumeScale="1.4" pitchScale="1.8"/>
            <sound template="clackVar5" startTime="0.99" volumeScale="0.5" pitchScale="2.1"/>
        </animation>
        <animation name="moveSupport">
            <part node="supportWheelsLeft"      startTime="0" endTime="0.2"  startRot="0 0 100" endRot="0 0 0" />
            <part node="supportWheelLeftFront"  startTime="0" endTime="0.2"  startRot="0 90 0" endRot="0 0 0" />
            <part node="supportWheelsRight"     startTime="0" endTime="0.2"  startRot="0 0 -100" endRot="0 0 0" />
            <part node="supportWheelRightFront" startTime="0" endTime="0.2"  startRot="0 -90 0" endRot="0 0 0" />

            <sound template="clackVar5" startTime="0.09" direction="-1" volumeScale="0.9" pitchScale="1.6" linkNode="attacherJoint"/>
            <sound template="latchSmall" startTime="0.19" direction="-1" volumeScale="0.2" pitchScale="1.2" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.01" direction="1" volumeScale="1.5" pitchScale="1.6" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <unloading width="11" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer" capacity="3200" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.5" fillUnitIndex="1" maxAllowedHeapAngle="16" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>

    <sprayer fillUnitIndex="1">
        <usageScales workAreaIndex="1" scale="1" />
        <animationNodes>
            <animationNode node="spreaderLeft"  rotSpeed="-2500" turnOnFadeTime="0.6" turnOffFadeTime="2" />
            <animationNode node="spreaderRight" rotSpeed="2500" turnOnFadeTime="0.6" turnOffFadeTime="2" />
        </animationNodes>

        <effects>
            <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="fertilizerEffectLeft">
                <motionPathEffect textureFilename="$data/vehicles/amazone/zats3200/fertilizerEffectLeftArray.dds" numRows="22" rowLength="32" minFade="0.03" isLeft="true"/>
            </effectNode>
            <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="fertilizerEffectRight">
                <motionPathEffect textureFilename="$data/vehicles/amazone/zats3200/fertilizerEffectRightArray.dds" numRows="22" rowLength="32" minFade="0.03" isLeft="false"/>
            </effectNode>
        </effects>
    </sprayer>

    <variableWorkWidth>
        <sections>
            <section isLeft="true" maxWidthNode="section01"/>
            <section isLeft="true" maxWidthNode="section02"/>
            <section isLeft="true" maxWidthNode="section03"/>

            <section isLeft="true" maxWidthNode="section04"/>
            <section isLeft="true" maxWidthNode="section05"/>
            <section isLeft="true" maxWidthNode="section06"/>

            <section isLeft="false" maxWidthNode="section08"/>
            <section isLeft="false" maxWidthNode="section09"/>
            <section isLeft="false" maxWidthNode="section10"/>

            <section isLeft="false" maxWidthNode="section11"/>
            <section isLeft="false" maxWidthNode="section12"/>
            <section isLeft="false" maxWidthNode="section13"/>
        </sections>

        <sectionNodes>
            <sectionNode node="workAreaHeight" isLeft="true"  minTrans="7.5 0 -9"  maxTrans="21 0 -5"/>
            <sectionNode node="workAreaWidth"  isLeft="false" minTrans="-7.5 0 -9" maxTrans="-21 0 -5"/>

            <sectionNode node="aiMarkerLeft"  isLeft="true"  minTrans="7.5 0 -9"  maxTrans="21 0 -5"/>
            <sectionNode node="aiMarkerRight" isLeft="false" minTrans="-7.5 0 -9" maxTrans="-21 0 -5"/>
            <sectionNode node="aiMarkerBack"  isLeft="false" minTrans="0 0 -11"    maxTrans="0 0 -7"/>
        </sectionNodes>
    </variableWorkWidth>

    <turnOnVehicle>
        <sounds>
            <work template="DEFAULT_SPREADER" linkNode="zats3200_main_component1" />
        </sounds>
    </turnOnVehicle>

    <cover>
        <coverConfigurations>
            <coverConfiguration>
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <ai>
        <needsLowering value="false" />
        <collisionTrigger node="aiCollisionNode" width="2.6" height="1.9"/>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack" />
        <agentAttachment width="2.5" height="2.0" length="1.8" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.45" maxZ="0.85" yOffset="0.25" />
        <bendingNode minX="-1.3" maxX="1.3" minZ="-0.8" maxZ="0.7" yOffset="0.85" />
    </foliageBending>

    <baseMaterial>
        <material name="zats3200_vmask_mat" baseNode="zats3200_lod0">
            <shaderParameter name="colorMat0" value="AMAZONE_GREEN1"/>
            <shaderParameter name="colorMat1" value="AMAZONE_ORANGE1"/>
        </material>
        <material name="zats3200LOD_vmask_mat" baseNode="zats3200_lod1">
            <shaderParameter name="colorMat0" value="AMAZONE_GREEN1"/>
            <shaderParameter name="colorMat1" value="AMAZONE_ORANGE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="zats3200_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="topReferencePoint" node="0>0|1" />
        <i3dMapping id="hydraulicOut01" node="0>0|2|0" />
        <i3dMapping id="hydraulicOut01_attached" node="0>0|2|0|0" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|2|0|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|2|1" />
        <i3dMapping id="hydraulicIn01_attached" node="0>0|2|1|0" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|2|1|0|0" />
        <i3dMapping id="electricIn01" node="0>0|2|2" />
        <i3dMapping id="electricIn01_attached" node="0>0|2|2|0" />
        <i3dMapping id="electricIn01_detachedAdapter" node="0>0|2|2|0|0" />
        <i3dMapping id="yellowRectangle_01_02" node="0>1|0|0" />
        <i3dMapping id="yellowRectangle_01_01" node="0>1|0|1" />
        <i3dMapping id="redRound_02_02" node="0>1|0|2" />
        <i3dMapping id="redRound_02_01" node="0>1|0|3" />
        <i3dMapping id="turnlightLeftStatic" node="0>1|1|0" />
        <i3dMapping id="turnlightRightStatic" node="0>1|1|1" />
        <i3dMapping id="reverselightStatic" node="0>1|1|2" />
        <i3dMapping id="backlightStatic" node="0>1|1|3" />
        <i3dMapping id="backLightsHigh1" node="0>1|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>1|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>1|3|1" />
        <i3dMapping id="reverseLight" node="0>1|4|0" />
        <i3dMapping id="coverClosed_lod" node="0>2|0" />
        <i3dMapping id="coverOpen_lod" node="0>2|1" />
        <i3dMapping id="exactFillRootNode" node="0>3|0" />
        <i3dMapping id="fillVolume" node="0>3|1" />
        <i3dMapping id="spreaderLeft" node="0>4|0" />
        <i3dMapping id="spreaderRight" node="0>4|1" />
        <i3dMapping id="ladder02" node="0>4|2" />
        <i3dMapping id="ladder01" node="0>4|3" />
        <i3dMapping id="supportWheelsLeft" node="0>4|4" />
        <i3dMapping id="supportWheelLeftFront" node="0>4|4|1" />
        <i3dMapping id="supportWheelsRight" node="0>4|5" />
        <i3dMapping id="supportWheelRightFront" node="0>4|5|1" />
        <i3dMapping id="workAreaStart" node="0>5|0" />
        <i3dMapping id="workAreaWidth" node="0>5|1" />
        <i3dMapping id="workAreaHeight" node="0>5|2" />
        <i3dMapping id="section01" node="0>5|3|0" />
        <i3dMapping id="section02" node="0>5|3|1" />
        <i3dMapping id="section03" node="0>5|3|2" />
        <i3dMapping id="section04" node="0>5|3|3" />
        <i3dMapping id="section05" node="0>5|3|4" />
        <i3dMapping id="section06" node="0>5|3|5" />
        <i3dMapping id="section08" node="0>5|3|6" />
        <i3dMapping id="section09" node="0>5|3|7" />
        <i3dMapping id="section10" node="0>5|3|8" />
        <i3dMapping id="section11" node="0>5|3|9" />
        <i3dMapping id="section12" node="0>5|3|10" />
        <i3dMapping id="section13" node="0>5|3|11" />
        <i3dMapping id="sizeMarkerLeft" node="0>6|0|0" />
        <i3dMapping id="sizeMarkerRight" node="0>6|0|1" />
        <i3dMapping id="sizeMarkerBack" node="0>6|0|2" />
        <i3dMapping id="aiMarkerLeft" node="0>6|1|0" />
        <i3dMapping id="aiMarkerRight" node="0>6|1|1" />
        <i3dMapping id="aiMarkerBack" node="0>6|1|2" />
        <i3dMapping id="aiCollisionNode" node="0>6|2" />
        <i3dMapping id="fertilizerEffectLeft" node="0>7|0" />
        <i3dMapping id="fertilizerEffectRight" node="0>7|1" />
        <i3dMapping id="zats3200_lod0" node="0>8|6|0" />
        <i3dMapping id="zats3200_lod1" node="0>8|6|1" />
    </i3dMappings>
</vehicle>
