﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="drivableMixerWagon" 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>SelfLine 4.0 Premium 2215-22</name>
        <specs>
            <power>218</power>
            <maxSpeed>40</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_feeder</function>
        </functions>
        <image>$data/vehicles/siloking/sf4Premium/store_sf4Premium.png</image>
        <price>204500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SILOKING</brand>
        <category>animalsVehicles</category>
        <shopTranslationOffset>0 0.024 0</shopTranslationOffset>
        <shopRotationOffset>-0.957 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>5602816</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>937984</indexBufferMemoryUsage>
        <textureMemoryUsage>5767168</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>329745</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mixerWagon</typeDesc>
        <filename>$data/vehicles/siloking/sf4Premium/sf4Premium.i3d</filename>
        <sounds filename="$data/vehicles/siloking/sf4Premium/sounds/sf4Premium.xml"/>
        <size width="4" length="9.8" height="3.3" lengthOffset="0.5"/>
        <components>
            <component centerOfMass="0 0.55 -0.85" solverIterationCount="15" mass="13500" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="VEHICLE" />
        <mapHotspot type="TRACTOR" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="LIZARD" saveId="LIZARD_DEFAULT">
                <wheels autoRotateBackSpeed="1.9">
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="true"  hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="3.5" repr="wheelFrontLeft"  forcePointRatio="0.6" initialCompression="35" suspTravel="0.15" spring="64" damper="45" yOffset="-0.006"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="3.5" repr="wheelFrontRight" forcePointRatio="0.6" initialCompression="35" suspTravel="0.15" spring="64" damper="45" yOffset="-0.006"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiUrbanHA3/265_70R19_5.xml" isLeft="true"  hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="3.5" repr="axisBackLeft"  driveNode="wheelBackLeft"  forcePointRatio="0.6" initialCompression="35" suspTravel="0.15" spring="65" damper="45" frictionScale="2" transRatio="1" yOffset="-0.006"/>
                        <steering node="steeringBar" nodeMinTransX="0.06" nodeMaxTransX="-0.06" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiUrbanHA3/265_70R19_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="3.5" repr="axisBackRight" driveNode="wheelBackRight" forcePointRatio="0.6" initialCompression="35" suspTravel="0.15" spring="65" damper="45" frictionScale="2" transRatio="1" yOffset="-0.006"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="50" rotCenterWheel1="1" rotCenterWheel2="2" />
        </ackermannSteeringConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>SHARED_BLACK2</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n10_12.xml" isLeft="true"  scale="0.3 0.4 0.4"/>
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n10_12.xml" isLeft="false" scale="0.3 0.4 0.4" />
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n8_6.xml"   isLeft="true"  scale="0.22 0.28 0.28" />
            <hub linkNode="wheelBackRight"  filename="$data/shared/wheels/hubs/hub_n8_6.xml"   isLeft="false" scale="0.22 0.28 0.28" />
        </hubs>
    </wheels>

    <lights>
        <sharedLight linkNode="rearLight37_left" filename="$data/shared/assets/lights/lizard/rearLight37_left.xml" />
        <sharedLight linkNode="rearLight37_right" filename="$data/shared/assets/lights/lizard/rearLight37_right.xml" />

        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>

        <realLights>
            <low>
                <light node="frontLightLow"  lightTypes="0" excludedLightTypes="3" />
                <light node="highBeamLow"    lightTypes="3" />
            </low>
            <high>
                <light node="frontLightHigh"        lightTypes="0" excludedLightTypes="3" />
                <light node="backLightsHigh1"       lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <light node="workLightBackHigh1"    lightTypes="1"/>
                <light node="highBeamHigh"          lightTypes="3"/>
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftFront" />
                <turnLightRight node="turnLightRightFront" />
                <reverseLight node="reverseLightHigh1" />
                <interiorLight node="interiorScreenLight"/>
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="defaultLightStatic"  lightTypes="0 3" />
            <defaultLight shaderNode="workLightBackStatic" lightTypes="1" />
            <defaultLight shaderNode="licensePlateLight_static" lightTypes="0" />
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="turnLightFrontLeftStatic"/>
            <turnLightRight shaderNode="turnLightFrontRightStatic"/>
        </turnLights>

        <dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="interiorGlow01_decals"   lightTypes="0" intensity="0.2" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="lightState" node="interiorGlow02_decals"   lightTypes="0" intensity="0.2" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="lightState" node="interiorGlow03_decals"   lightTypes="0" intensity="0.2" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="lightState" node="iconWorklightFront_decals" lightTypes="2" intensity="0.2" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightHazard" node="iconHazards_decals" intensity="2" emitColor="RED"/>
        </dashboards>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack"  position="BACK"  preferedType="ELONGATED" placementArea="0.1 0.26 0.1 0.26">
            <objectChange node="logo_decals" visibilityActive="false" visibilityInactive="true" />
        </licensePlate>
    </licensePlates>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="wheelChock01" filename="$data/shared/assets/wheelChocks/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="wheelChock02" filename="$data/shared/assets/wheelChocks/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="chockSupport" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="chockSupport1" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="camera_01" filename="$data/shared/assets/camera_01.i3d" />
    </dynamicallyLoadedParts>

    <enterable isTabbable="true" >
        <enterReferenceNode node="sf4Premium_main_component1" />
        <exitPoint node="exitPoint" />

        <cameras>
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="6.1" transMax="40" translation="0 0 8.8" rotation="-18 180 0" >
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
                <raycastNode node="cameraRaycastNode3"/>
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" shadowFocusBox="shadowFocusBox" suspensionNodeIndex="1"/>
        </cameras>

        <characterNode node="playerSkin" cameraMinDistance="0.5" spineRotation="-90 0 90" >
            <target ikChain="rightFoot" targetNode="playerRightFootTarget" />
            <target ikChain="leftFoot"  targetNode="playerLeftFootTarget" />
            <target ikChain="rightArm"  targetNode="playerRightHandTarget" poseId="wideFingers"/>
            <target ikChain="leftArm"   targetNode="playerLeftHandTarget" />
        </characterNode>

        <characterTargetNodeModifier node="playerRightFootTarget" transitionTime="0.1" >
            <state node="playerRightFootTargetGas"   referenceNode="gasPedal"/>
            <state node="playerRightFootTargetBrake" referenceNode="brakePedal"/>
        </characterTargetNodeModifier>

        <mirrors>
            <mirror node="mirrorLeftBig_decal" prio="1" />
            <mirror node="mirrorRightBig_decal" prio="1" />
        </mirrors>
    </enterable>

    <drivable>
        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="30" />

        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="gasPedal"   minRot="0 0 0" maxRot="0 0 15" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="brakePedal" minRot="0 0 0" maxRot="0 0 15"  doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="70"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="3" usage="6" fillType="def" />     <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="1" wheelIndex2="2" /> <!-- front left-right -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="SelfLine 4.0 Premium" hp="218" price="0">
                <motor torqueScale="0.922" minRpm="850" maxRpm="2200" maxForwardSpeed="43" maxBackwardSpeed="15" brakeForce="6" lowBrakeForceScale="0.22">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="14.5" maxForwardGearRatio="300" minBackwardGearRatio="40" maxBackwardGearRatio="300" name="$l10n_info_transmission_cvt"/>
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="exhaustParticle1" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.05" maxRpmScale="0.5" />
        </exhaustEffects>

        <dashboards>
            <dashboard displayType="MULTI_STATE" valueType="ignitionState" node="ignitionKey" doInterpolation="true" groups="MOTOR_ACTIVE">
                <state value="0" rotation="0 0 0"/>
                <state value="1" rotation="0 0 -90"/>
                <state value="2" rotation="0 0 -30"/>
            </dashboard>
        </dashboards>

        <motorStartDuration>3000</motorStartDuration>
    </motorized>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" turnOnFoldDirection="-1" turnOnFoldMinLimit="0.0" turnOnFoldMaxLimit="0.9">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="wiperFrontAnimation">
            <part node="wiperFrontArm01"  startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="6 0 -20" />
            <part node="wiperFrontArm01"  startTime="0.5" endTime="1.0" startRot="6 0 -20" endRot="0 0 -40" />
            <part node="wiperFrontArm02"  startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="6 0 -20" />
            <part node="wiperFrontArm02"  startTime="0.5" endTime="1.0" startRot="6 0 -20" endRot="0 0 -40" />
            <part node="wiperFront"       startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="-6 0 20" />
            <part node="wiperFront"       startTime="0.5" endTime="1.0" startRot="-6 0 20" endRot="0 0 40" />

            <sound template="wiper1" startTime="0" endTime="1" direction="1"  volumeScale="1.0" pitchScale="0.6" fadeOut="0.1" linkNode="wiperFront"/>
            <sound template="wiper2" startTime="0" endTime="1" direction="-1" volumeScale="1.0" pitchScale="0.6" fadeOut="0.1" linkNode="wiperFront"/>
        </animation>

        <animation name="wiperSideAnimation">
            <part node="wiperSideArm01"  startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="-46 0 0" />
            <part node="wiperSideArm02"  startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="-46 0 0" />
            <part node="wiperSide"       startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="46 0 0" />

            <sound template="wiper1" startTime="0" endTime="1" direction="1"  volumeScale="0.8" pitchScale="0.7" fadeOut="0.1" linkNode="wiperSide"/>
            <sound template="wiper2" startTime="0" endTime="1" direction="-1" volumeScale="0.8" pitchScale="0.7" fadeOut="0.1" linkNode="wiperSide"/>
        </animation>

        <animation name="wiperTopAnimation">
            <part node="wiperTopArm01"  startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="-3 -45 0" />
            <part node="wiperTopArm01"  startTime="0.5" endTime="1.0" startRot="-3 -45 0" endRot="-3 -90 0" />
            <part node="wiperTopArm02"  startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="-3 -45 0" />
            <part node="wiperTopArm02"  startTime="0.5" endTime="1.0" startRot="-3 -45 0" endRot="0 -90 0" />
            <part node="wiperTop"       startTime="0.0" endTime="0.5" startRot="0 0 0" endRot="-5.3 0 -45" />
            <part node="wiperTop"       startTime="0.5" endTime="1.0" startRot="-5.3 0 -45" endRot="0 0 -90" />

            <sound template="wiper1" startTime="0" endTime="1" direction="1"  volumeScale="0.6" pitchScale="1.0" fadeOut="0.1" linkNode="wiperTop"/>
            <sound template="wiper2" startTime="0" endTime="1" direction="-1" volumeScale="0.6" pitchScale="1.0" fadeOut="0.1" linkNode="wiperTop"/>
        </animation>

        <animation name="folding">
            <part node="topFlap"  startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="-41.425 0 0" />

            <sound template="metalLowVar2" startTime="0.0" pitchScale="1.6" volumeScale="1.2" direction="-1" linkNode="topFlap" />
            <sound template="clackVar5"    startTime="0.0" pitchScale="1.6" volumeScale="0.4" direction="-1" linkNode="topFlap" />
            <sound template="clackVar4"    startTime="0.99" pitchScale="1.6" volumeScale="0.8" direction="1" linkNode="topFlap" />
            <sound template="metalLowVar2" startTime="0.99" pitchScale="1.4" volumeScale="1.3" direction="1" linkNode="topFlap" />
            <sound template="defaultHydraulicSound" pitchScale="1.3" volumeScale="0.6" startTime="0.01" endTime="0.99" linkNode="topFlap"/>
        </animation>

        <animation name="tipLeft">
            <part node="doorLeft" startTime="0.0" endTime="1.0" startTrans="0.0 0.0 0.0" endTrans="0.0 0.5 0.0" />
        </animation>
        <animation name="tipRight">
            <part node="doorRight" startTime="0.0" endTime="1.0" startTrans="0.0 0.0 0.0" endTrans="0.0 0.5 0.0" />
        </animation>
        <animation name="tipLeftDoor">
            <part node="rubberLeftJoint" startTime="0.0" endTime="1.0"  startTrans="1.124 0.497 -2.157" endTrans="1.553 0.812 -2.157" startRot="0.0 0.0 0.0" endRot="0.0 0.0 34.558" />
        </animation>
        <animation name="tipRightDoor">
            <part node="rubberRightJoint" startTime="0.0" endTime="1.0"  startTrans="-1.124 0.497 -2.157" endTrans="-1.641 0.824 -2.157" startRot="0.0 0.0 0.0" endRot="0.0 0.0 -55.14" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="mainArm" playSound="true">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="12" rotAcceleration="100" rotMax="47" rotMin="-15" startRot="40"/>
                <dependentPart node="mainArmHydraulic" />
            </movingTool>
            <movingTool node="frontFlap" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.5" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
                <rotation rotSpeed="100" rotAcceleration="300" rotMax="0" rotMin="-150" startRot="0"/>
            </movingTool>
            <movingTool node="topFlap" playSound="true">
                <dependentPart node="topFlapHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="steeringBarLeft" referencePoint="steeringBarLeftRef" referenceFrame="steeringBarLeftRef" isActiveDirty="true" maxUpdateDistance="20" scaleZ="true"/>
            <movingPart node="steeringBarRight" referencePoint="steeringBarRightRef" referenceFrame="steeringBarRightRef" isActiveDirty="true" maxUpdateDistance="20" scaleZ="true"/>
            <movingPart node="axisBackLeftArm01" referencePoint="axisBackLeftArm01Ref" referenceFrame="axisBackLeftArm01Ref" isActiveDirty="true" maxUpdateDistance="20" limitedAxis="1"/>
            <movingPart node="axisBackLeftArm02" referencePoint="axisBackLeftArm02Ref" referenceFrame="axisBackLeftArm02Ref" isActiveDirty="true" maxUpdateDistance="20" limitedAxis="1"/>
            <movingPart node="axisBackLeftArm02Hydraulic" referencePoint="axisBackLeftArm02HydraulicRef" referenceFrame="axisBackLeftArm02HydraulicRef" isActiveDirty="true" maxUpdateDistance="20">
                <translatingPart node="axisBackLeftArm02HydraulicPunch" />
            </movingPart>
            <movingPart node="axisBackRightArm01" referencePoint="axisBackRightArm01Ref" referenceFrame="axisBackRightArm01Ref" isActiveDirty="true" maxUpdateDistance="20" limitedAxis="1"/>
            <movingPart node="axisBackRightArm02" referencePoint="axisBackRightArm02Ref" referenceFrame="axisBackRightArm02Ref" isActiveDirty="true" maxUpdateDistance="20" limitedAxis="1"/>
            <movingPart node="axisBackRightArm02Hydraulic" referencePoint="axisBackRightArm02HydraulicRef" referenceFrame="axisBackRightArm02HydraulicRef" isActiveDirty="true" maxUpdateDistance="20">
                <translatingPart node="axisBackRightArm02HydraulicPunch" />
            </movingPart>
            <movingPart node="mainArmHydraulic" referencePoint="mainArmHydraulicRef" referenceFrame="mainArmHydraulicRef">
                <translatingPart node="mainArmHydraulicPunch" />
            </movingPart>
            <movingPart node="topFlapHydraulic" referencePoint="topFlapHydraulicRef" referenceFrame="topFlapHydraulicRef">
                <translatingPart node="topFlapHydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.5" linkNode="mainArmHydraulic"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="mainArmHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.5" linkNode="mainArmHydraulic"   actionNames="TRANSLATING_POS" nodes="mainArmHydraulic" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalLowVar2"  pitchScale="1.0" volumeScale="3.3" linkNode="mainArm"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="mainArm"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.7" linkNode="mainArm"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="mainArm"/>
            <actionSound template="metalClose"    pitchScale="2.5" volumeScale="0.5" linkNode="mainArm"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="mainArm"/>
            <actionSound template="clackVar6"     pitchScale="1.0" volumeScale="1.3" linkNode="mainArm"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="mainArm"/>
            <actionSound template="metalLowVar2"  pitchScale="1.3" volumeScale="2.2" linkNode="mainArm"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="mainArm"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.4" linkNode="mainArm"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="mainArm"/>
            <actionSound template="metalClose"    pitchScale="2.8" volumeScale="0.3" linkNode="mainArm"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="mainArm"/>
            <actionSound template="clackVar6"     pitchScale="0.8" volumeScale="0.7" linkNode="mainArm"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="mainArm"/>
            <actionSound template="clackVar4"     pitchScale="2.2" volumeScale="0.7"   linkNode="frontFlap"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="frontFlap"/>
            <actionSound template="metalLowVar2"  pitchScale="1.2" volumeScale="2.5"   linkNode="frontFlap"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="frontFlap"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.2"   linkNode="frontFlap"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="frontFlap"/>
        </sounds>

        <dashboards>
            <dashboard displayType="ROT" valueType="movingTool" node="frontloaderJoystick" rotAxis="1" minRot="-15" maxRot="15" axis="AXIS_FRONTLOADER_ARM" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </cylindered>

    <wipers>
        <wiper animName="wiperFrontAnimation" >
            <state animSpeed="0.75" animPause="2.0" />
            <state animSpeed="0.75" animPause="0.0" />
            <state animSpeed="1.10" animPause="0.0" />
        </wiper>
        <wiper animName="wiperSideAnimation" >
            <state animSpeed="1.0" animPause="2.0" />
        </wiper>
        <wiper animName="wiperTopAnimation" >
            <state animSpeed="1.0" animPause="2.0" />
        </wiper>
    </wipers>

    <suspensions>
        <suspension node="seat" weight="150" minTranslation="-0.05 -0.15 0.0" maxTranslation="0.05 0.15 0.0" suspensionParametersX="20 4" suspensionParametersY="5 1" suspensionParametersZ="20 4" />
        <suspension useCharacterTorso="true" weight="90"  minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="MIXERWAGON" capacity="22000" >
                        <exactFillRootNode node="exactFillRootNode" />
                        <dashboard displayType="TEXT" valueType="fillLevel" node="numbersWeight" textMask="00000.0" textSize="0.0275" font="GENERIC" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="200"/>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" showOnInfoHud="false" fillTypes="def" capacity="26" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.22" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="loadInfo" width="2" length="4.0" />
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="loadInfo" width="2" length="4.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <shovel ignoreFillUnitFillType="true">
        <shovelNode node="pickupNode" fillUnitIndex="1" loadInfoIndex="1" width="2" length="0.5" needsActivation="true" fillLitersPerSecond="750" needsMovement="false"/>
        <dischargeInfo dischargeNodeIndex="0"/>
    </shovel>

    <dischargeable>
        <dischargeNode node="dischargeNodeLeft" emptySpeed="1035" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1" length="1"/>
            <effects>
                <effectNode effectClass="TypedMotionPathEffect" effectType="MIXERWAGON" linkNode="unloadEffectLeft">
                    <motionPathEffect textureFilename="$data/vehicles/siloking/sf4Premium/unloadEffectLeftArray.dds" numRows="8" rowLength="15" delay="0"/>
                </effectNode>
            </effects>
            <animationNodes>
                <animationNode class="ScrollingAnimation" node="belt01" shaderParameterName="scrollPosition" scrollSpeed="0.5" scrollLength="1" />
            </animationNodes>
            <dischargeStateSound template="mixerLoop" fadeIn="1.0" fadeOut="3.0" linkNode="belt01"/>
        </dischargeNode>
        <dischargeNode node="dischargeNodeRight" emptySpeed="1035" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1" length="1"/>
            <effects>
                <effectNode effectClass="TypedMotionPathEffect" effectType="MIXERWAGON" linkNode="unloadEffectRight">
                    <motionPathEffect textureFilename="$data/vehicles/siloking/sf4Premium/unloadEffectRightArray.dds" numRows="8" rowLength="15" delay="0"/>
                </effectNode>
            </effects>
            <animationNodes>
                <animationNode class="ScrollingAnimation" node="belt02" shaderParameterName="scrollPosition" scrollSpeed="0.5" scrollLength="1" />
            </animationNodes>
            <dischargeStateSound template="mixerLoop" fadeIn="1.0" fadeOut="3.0" linkNode="belt02"/>
        </dischargeNode>
    </dischargeable>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipLeft" speedScale="1.0" startTipTime="0.3"/>
                        <doorAnimation name="tipLeftDoor" speedScale="1.3" closeSpeedScale="3" delayedClosing="true"/>
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipRight" speedScale="1.0" startTipTime="0.3"/>
                        <doorAnimation name="tipRightDoor" speedScale="1.3" closeSpeedScale="3" delayedClosing="true"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <mixerWagon fillUnitIndex="1" recipe="FORAGE">
        <baleTriggers>
            <baleTrigger node="baleTriggerUnit" pickupSpeed="500"/>
            <baleTrigger node="baleTriggerArm" pickupSpeed="500" needsSetIsTurnedOn="true" useEffect="true"/>
        </baleTriggers>

        <mixAnimationNodes>
            <animationNode node="rotationPartFront"   rotSpeed="-80" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3" />
            <animationNode node="rotationPartBack"    rotSpeed="-80" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3" />
        </mixAnimationNodes>

        <pickupAnimationNodes>
            <animationNode node="rotationPartFeeder"   rotSpeed="1500" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="4" />
            <animationNode class="ScrollingAnimation" node="feederBelt" scrollSpeed="-1" turnOnFadeTime="2" turnOffFadeTime="3" shaderParameterComponent="2"/>
        </pickupAnimationNodes>

        <fillEffect>
            <effectNode effectClass="TypedMotionPathEffect" effectType="MIXERWAGON" linkNode="feederEffect">
                <motionPathEffect textureFilename="$data/vehicles/siloking/sf4Premium/feederEffectArray.dds" numRows="8" rowLength="30" delay="0" speedScale="0.7"/>
            </effectNode>
        </fillEffect>
    </mixerWagon>

    <turnOnVehicle turnOffIfNotAllowed="true"/>

    <tipOccluder>
        <occlusionArea start="tipOcclusionAreaStart" width="tipOcclusionAreaWidth" height="tipOcclusionAreaHeight" />
    </tipOccluder>

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>

        <default>
            <dashboard displayType="EMITTER" node="display01"  groups="MOTOR_ACTIVE" />
            <dashboard displayType="VISIBILITY" node="numbers"  groups="MOTOR_ACTIVE" />
        </default>
    </dashboard>

    <baseMaterial>
        <material name="sf4Premium_mat" baseNode="sf4Premium_vis">
            <shaderParameter name="colorMat0" value="SILOKING_RED1"/>
            <shaderParameter name="colorMat1" value="SILOKING_BLUE1"/>
        </material>
        <material name="sf4PremiumAnim_vmask_mat" baseNode="anim_lp">
            <shaderParameter name="colorMat0" value="SILOKING_RED1"/>
            <shaderParameter name="colorMat1" value="SILOKING_BLUE1"/>
        </material>
    </baseMaterial>

    <ai>
        <agent width="2.75" length="9.3" height="3.4" lengthOffset="-1.15" frontOffset="-5.12" />
    </ai>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-4.1" maxZ="4.1" yOffset="0.5" />
        <bendingNode minX="-1.05" maxX="1.05" minZ="-0.7" maxZ="0.2" yOffset="0.2" node="pickupNode" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="sf4Premium_main_component1" node="0>" />
        <i3dMapping id="sf4Premium_vis" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|0|1" />
        <i3dMapping id="axisBackLeft" node="0>0|0|2" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|2|0" />
        <i3dMapping id="axisBackLeftArm01Ref" node="0>0|0|2|1" />
        <i3dMapping id="axisBackLeftArm02Ref" node="0>0|0|2|2" />
        <i3dMapping id="steeringBarLeft" node="0>0|0|2|3" />
        <i3dMapping id="axisBackRight" node="0>0|0|3" />
        <i3dMapping id="wheelBackRight" node="0>0|0|3|0" />
        <i3dMapping id="axisBackRightArm01Ref" node="0>0|0|3|1" />
        <i3dMapping id="axisBackRightArm02Ref" node="0>0|0|3|2" />
        <i3dMapping id="steeringBarRight" node="0>0|0|3|3" />
        <i3dMapping id="outdoorCameraTarget" node="0>0|1|0" />
        <i3dMapping id="outdoorCamera1" node="0>0|1|0|0" />
        <i3dMapping id="indoorCamera1" node="0>0|1|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>0|1|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>0|1|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>0|1|4" />
        <i3dMapping id="shadowFocusBox" node="0>0|1|5" />
        <i3dMapping id="rearLight37_left" node="0>0|2|0|0" />
        <i3dMapping id="rearLight37_right" node="0>0|2|0|1" />
        <i3dMapping id="workLightBackStatic" node="0>0|2|1|0" />
        <i3dMapping id="defaultLightStatic" node="0>0|2|1|1" />
        <i3dMapping id="turnLightFrontLeftStatic" node="0>0|2|1|2" />
        <i3dMapping id="turnLightFrontRightStatic" node="0>0|2|1|3" />
        <i3dMapping id="licensePlateLight_static" node="0>0|2|1|4" />
        <i3dMapping id="frontLightLow" node="0>0|2|2|0" />
        <i3dMapping id="highBeamLow" node="0>0|2|2|1" />
        <i3dMapping id="frontLightHigh" node="0>0|2|2|2" />
        <i3dMapping id="highBeamHigh" node="0>0|2|2|3" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|2|4" />
        <i3dMapping id="workLightBackHigh1" node="0>0|2|3|0" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|4|0" />
        <i3dMapping id="turnLightLeftFront" node="0>0|2|5|0" />
        <i3dMapping id="turnLightRightFront" node="0>0|2|5|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|2|6|0" />
        <i3dMapping id="axisBackLeftArm01" node="0>0|3|0|0" />
        <i3dMapping id="axisBackLeftArm02" node="0>0|3|1|0" />
        <i3dMapping id="axisBackLeftArm02HydraulicRef" node="0>0|3|1|0|0" />
        <i3dMapping id="axisBackLeftArm02Hydraulic" node="0>0|3|2" />
        <i3dMapping id="axisBackLeftArm02HydraulicPunch" node="0>0|3|2|0" />
        <i3dMapping id="axisBackRightArm01" node="0>0|3|3|0" />
        <i3dMapping id="axisBackRightArm02" node="0>0|3|4|0" />
        <i3dMapping id="axisBackRightArm02HydraulicRef" node="0>0|3|4|0|0" />
        <i3dMapping id="axisBackRightArm02Hydraulic" node="0>0|3|5" />
        <i3dMapping id="axisBackRightArm02HydraulicPunch" node="0>0|3|5|0" />
        <i3dMapping id="mainArm" node="0>0|3|6" />
        <i3dMapping id="frontFlap" node="0>0|3|6|0" />
        <i3dMapping id="mainArmHydraulicRef" node="0>0|3|6|1" />
        <i3dMapping id="topFlap" node="0>0|3|6|2" />
        <i3dMapping id="topFlapHydraulicRef" node="0>0|3|6|2|0" />
        <i3dMapping id="topFlapHydraulic" node="0>0|3|6|3" />
        <i3dMapping id="topFlapHydraulicPunch" node="0>0|3|6|3|0" />
        <i3dMapping id="rotationPartFeeder" node="0>0|3|6|4" />
        <i3dMapping id="feederBelt" node="0>0|3|6|5" />
        <i3dMapping id="pickupNode" node="0>0|3|6|6" />
        <i3dMapping id="baleTriggerArm" node="0>0|3|6|7" />
        <i3dMapping id="feederEffect" node="0>0|3|6|8" />
        <i3dMapping id="mainArmHydraulic" node="0>0|3|7" />
        <i3dMapping id="mainArmHydraulicPunch" node="0>0|3|7|0" />
        <i3dMapping id="steeringBar" node="0>0|3|8" />
        <i3dMapping id="steeringBarLeftRef" node="0>0|3|8|0" />
        <i3dMapping id="steeringBarRightRef" node="0>0|3|8|1" />
        <i3dMapping id="rotationPartBack" node="0>0|3|9" />
        <i3dMapping id="rotationPartFront" node="0>0|3|10" />
        <i3dMapping id="belt01" node="0>0|3|11" />
        <i3dMapping id="belt02" node="0>0|3|12" />
        <i3dMapping id="doorLeft" node="0>0|3|13|0" />
        <i3dMapping id="doorRight" node="0>0|3|14|0" />
        <i3dMapping id="exitPoint" node="0>0|4" />
        <i3dMapping id="licensePlateBack" node="0>0|5" />
        <i3dMapping id="tipOcclusionAreaStart" node="0>0|6|0" />
        <i3dMapping id="tipOcclusionAreaWidth" node="0>0|6|1" />
        <i3dMapping id="tipOcclusionAreaHeight" node="0>0|6|2" />
        <i3dMapping id="seat" node="0>0|7|0" />
        <i3dMapping id="frontloaderJoystick" node="0>0|7|0|0" />
        <i3dMapping id="playerRightHandTarget" node="0>0|7|0|0|0" />
        <i3dMapping id="interiorGlow02_decals" node="0>0|7|0|0|1" />
        <i3dMapping id="playerSkin" node="0>0|7|0|1" />
        <i3dMapping id="interiorGlow01_decals" node="0>0|7|0|2|0" />
        <i3dMapping id="iconHazards_decals" node="0>0|7|0|2|1" />
        <i3dMapping id="iconWorklightFront_decals" node="0>0|7|0|2|2" />
        <i3dMapping id="steeringWheel" node="0>0|7|1|0|0|0" />
        <i3dMapping id="playerLeftHandTarget" node="0>0|7|1|0|0|0|0" />
        <i3dMapping id="intetior_decal1" node="0>0|7|1|0|1" />
        <i3dMapping id="ignitionKey" node="0>0|7|1|0|2|0" />
        <i3dMapping id="gasPedal" node="0>0|7|2|0|0" />
        <i3dMapping id="playerRightFootTargetGas" node="0>0|7|2|0|0|0" />
        <i3dMapping id="brakePedal" node="0>0|7|2|1|0" />
        <i3dMapping id="playerRightFootTargetBrake" node="0>0|7|2|1|0|0" />
        <i3dMapping id="playerRightFootTarget" node="0>0|7|3|0" />
        <i3dMapping id="playerLeftFootTarget" node="0>0|7|3|1" />
        <i3dMapping id="mirrorLeftBig_decal" node="0>0|7|4|0" />
        <i3dMapping id="mirrorRightBig_decal" node="0>0|7|4|1" />
        <i3dMapping id="interiorGlow03_decals" node="0>0|7|5|0" />
        <i3dMapping id="interiorScreenLight" node="0>0|7|6" />
        <i3dMapping id="display01" node="0>0|7|7|0" />
        <i3dMapping id="numbers" node="0>0|7|7|1" />
        <i3dMapping id="numbersWeight" node="0>0|7|7|1|0" />
        <i3dMapping id="wiperFrontArm01" node="0>0|7|8|0" />
        <i3dMapping id="wiperFront" node="0>0|7|8|0|0" />
        <i3dMapping id="wiperFrontArm02" node="0>0|7|8|1" />
        <i3dMapping id="wiperSideArm01" node="0>0|7|8|2" />
        <i3dMapping id="wiperSide" node="0>0|7|8|2|0" />
        <i3dMapping id="wiperSideArm02" node="0>0|7|8|3" />
        <i3dMapping id="wiperTopArm01" node="0>0|7|8|4" />
        <i3dMapping id="wiperTop" node="0>0|7|8|4|0|0" />
        <i3dMapping id="wiperTopArm02" node="0>0|7|8|5" />
        <i3dMapping id="dischargeNodeLeft" node="0>0|8|0" />
        <i3dMapping id="dischargeNodeRight" node="0>0|8|1" />
        <i3dMapping id="baleTriggerUnit" node="0>0|8|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|8|3" />
        <i3dMapping id="fillVolume" node="0>0|8|4" />
        <i3dMapping id="loadInfo" node="0>0|8|5" />
        <i3dMapping id="wheelChock02" node="0>0|9|0" />
        <i3dMapping id="chockSupport1" node="0>0|9|1" />
        <i3dMapping id="wheelChock01" node="0>0|9|2" />
        <i3dMapping id="chockSupport" node="0>0|9|3" />
        <i3dMapping id="camera_01" node="0>0|9|4" />
        <i3dMapping id="unloadEffectLeft" node="0>0|10|0" />
        <i3dMapping id="unloadEffectRight" node="0>0|10|1" />
        <i3dMapping id="rubberLeftJoint" node="0>0|10|2" />
        <i3dMapping id="rubberRightJoint" node="0>0|10|3" />
        <i3dMapping id="exhaustParticle1" node="0>0|11" />
        <i3dMapping id="logo_decals" node="0>0|12|0" />
        <i3dMapping id="anim_lp" node="0>0|12|1" />
    </i3dMappings>
</vehicle>
