<?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>
            <en>PS15 3</en>
        </name>
        <specs>
            <workingWidth>14.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_fertilizer</function>
        </functions>
        <image>store_PS153.dds</image>
        <price>3000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>fertilizerSpreaders</category>
        <shopTranslationOffset>0 -0.75 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>675328</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>154880</indexBufferMemoryUsage>
        <textureMemoryUsage>851968</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_fertilizerSpreader</typeDesc>
        <filename>LizardPS15.i3d</filename>
        <size width="2" length="2" height="1.7" />
        <speedLimit value="20" />
        <components>
            <component centerOfMass="0 -1 0.5" solverIterationCount="10" mass="1200"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.4" />
    </base>


    <baseColorConfigurations   useDefaultColors="false">
		<baseColorConfiguration name="$l10n_configuration_ColorViejo" color="0.604 0.082 0.019" />
		<baseColorConfiguration name="$l10n_configuration_ColorNuevo" price="1000" color="0.631 0.005 0.005"/>
        <material materialSlotName="colorChasis"/>
    </baseColorConfigurations>

    <designColorConfigurations   useDefaultColors="false">
		<designColorConfiguration name="$l10n_configuration_ColorViejo" color="0.584 0.515 0.250" />
		<designColorConfiguration name="$l10n_configuration_ColorNuevo" price="1000" color="0.515 0.283 0.033"/>
        <material materialSlotName="colorTolva"/>
    </designColorConfigurations>


    <powerConsumer ptoRpm="450" neededMaxPtoPower="5"/>

    <sprayer fillUnitIndex="1" unloadInfoIndex="1">
        <usageScales workingWidth="14" scale="1" />

        <sprayTypes>
            <sprayType foldingConfigurationIndex="1" fillTypes="fertilizer unknown">
                <usageScales workingWidth="14" />

                <effects>
                    <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>10|1">
                        <motionPathEffect textureFilename="$data/vehicles/bredal/fertilizerEffectLeftSmallArray.dds" numRows="12" rowLength="32" minFade="0.03" isLeft="true"/>
                    </effectNode>
                    <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>10|2">
                        <motionPathEffect textureFilename="$data/vehicles/bredal/fertilizerEffectRightSmallArray.dds" numRows="12" rowLength="32" minFade="0.03" isLeft="false"/>
                    </effectNode>
                </effects>

                <ai>
                    <areaMarkers leftNode="0>6|0|0" rightNode="0>6|0|1" backNode="0>6|0|2" />
                    <sizeMarkers leftNode="0>6|3|0" rightNode="0>6|3|1" backNode="0>6|3|2" />
                    <collisionTrigger node="0>6|4" width="3.0" height="3.1"/>
                </ai>

            </sprayType>

            <sprayType foldingConfigurationIndex="1" fillTypes="lime">
                <usageScales workingWidth="14" />

                <effects>
                    <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>10|3">
                        <motionPathEffect textureFilename="$data/vehicles/bredal/limeEffectLeftSmallArray.dds" numRows="12" rowLength="32" minFade="0.03" isLeft="true" delay="0.5"/>
                    </effectNode>
                    <effectNode effectClass="FertilizerMotionPathEffect" effectType="FERTILIZER" linkNode="0>10|4">
                        <motionPathEffect textureFilename="$data/vehicles/bredal/limeEffectRightSmallArray.dds" numRows="12" rowLength="32" minFade="0.03" isLeft="false" delay="0.5"/>
                    </effectNode>
                    <effectNode effectNode="0>10|0" delay="0.5" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" emitCountScale="5" worldSpace="true"/>
                </effects>

                <ai>
                    <areaMarkers leftNode="0>6|1|0" rightNode="0>6|1|1" backNode="0>6|1|2" />
                    <sizeMarkers leftNode="0>6|3|0" rightNode="0>6|3|1" backNode="0>6|3|2" />
                    <collisionTrigger node="0>6|4" width="3.0" height="3.1"/>
                </ai>

            </sprayType>

        </sprayTypes>
    </sprayer>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" sprayType="1">
            <area startNode="0>5|0|0" widthNode="0>5|0|1" heightNode="0>5|0|2" />
        </workArea>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" sprayType="2">
            <area startNode="0>5|1|0" widthNode="0>5|1|1" heightNode="0>5|1|2" />
        </workArea>
    </workAreas>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>4|3" jointType="implement" topReferenceNode="0>4|4" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperRotationOffset="3" needsLowering="false">
                <distanceToGround lower="0.4" upper="0.85"/>
                <bottomArm categories="2" ballType="1"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <attacherJoints>
        <attacherJoint node="0>9" jointType="trailer" lowerRotLimit="10 70 70" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>9" jointType="trailerLow" lowerRotLimit="10 70 70" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach template="attach01" linkNode="0>"/>
        </sounds>
    </attacherJoints>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" detachNode="0>4|1" inputNode="0>4|0" aboveAttacher="true" />
    </powerTakeOffs>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="10" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer lime" capacity="600" >
                        <exactFillRootNode node="0>2|1" />
                    </fillUnit>
                </fillUnits>

					<objectChange node="0>4|3|0" visibilityActive="true" visibilityInactive="true"/>
					<objectChange node="0>0|0|2" visibilityActive="false" visibilityInactive="false"/>
					<objectChange node="0>0|1" visibilityActive="false" visibilityInactive="false"/>
					<objectChange node="0>3|0" compoundChildActive="false" compoundChildInactive="false" />
					<objectChange node="0>0|0|2|0|0" compoundChildActive="false" compoundChildInactive="false" />

            </fillUnitConfiguration>
            <fillUnitConfiguration price="1000" >
                <fillUnits>
                    <unloading width="10" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer lime" capacity="1000" >
                        <exactFillRootNode node="0>2|1" />
                    </fillUnit>
                </fillUnits>
					<objectChange node="0>0|0|0|1" visibilityActive="true" visibilityInactive="false"/>
					<objectChange node="0>0|0|0|7" compoundChildActive="true" compoundChildInactive="false" />
            </fillUnitConfiguration>
            <fillUnitConfiguration price="2000" >
                <fillUnits>
                    <unloading width="10" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer lime" capacity="1500" >
                        <exactFillRootNode node="0>2|1" />
                    </fillUnit>
                </fillUnits>
					<objectChange node="0>0|0|0|2" visibilityActive="true" visibilityInactive="false"/>
					<objectChange node="0>0|0|0|8" compoundChildActive="true" compoundChildInactive="false" />
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

     <configurationSets>
        <configurationSet name="600L" >
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
        </configurationSet>
        <configurationSet name="1000L" >
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
        </configurationSet>
        <configurationSet name="1500L" >
            <configuration name="fillVolume"   index="3" />
            <configuration name="fillUnit"     index="3" />
        </configurationSet>
    </configurationSets>

   <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|3" maxDelta="0.2" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|4" maxDelta="0.2" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|5" maxDelta="0.2" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="0>2|2" width="2" length="4.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <turnOnVehicle>
		<turnedOnAnimation name="sprayerAnimation" />
        <sounds>
            <work template="defaultSpreader" linkNode="0>" />
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="false" />
        <collisionTrigger node="0>6|4" width="1.15" height="1.2" />
        <areaMarkers leftNode="0>6|0|0" rightNode="0>6|0|1" backNode="0>6|0|2" width="14" />
        <sizeMarkers leftNode="0>6|3|0" rightNode="0>6|3|1" backNode="0>6|3|2" />
        <agentAttachment width="2" height="1.5" length="2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.9" maxZ="0.7" yOffset="0" />
    </foliageBending>

    <animations>
		<animation name="sprayerAnimation" looping="true">
            <part node="0>1" startTime="0"   endTime="0.1" startRot="0 -25 0" endRot="0 25 0" />
            <part node="0>1" startTime="0.1" endTime="0.2" startRot="0 25 0"  endRot="0 -25 0" />
            <part node="0>0|0|1" startTime="0"   endTime="0.1" startRot="0 -50 0" endRot="0 50 0" />
            <part node="0>0|0|1" startTime="0.1" endTime="0.2" startRot="0 50 0"  endRot="0 -50 0" />
        </animation>
    </animations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

</vehicle>
