﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fuelTrailer" 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>FST 990</name>
        <specs>
            <combination xmlFilename="$data/vehicles/lizard/pickup1986/pickup1986.xml" />
            <combination xmlFilename="$data/vehicles/lizard/pickup2017/pickup2017.xml" />
        </specs>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>$data/vehicles/thunderCreek/fst990/store_fst990.png</image>
        <price>29500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>THUNDERCREEK</brand>
        <category>misc</category>
        <shopTranslationOffset>0 0.071 0</shopTranslationOffset>
        <shopRotationOffset>-0.102 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>385536</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>63232</indexBufferMemoryUsage>
        <textureMemoryUsage>1507328</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>$data/vehicles/thunderCreek/fst990/fst990.i3d</filename>
        <size width="2.5" length="6.5" />
        <components maxMass="6000">
            <component centerOfMass="0 0.55 -0.5" solverIterationCount="10" mass="1828" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/255_70R17.xml" configId="trailer" isLeft="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.5" repr="wheelFrontLeft"  forcePointRatio="0.35"  initialCompression="20" suspTravel="0.15" spring="14" damper="50" frictionScale="2"/>
                        <tire isCareWheel="false"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/255_70R17.xml" configId="trailer" isLeft="false" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.5" repr="wheelFrontRight" forcePointRatio="0.35"  initialCompression="20" suspTravel="0.15" spring="14" damper="50" frictionScale="2"/>
                        <tire isCareWheel="false"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/255_70R17.xml" configId="trailer" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.5" repr="wheelBackLeft"   forcePointRatio="0.35"  initialCompression="20" suspTravel="0.15" spring="14" damper="50" frictionScale="2"/>
                        <tire isCareWheel="false"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/255_70R17.xml" configId="trailer" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.5" repr="wheelBackRight"  forcePointRatio="0.35"  initialCompression="20" suspTravel="0.15" spring="14" damper="50" frictionScale="2"/>
                        <tire isCareWheel="false"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="NOKIAN" saveId="NOKIAN_DEFAULT">
                <wheels baseConfig="CONTINENTAL_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/nokian/TRI2/250_75R16.xml">
                        <physics yOffset="-0.004"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/nokian/TRI2/250_75R16.xml">
                        <physics yOffset="-0.004"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/nokian/TRI2/250_75R16.xml">
                        <physics yOffset="-0.004"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/nokian/TRI2/250_75R16.xml">
                        <physics yOffset="-0.004"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.49"/>
            <inputAttacherJoint node="attacherJointToolbar" jointType="implement" lowerRotLimitScale="3 3 3" upperRotLimitScale="3 3 3" attacherHeight="0.49" needsToolbar="true" allowsLowering="false">
                <distanceToGround lower="0.49" upper="0.49" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.2" maxForce="0.5" maxForceMass="5700"/>
        <airConsumer usage="0.3" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="1.2" diameter="0.01" straighteningFactor="1.5" />
    </connectionHoses>

    <lights>
        <sharedLight linkNode="rearLight25_01"        filename="$data/shared/assets/lights/lizard/rearLight25.xml" />
        <sharedLight linkNode="rearLight25_02"        filename="$data/shared/assets/lights/lizard/rearLight25.xml" />
        <sharedLight linkNode="sideMarker05Orange_01" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange_02" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange_03" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange_04" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="plateNumberLight01"    filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh"        lightTypes="0" />
                <light node="licensePlateLightHigh" lightTypes="0" />
                <brakeLight node="backLightsHigh" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="defaultLight_static" lightTypes="0" intensity="25" />
        </defaultLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlate" position="BACK" preferedType="SQUARISH" placementArea="0.07 0.18 0.14 0.18"/>
    </licensePlates>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" endTime="0.6" startTrans="0.102 0.344 2.189" endTrans="0.102 -0.075 2.189" />

            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="1" pitchScale="1" linkNode="attacherJoint"/>
        </animation>
        <animation name="fillLevel">
            <part node="fillLevelMarker" startTime="0" endTime="1" startRot="0 0 0" endRot="-100 0 0" />
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="diesel" capacity="3750" >
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevel" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fuelTrigger" fillUnitIndex="1" litersPerSecond="30"/>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeTrigger" emptySpeed="20" fillUnitIndex="1" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <tipOccluder>
        <occlusionArea start="tipOcclusionArea1Start" width="tipOcclusionArea1Width" height="tipOcclusionArea1Height" />
        <occlusionArea start="tipOcclusionArea2Start" width="tipOcclusionArea2Width" height="tipOcclusionArea2Height" />
        <occlusionArea start="tipOcclusionArea3Start" width="tipOcclusionArea3Width" height="tipOcclusionArea3Height" />
    </tipOccluder>

    <foliageBending>
        <bendingNode minX="-0.8" maxX="0.8" minZ="-3.0" maxZ="2.6" yOffset="0.4" />
        <bendingNode minX="-1.1" maxX="1.1" minZ="-1.9" maxZ="0.1" yOffset="0.4" />
    </foliageBending>

    <baseMaterial>
        <material name="fst990_mat" baseNode="fst990_vis">
            <shaderParameter name="colorMat0" value="THUNDERCREEK_BLUE" material="0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations useDefaultColors="true">
        <material name="fst990_mat" shaderParameter="colorMat0"/>
        <baseMaterialConfiguration name="$l10n_ui_colorBlue" color="THUNDERCREEK_BLUE"/>
    </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="1" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorBlack"  color="SHARED_DA_METAL_BLACK" material="1" price="0"/>
    </rimColorConfigurations>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.1" height="2" length="5.5" lengthOffset="0.7"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="fst990_main_component1" node="0>" />
        <i3dMapping id="fst990_vis" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|0|3" />
        <i3dMapping id="attacherJoint" node="0>0|1|0" />
        <i3dMapping id="attacherJointToolbar" node="0>0|1|1" />
        <i3dMapping id="electric" node="0>0|1|2" />
        <i3dMapping id="supportArm" node="0>0|1|3" />
        <i3dMapping id="rearLight25_01" node="0>0|2|0|0" />
        <i3dMapping id="rearLight25_02" node="0>0|2|0|1" />
        <i3dMapping id="sideMarker05Orange_01" node="0>0|2|0|2" />
        <i3dMapping id="sideMarker05Orange_02" node="0>0|2|0|3" />
        <i3dMapping id="sideMarker05Orange_03" node="0>0|2|0|4" />
        <i3dMapping id="sideMarker05Orange_04" node="0>0|2|0|5" />
        <i3dMapping id="plateNumberLight01" node="0>0|2|0|6" />
        <i3dMapping id="defaultLight_static" node="0>0|2|1|0" />
        <i3dMapping id="backLights" node="0>0|2|2" />
        <i3dMapping id="backLightsHigh" node="0>0|2|2|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|2|1" />
        <i3dMapping id="fillLevelMarker" node="0>0|3" />
        <i3dMapping id="licensePlate" node="0>0|4" />
        <i3dMapping id="fuelTrigger" node="0>0|5" />
        <i3dMapping id="dischargeTrigger" node="0>0|6" />
        <i3dMapping id="tipOcclusionArea1Start" node="0>0|7|0|0" />
        <i3dMapping id="tipOcclusionArea1Width" node="0>0|7|0|1" />
        <i3dMapping id="tipOcclusionArea1Height" node="0>0|7|0|2" />
        <i3dMapping id="tipOcclusionArea2Start" node="0>0|7|1|0" />
        <i3dMapping id="tipOcclusionArea2Width" node="0>0|7|1|1" />
        <i3dMapping id="tipOcclusionArea2Height" node="0>0|7|1|2" />
        <i3dMapping id="tipOcclusionArea3Start" node="0>0|7|2|0" />
        <i3dMapping id="tipOcclusionArea3Width" node="0>0|7|2|1" />
        <i3dMapping id="tipOcclusionArea3Height" node="0>0|7|2|2" />
    </i3dMappings>
</vehicle>
