﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="silageCompressor" 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>DSC 180</name>
        <specs>
            <neededPower>165</neededPower>
            <workingWidth>1.8</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="1500" filterSpecMax="1600"/>
        </specs>
        <functions>
            <function>$l10n_function_silageCompressor</function>
        </functions>
        <image>$data/vehicles/weberMT/dsc180/store_dsc180.dds</image>
        <price>12500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>WEBERMT</brand>
        <category>silocompaction</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1083136</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>195584</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_silageCompressor</typeDesc>
        <filename>$data/vehicles/weberMT/dsc180/dsc180.i3d</filename>
        <size width="3" length="2.3" lengthOffset="0.3"/>
        <speedLimit value="5"/>
        <components>
            <component centerOfMass="0 0.45 0" solverIterationCount="20" mass="2890"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" radius="0.375" width="1.8" restLoad="2.4" repr="backWheel" mass="0.01" forcePointRatio="0.1" initialCompression="25" suspTravel="0.05" spring="100" damper="40" smoothGroundRadius="5.75" maxWheelSink="0.05"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="roller" wheelIndex="1" groundReferenceNodeIndex="1"/>
    </speedRotatingParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn_01"  length="0.8" diameter="0.02" straighteningFactor="1.5">
           <objectChange node="hydraulicIn_01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut_01" length="0.8" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="hydraulicOut_01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn_01_connector"  filename="$data/shared/connectionHoses/connectors.i3d"/>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut_01_connector" filename="$data/shared/connectionHoses/connectors.i3d"/>
    </dynamicallyLoadedParts>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.15"/>
    </groundReferenceNodes>

    <attachable>
        <inputAttacherJointConfigurations title="$l10n_configuration_design">
            <inputAttacherJointConfiguration name="$l10n_configuration_valuePowerTakeOff" powerTakeOffConfigId="1" price="300">
                <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerTransLimitScale="0 1 0" upperRotationOffset="5" lowerRotLimitScale="0 0 0" >
                    <distanceToGround lower="0.4" upper="1.1" />
                </inputAttacherJoint>
                <objectChange node="config_pto" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_valueHydraulic" powerTakeOffConfigId="2" price="0">
                <inputAttacherJoint node="attacherJoint2" jointType="implement" topReferenceNode="topReferenceNode2" lowerTransLimitScale="0 1 0" upperRotationOffset="5" lowerRotLimitScale="0 0 0" >
                    <distanceToGround lower="0.4" upper="1.1" />
                </inputAttacherJoint>
                <objectChange node="config_hydraulic" visibilityActive="true" visibilityInactive="false"/>
                <objectChange node="colPart" translationActive="0 0 0" translationInactive="0 0 0.26"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
        <support animationName="moveSupport"/>
        <brakeForce force="0.1"/>
    </attachable>

    <powerConsumer forceNode="dsc180_main_component1" maxForce="2" ptoRpm="400" neededMaxPtoPower="50"/>

    <powerTakeOffs>
        <powerTakeOffConfigurations>
            <powerTakeOffConfiguration>
                <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" detachNode="ptoDetachNode" filename="$data/shared/assets/powerTakeOffs/walterscheidW.xml"/>
            </powerTakeOffConfiguration>
            <powerTakeOffConfiguration />
        </powerTakeOffConfigurations>
    </powerTakeOffs>

    <bunkerSiloCompacter compactingScale="5" turnedOnCompactingScale="15" useSpeedLimit="true">
        <sounds>
            <rolling template="MEADOW_ROLLER_WORK" linkNode="dsc180_main_component1"/>
        </sounds>
    </bunkerSiloCompacter>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk windrow" capacity="5000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.0" endTime="0.5" startTrans="0 0.48 0" endTrans="0 0 0"/>

            <sound template="clackVar6" startTime="0.49" volumeScale="1" pitchScale="0.9" />
            <sound template="clackVar1" direction="-1" startTime="0.15" volumeScale="1" pitchScale="1.2" />
            <sound template="clackVar1" direction="1"  startTime="0.3"  volumeScale="1" pitchScale="1.2" />
        </animation>
    </animations>

    <ai>
        <agentAttachment width="2" height="1.4" length="1.3" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1" maxX="1" minZ="-0.7" maxZ="0.7" yOffset="0.2" />
    </foliageBending>

    <baseMaterial>
        <material name="dsc180_mat" baseNode="dsc180_vis">
            <shaderParameter name="colorMat0" value="WEBERMT_BLUE1"/>
            <shaderParameter name="colorMat3" value="WALTERSCHEID_YELLOW1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="dsc180_main_component1" node="0>" />
        <i3dMapping id="dsc180_vis" node="0>0" />
        <i3dMapping id="topReferenceNode2" node="0>0|0|0" />
        <i3dMapping id="attacherJoint2" node="0>0|0|1" />
        <i3dMapping id="topReferenceNode" node="0>0|0|2" />
        <i3dMapping id="attacherJoint" node="0>0|0|3" />
        <i3dMapping id="ptoInputNode" node="0>0|0|4|0" />
        <i3dMapping id="ptoDetachNode" node="0>0|0|4|1" />
        <i3dMapping id="supportArm" node="0>0|0|5" />
        <i3dMapping id="groundReferenceNode" node="0>0|1" />
        <i3dMapping id="backWheel" node="0>0|2" />
        <i3dMapping id="roller" node="0>0|3" />
        <i3dMapping id="config_pto" node="0>0|4|0" />
        <i3dMapping id="config_hydraulic" node="0>0|4|1" />
        <i3dMapping id="hydraulicIn_01" node="0>0|4|1|1|0" />
        <i3dMapping id="hydraulicIn_01_detached" node="0>0|4|1|1|0|0" />
        <i3dMapping id="hydraulicIn_01_connector" node="0>0|4|1|1|0|0|0" />
        <i3dMapping id="hydraulicOut_01" node="0>0|4|1|1|1" />
        <i3dMapping id="hydraulicOut_01_detached" node="0>0|4|1|1|1|0" />
        <i3dMapping id="hydraulicOut_01_connector" node="0>0|4|1|1|1|0|0" />
        <i3dMapping id="colPart" node="0>1|0" />
    </i3dMappings>
</vehicle>
