﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="sprayer_mouseControlled">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Amazone UF 1801</en>
        <de>Amazone UF 1801</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Sprayer</typeDesc>
    <filename>data/vehicles/tools/amazone/amazoneUF1801.i3d</filename>

    <size width="4" length="4" />

    <powerConsumer ptoRpm="450" neededPtoPower="10"/>
    <speedLimit value="12" />

    <lightCoronas>
        <lightCorona index="0>5|2|0|6" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>5|2|0|7" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>5|2|0|8|0" />
        <turnSignalRight index="0>5|2|0|8|1" />
    </turnSignals>

    <workAreas>
        <workArea startIndex="0>2" widthIndex="0>3" heightIndex="0>4" type="sprayer" disableBackwards="false" />
    </workAreas>

    <aiLeftMarker index="0>8" />
    <aiRightMarker index="0>9" />
    <aiBackMarker index="0>10" />
    <aiTrafficCollisionTrigger index="0>11" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" rotLimitScale="0 0 0" transLimitScale="0 0 0" upperRotationOffset="8" lowerRotationOffset="0" lowerDistanceToGround="0.7" upperDistanceToGround="0.95" indexPTO="0>6" />
    </inputAttacherJoints>

    <needsLowering value="false" />

    <foldingParts startMoveDirection="0" posDirectionText="unfold_OBJECT" negDirectionText="fold_OBJECT" turnOnFoldMaxLimit="1" turnOnFoldMinLimit="0.99" turnOffOnFold="true" >
        <foldingPart animationName="rightFold" speedScale="0.7" />
        <foldingPart animationName="leftFold"  speedScale="0.69" />
    </foldingParts>

    <sprayUsages>
        <sprayUsage fillType="fertilizer" litersPerSecond="4.8" />
    </sprayUsages>

    <fillTypes fillTypes="fertilizer"/>
    <capacity>1920</capacity>
    <fillLitersPerSecond>150</fillLitersPerSecond>

    <fillPlanes rotationDegrees="true">
        <fillPlane type="fertilizer">
            <node index="0>5|0" alwaysVisible="true">
                <key time="0" y="1.78628" rotation="0 0 0" />
                <key time="1" y="1.78628" rotation="0 0 90" />
            </node>
        </fillPlane>
    </fillPlanes>

    <spraySound file="$data/vehicles/tools/sprayer.wav" pitchOffset="1" volume="1"/>

    <sprayerEffects>
        <sprayerEffect>
            <effectNode node="0|0|0" linkNode="0>5|2|0|10"            delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|1" linkNode="0>5|2|0|0|0|2"         delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|1" linkNode="0>5|2|0|1|0|2"         delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|2" linkNode="0>5|2|0|0|0|0|0|1"     delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|2" linkNode="0>5|2|0|1|0|0|0|1"     delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|3" linkNode="0>5|2|0|0|0|0|0|0|1"   delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|3" linkNode="0>5|2|0|1|0|0|0|0|1"   delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|4" linkNode="0>5|2|0|0|0|0|0|0|0|0" delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
            <effectNode node="0|0|4" linkNode="0>5|2|0|1|0|0|0|0|0|0" delay="0" materialTypeId="2" filename="$data/vehicles/particleAnimations/amazone/amazoneUF1801.i3d" />
        </sprayerEffect>
    </sprayerEffects>

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/sprayer_arm.png" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <!-- main arm -->
        <movingTool index="0>5|2|0" transSpeed="0.4" transAcceleration="10" transMax="0.9" transMin="0" translationAxis="2" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="1.5">
            <dependentPart index="0>5|1" />
        </movingTool>
        <!-- rightSide -->
        <movingTool index="0>5|2|0|1|0">
            <!-- lift cylinder -->
            <dependentPart index="0>5|2|0|2" />
        </movingTool>
        <!-- leftSide -->
        <movingTool index="0>5|2|0|0|0">
            <!-- lift cylinder -->
            <dependentPart index="0>5|2|0|3" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- right lift cylinder -->
        <movingPart index="0>5|2|0|2" referencePoint="0>5|2|0|1|0|1" referenceFrame="0>5|2|0|5" >
            <translatingPart index="0>5|2|0|2|0" />
        </movingPart>
        <!-- left lift cylinder -->
        <movingPart index="0>5|2|0|3" referencePoint="0>5|2|0|0|0|1" referenceFrame="0>5|2|0|4" >
            <translatingPart index="0>5|2|0|3|0" />
        </movingPart>
        <movingPart index="0>5|1" referencePoint="0>5|2|0|9" referenceFrame="0>5|2|0|9" scaleZ="true"/>
    </movingParts>

    <animations>
        <animation name="rightFold">
            <part node="0>5|2|0|1|0" startTime="0" endTime="3.0" startRot="0 0 0" endRot="0 0 93"/>
            <part node="0>5|2|0|1|0|0|0" startTime="3" endTime="6.0" startRot="0 0 0" endRot="0 180 0"/>
            <part node="0>5|2|0|1|0|0|0|0" startTime="6" endTime="9.0" startRot="0 0 0" endRot="0 -180 0"/>
            <part node="0>5|2|0|1|0|0|0|0|0" startTime="9" endTime="12.0" startRot="0 0 0" endRot="0 180 0"/>
        </animation>
        <animation name="leftFold">
            <part node="0>5|2|0|0|0" startTime="0" endTime="3.0" startRot="0 0 0" endRot="0 0 -93"/>
            <part node="0>5|2|0|0|0|0|0" startTime="3" endTime="6.0" startRot="0 0 0" endRot="0 -180 0"/>
            <part node="0>5|2|0|0|0|0|0|0" startTime="6" endTime="9.0" startRot="0 0 0" endRot="0 180 0"/>
            <part node="0>5|2|0|0|0|0|0|0|0" startTime="9" endTime="12.0" startRot="0 0 0" endRot="0 -180 0"/>
        </animation>
        <animation name="moveSupport">
            <part node="0>5|3" startTime="0" endTime="0.01" visibility="false" />
            <part node="0>5|3" startTime="0.01" endTime="0.02" visibility="true" />
            <part node="0>7"   startTime="0" endTime="0.5" startTrans="0 0.5 0" endTrans="0 0 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <fillSound file="$data/maps/sounds/refuel.wav" pitchOffset="1.0" volume="1.0" volume3D="1.0" innerRadius="10" radius="40" linkNode="0>5"/>

    <washable dirtDuration="180" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0.6 0.4" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
