﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../bin/shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>550</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>$data/vehicles/abi/waterTrailer550/store_waterTrailer550.png</image>
        <price>3000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ABI</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0.235 0</shopTranslationOffset>
        <shopRotationOffset>0.27 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1099776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>211200</indexBufferMemoryUsage>
        <textureMemoryUsage>1114112</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_waterTrailer</typeDesc>
        <filename>$data/vehicles/abi/waterTrailer550/waterTrailer550.i3d</filename>
        <size width="2.5" length="4.3" height="3" lengthOffset="0.4"/>
        <components maxMass="2700">
            <component centerOfMass="0 0.65 -0.3" solverIterationCount="10" mass="464" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/275_65R18.xml" isLeft="true" hasTireTracks="true" hasParticles="true" configId="rimsPickup06">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.2" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="6" suspTravel="0.12" spring="26" damper="20" yOffset="-0.015" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/275_65R18.xml" isLeft="false" hasTireTracks="true" hasParticles="true" configId="rimsPickup06">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.2" repr="wheelRight" forcePointRatio="0.3" initialCompression="6" suspTravel="0.12" spring="26" damper="20" yOffset="-0.015" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor>SHARED_WHITE2</rimColor>
    </wheels>

    <rimColorConfigurations useDefaultColors="false" >
        <rimColorConfiguration name="$l10n_ui_colorWhite"   color="SHARED_WHITE2" material="0" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorGrey" color="SHARED_WHITE1" material="18" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorBlack"   color="SHARED_DA_METAL_BLACK" material="0" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorChrome"  color="SHARED_WHITE2" material="3" price="2000"/>
    </rimColorConfigurations>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.5" />
        </inputAttacherJoints>
        <brakeForce force="0.11" maxForce="0.3" maxForceMass="2600"/>
        <support animationName="moveSupport" />
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.06 0.26 0.09 0.15"/>
    </licensePlates>

    <lights>
        <sharedLight linkNode="plateNumberLight01" filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" />

        <realLights>
            <high>
                <light node="licensePlateLightHigh" lightTypes="0"/>
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.25" endTime="0.5" startTrans="0 0.07 0" endTrans="0 -0.23 0" />
            <part node="supportWinder" startTime="0.25" endTime="0.5" startRot="0 0 0" endRot="0 0 -720" />
            <part node="supportHolder" startTime="0" endTime="0.25" startRot="0 0 -90" endRot="0 0 0" />

            <sound template="slideOpen" startTime="0.01" direction="1"  volumeScale="1.5" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="slideOpen" startTime="0.49" direction="-1" volumeScale="1.5" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.14"                volumeScale="1.1" pitchScale="1.1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="water" capacity="2082" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="300" fillUnitIndex="1" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <fillTriggerVehicle triggerNode="waterTrigger" fillUnitIndex="1" litersPerSecond="300"/>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="300" fillNode="agi550_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <foliageBending>
        <bendingNode minX="-1.02" maxX="1.02" minZ="-1.6" maxZ="0.55" yOffset="0.3" />
        <bendingNode minX="-0.6" maxX="0.6" minZ="0.55" maxZ="1.4" yOffset="0.3" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="1.4" maxZ="2.1" yOffset="0.3" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.03" height="1.8" length="3.2" lengthOffset="0.7"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="agi550_main_component1" node="0>" />
        <i3dMapping id="waterTrailer550_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportHolder" node="0>0|0|1|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0|0|0" />
        <i3dMapping id="supportWinder" node="0>0|0|1|0|1|0" />
        <i3dMapping id="plateNumberLight01" node="0>0|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|1" />
        <i3dMapping id="wheelLeft" node="0>0|2|0" />
        <i3dMapping id="wheelRight" node="0>0|2|1" />
        <i3dMapping id="dischargeNode" node="0>0|3|0" />
        <i3dMapping id="dischargeTrigger" node="0>0|3|1" />
        <i3dMapping id="waterTrigger" node="0>0|4" />
        <i3dMapping id="exactFillRootNode" node="0>0|5" />
        <i3dMapping id="licensePlateBack" node="0>0|7" />
    </i3dMappings>
</vehicle>
