﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer" 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>MKS 8</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>$data/vehicles/lizard/mks8/store_mks8.png</image>
        <price>25000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>animals</category>
        <shopTranslationOffset>0 -0.077 0</shopTranslationOffset>
        <shopRotationOffset>0.026 0 0</shopRotationOffset>
        <shopLoadingDelay initial="0.35"/>
        <vertexBufferMemoryUsage>1284096</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>218880</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>$data/vehicles/lizard/mks8/mks8.i3d</filename>
        <size width="3.2" length="7.5" lengthOffset="1.05"/>
        <components maxMass="13000">
            <component centerOfMass="0 0.6 -0.15"  solverIterationCount="10" mass="2700"/>
            <component centerOfMass="0 -0.15 0.0" solverIterationCount="10" mass="1500"/>
            <component                            solverIterationCount="10" mass="250"/>
            <joint component1="1" component2="2" node="componentJointFront" rotLimit="0 120 0" transLimit="0 0 0" />
            <joint component1="2" component2="3" node="componentJointDrawbar" rotLimit="0 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" configId="truckTrailer02" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="1.5" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="30" suspTravel="0.05" spring="92" damper="30" frictionScale="2" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" configId="truckTrailer02" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="1.5" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="30" suspTravel="0.05" spring="92" damper="30" frictionScale="2" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" configId="truckTrailer02" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="0.9" repr="wheelBackLeft"   forcePointRatio="0.5" initialCompression="15" suspTravel="0.06" spring="84" damper="30" frictionScale="2" />
                        <wheelChock/>
                        <wheelChock isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" configId="truckTrailer02" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="0.9" repr="wheelBackRight"  forcePointRatio="0.5" initialCompression="15" suspTravel="0.06" spring="84" damper="30" frictionScale="2" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" rootNode="mks8_drawbar_component3" attacherHeight="0.874" />
        </inputAttacherJoints>
        <brakeForce force="0.4" maxForce="1.2" maxForceMass="13000"/>
        <support animationName="moveSupport" />
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="ELONGATED" placementArea="0.06 0.26 0.09 0.26"/>
    </licensePlates>

    <lights>
        <sharedLight linkNode="rear5ChamberLight_02_Left"  filename="$data/shared/assets/lights/lizard/rearLight16_left.xml" />
        <sharedLight linkNode="rear5ChamberLight_02_Right" filename="$data/shared/assets/lights/lizard/rearLight16_right.xml" />
        <sharedLight linkNode="sideMarker_01Left"          filename="$data/shared/assets/lights/lizard/sideMarker01_left.xml" />
        <sharedLight linkNode="sideMarker_01Right"         filename="$data/shared/assets/lights/lizard/sideMarker01_right.xml" />
        <sharedLight linkNode="plateNumberLight01_left"    filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" lightTypes="0"/>
        <sharedLight linkNode="plateNumberLight01_right"   filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_01"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_02"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_03"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_04"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_05"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_06"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_07"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>
        <sharedLight linkNode="sideMarker16Orange_08"      filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml" lightTypes="0"/>

        <realLights>
            <high>
                <light node="backLightsHigh1"       lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <brakeLight node="backLightsHigh1"/>
                <turnLightLeft  node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>
    </lights>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|3" linkNode="airYellowConnector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|2" linkNode="airRedConnector"    filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>


    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="electric"  length="0.8" diameter="0.016" straighteningFactor="0.5" isTwoPointHose="true">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleRed"  node="hydraulicIn01"  length="0.8" diameter="0.016" straighteningFactor="0.5" isTwoPointHose="true">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="hydraulicOut01" length="0.7" diameter="0.016" straighteningFactor="0.5" isTwoPointHose="true">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <animations>
        <animation name="moveSupport">
            <part componentJointIndex="2" startTime="0.0" endTime="0.15" startRotLimit="50 0 0" endRotLimit="8 0 0" />
        </animation>
    </animations>

    <cylindered>
        <movingParts>
            <movingPart node="spring" referencePoint="springRef" referenceFrame="springRef" scaleZ="true" isActiveDirty="true" maxUpdateDistance="60"/>
        </movingParts>
        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="mks8_main_component1"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="MILK WATER LIQUIDFERTILIZER HERBICIDE" capacity="8000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="350"/>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="450" fillUnitIndex="1" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="450" fillNode="mks8_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-2.3" maxZ="2.3" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="mks8_mat" baseNode="mks8_vis">
            <shaderParameter name="colorMat0" value="SHARED_WHITE2"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations>
        <material name="mks8_mat" shaderParameter="colorMat0" />
        <baseMaterialConfiguration name="$l10n_ui_colorStainlessSteel" color="SHARED_WHITE2" material="3"/>
        <baseMaterialConfiguration name="$l10n_ui_colorChrome"         color="SHARED_WHITE2" material="2" price="4000" uiColor="SHARED_GREY1"/>
        <baseMaterialConfiguration name="$l10n_ui_colorBlack"          color="SHARED_BLACK2" material="0"/>
    </baseMaterialConfigurations>

    <rimColorConfigurations useDefaultColors="false" >
        <rimColorConfiguration name="$l10n_ui_colorChrome" color="SHARED_WHITE2" material="3" price="2000"/>
        <rimColorConfiguration name="$l10n_ui_colorSilver" color="SHARED_WHITE1" material="18" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorWhite"  color="SHARED_WHITE2" material="0" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorBlack"  color="SHARED_DA_METAL_BLACK" material="0" price="0"/>
    </rimColorConfigurations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.2" height="3.5" length="4.7" lengthOffset="-1.5" hasCollision="false"/>
        <agentAttachment jointNode="componentJointFront" rotCenterWheelIndices="3 4" width="2.2" height="1.2" length="1" lengthOffset="2.9"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="mks8_main_component1" node="0>" />
        <i3dMapping id="mks8_vis" node="0>0" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|0" />
        <i3dMapping id="wheelBackRight" node="0>0|0|1" />
        <i3dMapping id="rear5ChamberLight_02_Left" node="0>0|1|0|0" />
        <i3dMapping id="rear5ChamberLight_02_Right" node="0>0|1|0|1" />
        <i3dMapping id="sideMarker_01Left" node="0>0|1|0|2" />
        <i3dMapping id="sideMarker_01Right" node="0>0|1|0|3" />
        <i3dMapping id="plateNumberLight01_left" node="0>0|1|0|4" />
        <i3dMapping id="plateNumberLight01_right" node="0>0|1|0|5" />
        <i3dMapping id="sideMarker16Orange_01" node="0>0|1|0|6" />
        <i3dMapping id="sideMarker16Orange_02" node="0>0|1|0|7" />
        <i3dMapping id="sideMarker16Orange_03" node="0>0|1|0|8" />
        <i3dMapping id="sideMarker16Orange_04" node="0>0|1|0|9" />
        <i3dMapping id="sideMarker16Orange_05" node="0>0|1|0|10" />
        <i3dMapping id="sideMarker16Orange_06" node="0>0|1|0|11" />
        <i3dMapping id="sideMarker16Orange_07" node="0>0|1|0|12" />
        <i3dMapping id="sideMarker16Orange_08" node="0>0|1|0|13" />
        <i3dMapping id="turnLightLeftBack" node="0>0|1|1|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|1|1|1" />
        <i3dMapping id="backLightsHigh1" node="0>0|1|2|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|2|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|1|3|0" />
        <i3dMapping id="licensePlateBack" node="0>0|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|0" />
        <i3dMapping id="fillTrigger" node="0>0|3|1" />
        <i3dMapping id="dischargeNode" node="0>0|3|2" />
        <i3dMapping id="dischargeTrigger" node="0>0|3|3" />
        <i3dMapping id="mks8_dolly_component2" node="1>" />
        <i3dMapping id="wheelFrontLeft" node="1>0" />
        <i3dMapping id="wheelFrontRight" node="1>1" />
        <i3dMapping id="componentJointFront" node="1>2" />
        <i3dMapping id="dolly_vis" node="1>3" />
        <i3dMapping id="spring" node="1>4" />
        <i3dMapping id="mks8_drawbar_component3" node="2>" />
        <i3dMapping id="componentJointDrawbar" node="2>0" />
        <i3dMapping id="electric" node="2>1|0" />
        <i3dMapping id="electric_detached" node="2>1|0|0" />
        <i3dMapping id="electric_connector" node="2>1|0|0|0" />
        <i3dMapping id="hydraulicIn01" node="2>1|1" />
        <i3dMapping id="hydraulicOut01_detached" node="2>1|1|0" />
        <i3dMapping id="airRedConnector" node="2>1|1|0|0" />
        <i3dMapping id="hydraulicOut01" node="2>1|2" />
        <i3dMapping id="hydraulicIn01_detached" node="2>1|2|0" />
        <i3dMapping id="airYellowConnector" node="2>1|2|0|0" />
        <i3dMapping id="drawbar_vis" node="2>2" />
        <i3dMapping id="attacherJoint" node="2>2|0" />
        <i3dMapping id="springRef" node="2>2|1" />
    </i3dMappings>
</vehicle>
