﻿<?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>1600</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>$data/vehicles/abi/waterTrailer1600/store_waterTrailer1600.png</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ABI</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0.015 0</shopTranslationOffset>
        <shopRotationOffset>0.396 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1665536</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>325632</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_waterTrailer</typeDesc>
        <filename>$data/vehicles/abi/waterTrailer1600/waterTrailer1600.i3d</filename>
        <size width="3.2" length="5.5" height="3.3" lengthOffset="0.2"/>
        <components maxMass="8150">
            <component centerOfMass="0 0.65 -0.3" solverIterationCount="10" mass="925" />
        </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="wheelFrontLeft"  forcePointRatio="0.3" initialCompression="6" suspTravel="0.08" spring="38" damper="20" />
                    </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="wheelFrontRight" forcePointRatio="0.3" initialCompression="6" suspTravel="0.08" spring="38" damper="20" />
                    </wheel>
                    <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="wheelBackLeft"   forcePointRatio="0.3" initialCompression="6" suspTravel="0.08" spring="38" damper="20" />
                    </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="wheelBackRight"  forcePointRatio="0.3" initialCompression="6" suspTravel="0.08" spring="38" damper="20" />
                    </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.565" />
        </inputAttacherJoints>
        <brakeForce force="0.1" maxForce="0.6" maxForceMass="7050"/>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_detached" length="1.0" diameter="0.018" color="0.02 0.02 0.02 5">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.08 0.15 0.05 0.075"/>
    </licensePlates>

    <lights>
        <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="lights_staticGlass"  lightTypes="0" />
        </defaultLights>

        <brakeLights>
            <brakeLight node="lights_staticGlass"/>
        </brakeLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic01" intensity="150"/>
            <turnLightRight shaderNode="turnlightRightStatic01" intensity="150"/>
        </turnLights>
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.25" endTime="0.5" startTrans="0 0.07 0" endTrans="0 0 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.15" direction="1"  volumeScale="1.5" pitchScale="1.7" linkNode="attacherJoint"/>
            <sound template="slideOpen" startTime="0.49" direction="-1" volumeScale="1.5" pitchScale="1.7" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.14" direction="-1" volumeScale="1"   pitchScale="1.3" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="water" capacity="6056" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="500" 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="500"/>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="500" fillNode="agi1600_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.75" height="2.2" length="4.8" lengthOffset="0.6"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-2.5" maxZ="1.3" yOffset="0.45" />
        <bendingNode minX="-0.80" maxX="0.80" minZ="1.3" maxZ="1.9" yOffset="0.45" />
        <bendingNode minX="-0.40" maxX="0.40" minZ="1.9" maxZ="2.6" yOffset="0.45" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="agi1600_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportHolder" node="0>0|0|1|0" />
        <i3dMapping id="supportWinder" node="0>0|0|1|0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0|1|0" />
        <i3dMapping id="electric" node="0>0|0|2" />
        <i3dMapping id="electric_detached" node="0>0|0|3" />
        <i3dMapping id="wheelFrontLeft" node="0>0|1|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|1|2" />
        <i3dMapping id="wheelBackRight" node="0>0|1|3" />
        <i3dMapping id="lights_static" node="0>0|2|0|0" />
        <i3dMapping id="lights_staticGlass" node="0>0|2|0|1" />
        <i3dMapping id="turnlightLeftStatic01" node="0>0|2|0|2" />
        <i3dMapping id="turnlightRightStatic01" node="0>0|2|0|3" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|1|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|1|1" />
        <i3dMapping id="backLightsHigh" node="0>0|2|2|0" />
        <i3dMapping id="dischargeNode" node="0>0|3|0" />
        <i3dMapping id="dischargeTrigger" node="0>0|3|1" />
        <i3dMapping id="waterTrigger" node="0>0|3|2" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|3" />
        <i3dMapping id="licensePlateBack" node="0>0|5" />
    </i3dMappings>
</vehicle>
