﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureSpreader" 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>Variofex 750</name>
        <specs>
            <neededPower>94</neededPower>
            <workingWidth>8</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_manureSpreader</function>
            <function>$l10n_function_vineOliveTool</function>
        </functions>
        <image>$data/vehicles/farmtech/variofex750/store_variofex750.png</image>
        <price>28500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FARMTECH</brand>
        <category>manureSpreaders</category>
        <shopTranslationOffset>0 0.091 0</shopTranslationOffset>
        <shopRotationOffset>-1.747 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1543680</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>251648</indexBufferMemoryUsage>
        <textureMemoryUsage>2883584</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureSpreader</typeDesc>
        <filename>$data/vehicles/farmtech/variofex750/variofex750.i3d</filename>
        <size width="2.7" length="6"/>
        <speedLimit value="16" />
        <components maxMass="7500">
            <component centerOfMass="0 0.5 -0.65" solverIterationCount="10" mass="2526" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.5" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/480_45R17.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.2" repr="wheelLeft" forcePointRatio="0.5" initialCompression="15" suspTravel="0.12" spring="58" damper="20" yOffset="0.015"/>
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/480_45R17.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.2" repr="wheeRight" forcePointRatio="0.5" initialCompression="15" suspTravel="0.12" spring="58" damper="20" yOffset="0.015"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>SHARED_DA_METAL_BLACK</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.25 0.25 0.25" />
            <hub linkNode="wheeRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.25 0.25 0.25" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.92"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.6" maxForce="1.2" maxForceMass="6600"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01" adapterNode="hydraulicIn01_connector" length="0.7" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" adapterNode="hydraulicOut01_connector" length="0.7" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02" adapterNode="hydraulicIn02_connector" length="0.7" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut02" adapterNode="hydraulicOut02_connector" length="0.7" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_detached" length="0.9" diameter="0.01" straighteningFactor="0.5">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="pto" aboveAttacher="false"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="400" neededMaxPtoPower="15"/>

    <lights>
        <sharedLight linkNode="rearLight33_left"  filename="$data/shared/assets/lights/lizard/rearLight33_left.xml" />
        <sharedLight linkNode="rearLight33_right" filename="$data/shared/assets/lights/lizard/rearLight33_right.xml" />
        <sharedLight linkNode="sideMarker03_left" filename="$data/shared/assets/lights/lizard/sideMarker03_left.xml" />
        <sharedLight linkNode="sideMarker03_right" filename="$data/shared/assets/lights/lizard/sideMarker03_right.xml" />
        <sharedLight linkNode="plateNumberLight02_01" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="plateNumberLight02_02" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <sharedLight linkNode="redTriangle_02" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="redTriangle_03" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="ELONGATED" placementArea="0.1 0.27 0.1 0.27"/>
    </licensePlates>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" sprayType="2">
            <area startNode="workArea01Start" widthNode="workArea01Width" heightNode="workArea01Height" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" sprayType="1">
            <area startNode="workArea02Start" widthNode="workArea02Width" heightNode="workArea02Height" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" sprayType="1">
            <area startNode="workArea03Start" widthNode="workArea03Width" heightNode="workArea03Height" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
    </workAreas>

    <workModes>
        <workMode name="$l10n_action_workMode_narrowSpread" inputBindingName="WORKMODE_LEFT"/>
        <workMode name="$l10n_action_workMode_wideSpread" inputBindingName="WORKMODE_RIGHT"/>
    </workModes>

    <sprayer fillUnitIndex="1" unloadInfoIndex="1" fillVolumeIndex="1" fillVolumeDischargeScrollSpeed="0 0 0.02">
        <usageScales workingWidth="8" scale="1" />

        <sprayTypes>
            <sprayType workModeIndex="1">
                <usageScales workingWidth="3"/>
                <effects>
                    <effectNode effectClass="TypedMotionPathEffect" effectType="MANURE_SPREADER" linkNode="manureEffectNarrowNode">
                        <motionPathEffect textureFilename="$data/vehicles/farmtech/variofex750/manureEffectNarrowArray.dds" numRows="28" rowLength="24" speedScale="1.5" shapeScale="0.1" maxShapeScale="2.2"/>
                    </effectNode>

                    <effectNode effectClass="ParticleEffect" effectNode="smokeEmitterNarrow" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.3" spriteScale="0.5"/>
                </effects>
                <objectChange node="narrowSpreadPlate" visibilityActive="true" visibilityInactive="false"/>
            </sprayType>

            <sprayType workModeIndex="2">
                <effects>
                    <effectNode effectClass="TypedMotionPathEffect" effectType="MANURE_SPREADER" linkNode="manureEffectWideNode">
                        <motionPathEffect textureFilename="$data/vehicles/farmtech/variofex750/manureEffectWideArray.dds" numRows="28" rowLength="24" />
                    </effectNode>

                    <effectNode effectClass="ParticleEffect" effectNode="smokeEmitterWide" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.3" spriteScale="0.5"/>
                </effects>
            </sprayType>
        </sprayTypes>

        <animationNodes>
            <animationNode node="spreader01"     rotAxis="1" rotSpeed="-1400" turnOnFadeTime="1" turnOffFadeTime="2"/>
            <animationNode node="spreader02"     rotAxis="1" rotSpeed="1400" turnOnFadeTime="1" turnOffFadeTime="2"/>
            <animationNode node="spreader03"     rotAxis="3" rotSpeed="-1700" turnOnFadeTime="1" turnOffFadeTime="2"/>
            <animationNode node="spreader04"     rotAxis="3" rotSpeed="1700" turnOnFadeTime="1" turnOffFadeTime="2"/>
            <animationNode node="gear01"     rotAxis="1" rotSpeed="-25"/>
            <animationNode class="ScrollingAnimation" node="floorMeshScroll" shaderParameterName="scrollPosition" scrollSpeed="0.0048" scrollLength="1" />
            <animationNode node="floorUvScroll" rotSpeed="2"  rotAxis="1" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
        </animationNodes>
    </sprayer>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startAnimTime="1" turnOnFoldDirection="-1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.5">
                    <foldingPart animationName="openBackDoor" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="openBackDoor">
            <part node="backDoor"   startTime="0" endTime="3" startTrans="0 1 0" endTrans="0 0 0"/>

            <sound template="clackVar6"     startTime="2.99" direction="1"  volumeScale="0.6" pitchScale="1" />
            <sound template="cylinderPunch" startTime="2.99" direction="1"  volumeScale="0.6" pitchScale="1" />
            <sound template="clackVar6"     startTime="2.99" direction="-1" volumeScale="0.6" pitchScale="0.7" />
            <sound template="cylinderPunch" startTime="0.01" direction="-1" volumeScale="0.5" pitchScale="0.7" />
            <sound template="clackVar6"     startTime="0.01" direction="-1" volumeScale="0.8" pitchScale="0.8" />
            <sound template="cylinderPunch" startTime="0.01" direction="1"  volumeScale="0.3" pitchScale="2" />
        </animation>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.0" endTime="0.5" startTrans="0 0.368 0" endTrans="0 -0.145 0" />

            <sound template="metalClose" startTime="0.09" direction="-1" volumeScale="0.8" pitchScale="2.3" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="backDoor" playSound="true" />
        </movingTools>
        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="MANURESPREADER" capacity="4900">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <volumes>
                    <volume node="fillVolume" maxDelta="0.5" maxAllowedHeapAngle="20" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadNode" width="1.4" length="1.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <turnOnVehicle turnOffIfNotAllowed="true" >
        <sounds>
            <work template="manureSpreaderDischarge" linkNodeOffset="0 0.7 -2.8" />
            <work template="dischargeLoop" pitchScale="0.6" volumeScale="0.8" linkNodeOffset="0 2.0 0" innerRadius="3.0" outerRadius="45.0" fadeIn="0.15" fadeOut="0.8"/>
            <work template="augerLoop" pitchScale="1.9" volumeScale="0.9" linkNodeOffset="0 1.8 -2" innerRadius="2.0" outerRadius="45.0" fadeIn="0.15" fadeOut="0.8"/>
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="false" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="aiSizeMarkerLeft" rightNode="aiSizeMarkerRight" backNode="aiSizeMarkerBack" />
        <allowTurnBackward value="false" />
        <toolReverserDirectionNode node="aiSizeMarkerBack" />
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="1.8" height="2.7" length="4.7" lengthOffset="0.75"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.85" maxX="0.85" minZ="-2.5" maxZ="1.8" yOffset="0.5" />
        <bendingNode minX="-0.2" maxX="0.2" minZ="1.8" maxZ="2.6" yOffset="0.6" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="variofex750_main_component1" node="0>" />
        <i3dMapping id="variofex750_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="pto" node="0>0|0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|2|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|2|1|0|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="hydraulicIn02_connector" node="0>0|0|2|2|0|0" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|2|3" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|2|3|0" />
        <i3dMapping id="hydraulicOut02_connector" node="0>0|0|2|3|0|0" />
        <i3dMapping id="electric_detached" node="0>0|0|2|4" />
        <i3dMapping id="electric" node="0>0|0|2|5" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheeRight" node="0>0|1|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|2" />
        <i3dMapping id="wheelChock02" node="0>0|1|3" />
        <i3dMapping id="redTriangle_02" node="0>0|2|0|0" />
        <i3dMapping id="redTriangle_03" node="0>0|2|0|1" />
        <i3dMapping id="rearLight33_left" node="0>0|2|0|2" />
        <i3dMapping id="rearLight33_right" node="0>0|2|0|3" />
        <i3dMapping id="sideMarker03_left" node="0>0|2|0|4" />
        <i3dMapping id="sideMarker03_right" node="0>0|2|0|5" />
        <i3dMapping id="plateNumberLight02_01" node="0>0|2|0|6" />
        <i3dMapping id="plateNumberLight02_02" node="0>0|2|0|7" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|1|1" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|2|3|0" />
        <i3dMapping id="supportArm" node="0>0|3|0" />
        <i3dMapping id="spreader01" node="0>0|3|1" />
        <i3dMapping id="spreader02" node="0>0|3|2" />
        <i3dMapping id="spreader04" node="0>0|3|3|0" />
        <i3dMapping id="spreader03" node="0>0|3|4|0" />
        <i3dMapping id="backDoor" node="0>0|3|5|0" />
        <i3dMapping id="floorUvScroll" node="0>0|3|6" />
        <i3dMapping id="floorMeshScroll" node="0>0|3|7" />
        <i3dMapping id="gear01" node="0>0|3|8" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|0" />
        <i3dMapping id="unloadNode" node="0>0|4|1" />
        <i3dMapping id="fillVolume" node="0>0|4|2" />
        <i3dMapping id="licensePlateBack" node="0>0|5" />
        <i3dMapping id="workArea01Start" node="0>0|6|0" />
        <i3dMapping id="workArea01Width" node="0>0|6|0|0" />
        <i3dMapping id="workArea01Height" node="0>0|6|0|1" />
        <i3dMapping id="workArea02Start" node="0>0|6|1" />
        <i3dMapping id="workArea02Width" node="0>0|6|1|0" />
        <i3dMapping id="workArea02Height" node="0>0|6|1|1" />
        <i3dMapping id="workArea03Start" node="0>0|6|2" />
        <i3dMapping id="workArea03Width" node="0>0|6|2|0" />
        <i3dMapping id="workArea03Height" node="0>0|6|2|1" />
        <i3dMapping id="narrowSpreadPlate" node="0>0|7|0" />
        <i3dMapping id="manureEffectWideNode" node="0>0|8|0" />
        <i3dMapping id="smokeEmitterWide" node="0>0|8|1" />
        <i3dMapping id="manureEffectNarrowNode" node="0>0|8|2" />
        <i3dMapping id="smokeEmitterNarrow" node="0>0|8|3" />
        <i3dMapping id="aiMarkerLeft" node="0>0|9|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|9|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|9|2" />
        <i3dMapping id="aiSizeMarkerLeft" node="0>0|9|3" />
        <i3dMapping id="aiSizeMarkerRight" node="0>0|9|4" />
        <i3dMapping id="aiSizeMarkerBack" node="0>0|9|5" />
    </i3dMappings>
</vehicle>
