<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureBarrel" 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>Supercis 800</name>
        <specs>
            <neededPower>80</neededPower>
            <workingWidth>15</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreader</function>
        </functions>
        <image>$data/vehicles/farmtech/supercis800/store_supercis800.png</image>
        <price>22500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FARMTECH</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0 -0.018 0</shopTranslationOffset>
        <shopRotationOffset>-3.575 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1806848</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>335360</indexBufferMemoryUsage>
        <textureMemoryUsage>2097152</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureBarrel</typeDesc>
        <filename>$data/vehicles/farmtech/supercis800/supercis800.i3d</filename>
        <size width="3.8" length="7.5" lengthOffset="1.25"/>
        <speedLimit value="16" />
        <components>
            <component centerOfMass="0 0.65 0.7" solverIterationCount="20" mass="2175" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <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/TwinRadial/710_50R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.2" repr="wheelLeft"  forcePointRatio="0.4" initialCompression="12" suspTravel="0.12" spring="65" damper="50" yOffset="0.02" />
                        <wheelChock parkingNode="wheelChock01"/>
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/TwinRadial/710_50R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.2" repr="wheelRight" forcePointRatio="0.4" initialCompression="12" suspTravel="0.12" spring="65" damper="50" yOffset="0.02" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="MICHELIN" saveId="MICHELIN_DEFAULT">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/michelin/cargoXBibHF/710_50R26_5.xml">
                        <physics yOffset="0.032" />
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/michelin/cargoXBibHF/710_50R26_5.xml">
                        <physics yOffset="0.032" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="BKT" saveId="BKT_DEFAULT">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/710_50R26_5.xml">
                        <physics yOffset="0.022" />
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/710_50R26_5.xml">
                        <physics yOffset="0.022" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="VREDESTEIN" saveId="VREDESTEIN_DEFAULT">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/vredestein/flotationTrac/710_50R26_5.xml">
                        <physics yOffset="0.03" />
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/vredestein/flotationTrac/710_50R26_5.xml">
                        <physics yOffset="0.03" />
                    </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_n10_5.xml" isLeft="true"  scale="0.3 0.3 0.3" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.3 0.3 0.3" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.55"/>
        </inputAttacherJoints>
        <brakeForce force="0.6" maxForce="2" maxForceMass="9950"/>
        <support animationName="moveSupport" />
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" detachNode="ptoDetachNode"/>
    </powerTakeOffs>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.8" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.8" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="0.8" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="1.4" diameter="0.015" straighteningFactor="1">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleRed" node="airIn" length="1.4" diameter="0.015" straighteningFactor="1">
            <objectChange node="airIn_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airOut" length="1.4" diameter="0.015" straighteningFactor="1">
            <objectChange node="airOut_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|3" linkNode="airIn_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|2" linkNode="airOut_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <powerConsumer ptoRpm="400" neededMinPtoPower="10" neededMaxPtoPower="10"/>

    <lights>
        <sharedLight linkNode="yellowRound_02" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_03" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_04" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="yellowRound_05" filename="$data/shared/assets/reflectors/lizard/yellowRound_02.xml" />
        <sharedLight linkNode="sideMarker24_left" filename="$data/shared/assets/lights/lizard/sideMarker24_left.xml" />
        <sharedLight linkNode="sideMarker24_right" filename="$data/shared/assets/lights/lizard/sideMarker24_right.xml" />
        <sharedLight linkNode="frontLight06Orange" lightTypes="0" filename="$data/shared/assets/lights/lizard/frontLight06Orange.xml" />
        <sharedLight linkNode="frontLight06Orange1" lightTypes="0" filename="$data/shared/assets/lights/lizard/frontLight06Orange.xml" />
        <sharedLight linkNode="rearLight52Left" filename="$data/shared/assets/lights/lizard/rearLight52_left.xml" />
        <sharedLight linkNode="rearLight52Right" filename="$data/shared/assets/lights/lizard/rearLight52_right.xml" />
        <sharedLight linkNode="plateNumberLight02" filename="$data/shared/assets/lights/lizard/plateNumberLight02.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>

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
    </workAreas>

    <licensePlates>
        <licensePlate node="licensePlateNodeBack" frame="false" position="BACK" preferedType="SQUARISH" placementArea="0.094 0.135 0.095 0.135"/>
    </licensePlates>

    <sprayer activateOnLowering="true">
        <usageScales workingWidth="15" scale="1"/>

        <effects>
            <effectNode effectClass="SlurrySideToSideEffect" effectNode="effectSlurry" materialType="slurrySideToSide" fadeOutTime="2" fadeInTime="2" refAnimation="sprayerAnimation" />
        </effects>

        <sounds>
            <spray template="DEFAULT_REFUEL_SOUND" pitchScale="0.7" volumeScale="1.6" fadeIn="0.5" fadeOut="1"/>
        </sounds>
    </sprayer>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" endTime="0.1" startTrans="0 0.162 0" endTrans="0 -0.34 0" />

            <sound template="clackVar5" startTime="0.09" direction="-1" volumeScale="1.3" pitchScale="1"   linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.01"                volumeScale="1.9" pitchScale="1.5" linkNode="attacherJoint"/>
        </animation>
        <animation name="fillLevel">
            <part node="fillLevelIndicator"       startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 92" />
            <part node="fillLevelIndicatorPart01" startTime="0" endTime="1" startRot="0 0 0" endRot="40 0 0" />
        </animation>
        <animation name="sprayerAnimation" looping="true">
            <part node="spreader"     startTime="0"   endTime="0.5" startRot="0 -45 0" endRot="0 45 0" tangentType="spline"/>
            <part node="spreader"     startTime="0.5" endTime="1.0" startRot="0 45 0"  endRot="0 -45 0" tangentType="spline"/>
            <part node="spreaderPart" startTime="0.35"   endTime="0.5" startRot="0 0 18" endRot="0 0 -18"/>
            <part node="spreaderPart" startTime="0.85" endTime="1.0" startRot="0 0 -18"  endRot="0 0 18"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="spreader" playSound="false">
                <dependentPart node="spreaderSpring" />
            </movingTool>
            <movingTool node="fillLevelIndicator" playSound="false">
                <dependentPart node="fillLevelIndicatorPart02" />
                <dependentPart node="fillLevelIndicatorPart02Cable" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="spreaderSpring" referencePoint="spreaderSpringRef" referenceFrame="spreaderSpringRef" scaleZ="true"/>
            <movingPart node="fillLevelIndicatorPart02" referencePoint="fillLevelIndicatorPart02Ref" referenceFrame="fillLevelIndicatorPart02Ref"/>
            <movingPart node="fillLevelIndicatorPart02Cable" referencePoint="fillLevelIndicatorPart02CableRef" referenceFrame="fillLevelIndicatorPart02CableRef" scaleZ="true"/>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="slurryTank" capacity="8200">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevel"/>
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillTrigger consumePtoPower="true" litersPerSecond="400"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>

        <sounds>
            <fill template="SLURRY_01" />
        </sounds>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="400"/>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="775" fillUnitIndex="1" allowAIDischarge="true" canDischargeToGround="false">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
            <dischargeSound template="SLURRY_01"/>
        </dischargeNode>
    </dischargeable>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <turnedOnAnimation name="sprayerAnimation"/>
        <activatableFillUnits>
            <activatableFillUnit index="1" />
        </activatableFillUnits>

        <sounds>
            <work template="SLURRY_01">
                <pitch indoor="0.75" outdoor="0.75" />
            </work>
        </sounds>
    </turnOnVehicle>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1.7" maxZ="1.2" yOffset="0.5" />
        <bendingNode minX="-1.1" maxX="1.1" minZ="1.2" maxZ="3.3" yOffset="0.4" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="3.3" maxZ="4.7" yOffset="0.2" />
    </foliageBending>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <allowTurnBackward value="false" />
        <turningRadiusLimitation radius="6"/>
        <collisionTrigger node="aiCollisionNode" width="2.9" height="2.7"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.9" height="2.7" length="5.6" lengthOffset="0.3"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="supercis800_main_component1" node="0>" />
        <i3dMapping id="supercis800_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="ptoInputNode" node="0>0|0|1" />
        <i3dMapping id="ptoDetachNode" node="0>0|0|2" />
        <i3dMapping id="supportArm" node="0>0|0|3|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|4|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|4|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|4|2" />
        <i3dMapping id="electric" node="0>0|0|4|3" />
        <i3dMapping id="airIn" node="0>0|0|4|4" />
        <i3dMapping id="airOut" node="0>0|0|4|5" />
        <i3dMapping id="airOut_detached" node="0>0|0|4|6" />
        <i3dMapping id="airOut_detachedAdapter" node="0>0|0|4|6|0" />
        <i3dMapping id="airIn_detached" node="0>0|0|4|7" />
        <i3dMapping id="airIn_detachedAdapter" node="0>0|0|4|7|0" />
        <i3dMapping id="electric_detached" node="0>0|0|4|8" />
        <i3dMapping id="electric_detachedAdapter" node="0>0|0|4|8|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|4|9" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|4|9|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|4|10" />
        <i3dMapping id="hydraulicIOut01_detachedAdapter" node="0>0|0|4|10|0" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|4|11" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|4|11|0" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|2" />
        <i3dMapping id="wheelChock02" node="0>0|1|3" />
        <i3dMapping id="sideMarker24_right" node="0>0|2|0|0" />
        <i3dMapping id="sideMarker24_left" node="0>0|2|0|1" />
        <i3dMapping id="rearLight52Left" node="0>0|2|0|2" />
        <i3dMapping id="rearLight52Right" node="0>0|2|0|3" />
        <i3dMapping id="frontLight06Orange" node="0>0|2|0|4" />
        <i3dMapping id="frontLight06Orange1" node="0>0|2|0|5" />
        <i3dMapping id="yellowRound_02" node="0>0|2|0|6" />
        <i3dMapping id="yellowRound_03" node="0>0|2|0|7" />
        <i3dMapping id="yellowRound_04" node="0>0|2|0|8" />
        <i3dMapping id="yellowRound_05" node="0>0|2|0|9" />
        <i3dMapping id="plateNumberLight02" node="0>0|2|0|10" />
        <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="spreader" node="0>0|3|0" />
        <i3dMapping id="spreaderPart" node="0>0|3|0|0|0" />
        <i3dMapping id="spreaderSpringRef" node="0>0|3|0|1" />
        <i3dMapping id="spreaderSpring" node="0>0|3|1" />
        <i3dMapping id="fillLevelIndicator" node="0>0|3|2|0" />
        <i3dMapping id="fillLevelIndicatorPart02" node="0>0|3|2|0|1" />
        <i3dMapping id="fillLevelIndicatorPart02Cable" node="0>0|3|2|0|1|0" />
        <i3dMapping id="fillLevelIndicatorPart01" node="0>0|3|3|0" />
        <i3dMapping id="fillLevelIndicatorPart02Ref" node="0>0|3|3|0|0" />
        <i3dMapping id="fillLevelIndicatorPart02CableRef" node="0>0|3|3|0|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|0" />
        <i3dMapping id="fillTrigger" node="0>0|4|1" />
        <i3dMapping id="dischargeTrigger" node="0>0|4|2" />
        <i3dMapping id="dischargeNode" node="0>0|4|3" />
        <i3dMapping id="workAreaStart" node="0>0|5|0" />
        <i3dMapping id="workAreaWidth" node="0>0|5|1" />
        <i3dMapping id="workAreaHeight" node="0>0|5|2" />
        <i3dMapping id="aiMarkerLeft" node="0>0|6|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|6|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|6|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|6|3" />
        <i3dMapping id="licensePlateNodeBack" node="0>0|7" />
        <i3dMapping id="effectSlurry" node="0>0|8|0|0" />
    </i3dMappings>
</vehicle>
