﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="silageRoller" 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>Stego 485 Pro</name>
        <specs>
            <workingWidth>4.85</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="1100" filterSpecMax="1600"/>
        </specs>
        <functions>
            <function>$l10n_function_silageCompressor</function>
        </functions>
        <image>$data/vehicles/holaras/stego485Pro/store_stego485Pro.png</image>
        <price>10500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HOLARAS</brand>
        <category>silocompaction</category>
        <shopHeight>3</shopHeight>
        <shopTranslationOffset>0 0.055 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>989440</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>180992</indexBufferMemoryUsage>
        <textureMemoryUsage>983040</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_silageRoller</typeDesc>
        <filename>$data/vehicles/holaras/stego485Pro/stego485Pro.i3d</filename>
        <size width="3.5" length="2.5"/>
        <speedLimit value="5"/>
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="2100" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <designConfigurations title="$l10n_configuration_additionalWeight">
        <designConfiguration name="$l10n_configuration_valueNo"/>
        <designConfiguration name="$l10n_configuration_valueYes" price="500">
            <objectChange node="weights" visibilityActive="true" visibilityInactive="false" />
            <objectChange node="stego485Pro_main_component1" massActive="3350" />
        </designConfiguration>
    </designConfigurations>

    <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                 <wheels>
                     <wheel isLeft="false" hasParticles="true" >
                         <physics restLoad="1.3" repr="wheel01" radius="0.454" mass="0.2" width="0.5" forcePointRatio="0.5" initialCompression="25" suspTravel="0.05" spring="85" damper="45" rotationDamping="0.001"/>
                     </wheel>
                     <wheel isLeft="false" hasParticles="true" >
                         <physics restLoad="1.3" repr="wheel02" radius="0.454" mass="0.2" width="1.5" forcePointRatio="0.5" initialCompression="25" suspTravel="0.05" spring="85" damper="45" rotationDamping="0.001"/>
                     </wheel>
                     <wheel isLeft="false" hasParticles="true" >
                         <physics restLoad="1.3" repr="wheel03" radius="0.454" mass="0.2" width="0.5" forcePointRatio="0.5" initialCompression="25" suspTravel="0.05" spring="85" damper="45" rotationDamping="0.001"/>
                     </wheel>
                 </wheels>
             </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="roll01" wheelIndex="1" />
        <speedRotatingPart node="roll02" wheelIndex="2" />
        <speedRotatingPart node="roll03" wheelIndex="3" />
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint  node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" upperRotationOffset="15" lowerRotationOffset="0" needsLowering="false">
                <distanceToGround lower="0.45" upper="1.5" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.1"/>
    </attachable>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="25 67 67" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1" diameter="0.02">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1" diameter="0.02">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="1" diameter="0.02">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut02" length="1" diameter="0.02">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="1" diameter="0.02">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_detachedAdapter" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut02_detachedAdapter" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_detachedAdapter" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="frontLight08_left" lightTypes="1" filename="$data/shared/assets/lights/lizard/frontLight08_left.xml" />
        <sharedLight linkNode="frontLight08_right" lightTypes="1" filename="$data/shared/assets/lights/lizard/frontLight08_right.xml" />

        <realLights>
            <high>
                <light node="workLightFrontHigh1" lightTypes="1"/>
            </high>
        </realLights>
    </lights>

    <bunkerSiloCompacter compactingScale="5" useSpeedLimit="true">
        <sounds>
            <rolling template="MEADOW_ROLLER_WORK" linkNode="stego485Pro_main_component1"/>
        </sounds>
    </bunkerSiloCompacter>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" >
                    <foldingPart animationName="folding" speedScale="0.6" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm"     startTime="0" endTime="0.5" startTrans="0 0.5 0" endTrans="0 -0.05 0" />

            <sound template="clackVar1" startTime="0.05" volumeScale="2" pitchScale="1.3" linkNode="attacherJoint"/>
        </animation>
        <animation name="folding">
            <part node="leftArm" startTime="0.3" endTime="3.0" startRot="0 0 0" endRot="0 0 110" tangentType="spline"/>
            <part node="rightArm" startTime="0.0" endTime="2.8" startRot="0 0 0" endRot="0 0 -110" tangentType="spline"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="2.8"  volumeScale="1.5" pitchScale="0.8" />
            <sound template="defaultHydraulicSound" startTime="0.3"  endTime="2.99" volumeScale="1.8" pitchScale="0.6" />
            <sound template="foldStartMed02"        startTime="0.01" direction="1"  volumeScale="1.8" pitchScale="0.8" />
            <sound template="clackVar4"             startTime="0.3"  direction="1"  volumeScale="1.2" pitchScale="0.8" />
            <sound template="clackVar6"             startTime="0.3"  direction="1"  volumeScale="1"   pitchScale="0.7" />
            <sound template="foldStopMed02"         startTime="2.7"  direction="1"  volumeScale="1.1" pitchScale="1" />
            <sound template="clackVar6"             startTime="2.99" direction="1"  volumeScale="1.1" pitchScale="0.7" />
            <sound template="foldStartMed02"        startTime="2.99" direction="1"  volumeScale="1.1" pitchScale="0.8" />
            <sound template="foldStartMed01"        startTime="2.99" direction="-1" volumeScale="1.5" pitchScale="0.6" />
            <sound template="foldStopMed02"         startTime="0.1"  direction="-1" volumeScale="1.2" pitchScale="0.9" />
            <sound template="clackVar6"             startTime="0.3"  direction="-1" volumeScale="1.1" pitchScale="0.8" />
            <sound template="sheetImp02"            startTime="0.3"  direction="-1" volumeScale="2"   pitchScale="0.8" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm" playSound="true" wheelIndices="1">
                <dependentPart node="leftArmHydraulic" />
            </movingTool>
            <movingTool node="rightArm" playSound="true" wheelIndices="3">
                <dependentPart node="rightArmHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="leftArmHydraulic" referencePoint="leftArmHydraulicRef" referenceFrame="leftArmHydraulicRefFrame">
                <translatingPart node="leftArmHydraulicPunch" />
            </movingPart>
            <movingPart node="rightArmHydraulic" referencePoint="rightArmHydraulicRef" referenceFrame="rightArmHydraulicRefFrame">
                <translatingPart node="rightArmHydraulicPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <ai>
        <agentAttachment width="3" height="2.4" length="1.3" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.4" maxX="1.4" minZ="-0.6" maxZ="0.6" yOffset="0.2" />
        <bendingNode minX="0.45" maxX="1.55" minZ="-0.6" maxZ="0.6" yOffset="-0.54" node="leftArm" />
        <bendingNode minX="-1.55" maxX="-0.45" minZ="-0.6" maxZ="0.6" yOffset="-0.54" node="rightArm" />
    </foliageBending>

    <baseMaterial>
        <material name="stego485Pro_mat" baseNode="stego485Pro_vis">
            <shaderParameter name="colorMat0" value="HOLARAS_RED"/>
            <shaderParameter name="colorMat1" value="HOLARAS_GREEN"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="stego485Pro_main_component1" node="0>" />
        <i3dMapping id="stego485Pro_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supportArm" node="0>0|0|2" />
        <i3dMapping id="trailerAttacherJoint" node="0>0|0|3" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|4|0" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|4|0|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|4|1" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|0|4|1|0" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|4|2" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|4|2|0" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|4|3" />
        <i3dMapping id="hydraulicOut02_detachedAdapter" node="0>0|0|4|3|0" />
        <i3dMapping id="electric_detached" node="0>0|0|4|4" />
        <i3dMapping id="electric_detachedAdapter" node="0>0|0|4|4|0" />
        <i3dMapping id="electric" node="0>0|0|4|5" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|4|6" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|4|7" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|4|8" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|4|9" />
        <i3dMapping id="wheel02" node="0>0|1|0" />
        <i3dMapping id="frontLight08_left" node="0>0|2|0" />
        <i3dMapping id="frontLight08_right" node="0>0|2|1" />
        <i3dMapping id="workLightFrontHigh1" node="0>0|2|2|0" />
        <i3dMapping id="leftArm" node="0>0|3|0" />
        <i3dMapping id="roll01" node="0>0|3|0|1" />
        <i3dMapping id="leftArmHydraulicRef" node="0>0|3|0|2" />
        <i3dMapping id="wheel01" node="0>0|3|0|4" />
        <i3dMapping id="rightArm" node="0>0|3|1" />
        <i3dMapping id="roll03" node="0>0|3|1|1" />
        <i3dMapping id="rightArmHydraulicRef" node="0>0|3|1|2" />
        <i3dMapping id="wheel03" node="0>0|3|1|4" />
        <i3dMapping id="leftArmHydraulicRefFrame" node="0>0|3|2" />
        <i3dMapping id="leftArmHydraulic" node="0>0|3|2|0" />
        <i3dMapping id="leftArmHydraulicPunch" node="0>0|3|2|0|0" />
        <i3dMapping id="rightArmHydraulicRefFrame" node="0>0|3|3" />
        <i3dMapping id="rightArmHydraulic" node="0>0|3|3|0" />
        <i3dMapping id="rightArmHydraulicPunch" node="0>0|3|3|0|0" />
        <i3dMapping id="roll02" node="0>0|3|4" />
        <i3dMapping id="weights" node="0>0|4|0" />
    </i3dMappings>
</vehicle>
