﻿<?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>AQUATRANS 7300 S</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <storePacks>
            <storePack>STARTER_ANIMALS</storePack>
        </storePacks>
        <image>$data/vehicles/joskin/aquaTrans7300/store_aquaTrans7300.png</image>
        <price>9500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOSKIN</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0.01 0</shopTranslationOffset>
        <shopRotationOffset>-0.455 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>816896</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>130560</indexBufferMemoryUsage>
        <textureMemoryUsage>983040</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_waterTrailer</typeDesc>
        <filename>$data/vehicles/joskin/aquaTrans7300/aquaTrans7300.i3d</filename>
        <size width="3" length="7"/>
        <components maxMass="9000">
            <component centerOfMass="0 0.65 -0.75" solverIterationCount="10" mass="1100" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/400_55R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.5" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="8" suspTravel="0.12" spring="44" damper="50" />
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/400_55R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.5" repr="wheelRight" forcePointRatio="0.3" initialCompression="8" suspTravel="0.12" spring="44" damper="50" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="500" brand="TRELLEBORG" saveId="TRELLEBORG_BROAD">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T404/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="500" brand="BKT" saveId="BKT_BROAD">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/bkt/ridemaxFL693M/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="500" brand="VREDESTEIN" saveId="VREDESTEIN_BROAD">
                <wheels baseConfig="TRELLEBORG_DEFAULT">
                    <wheel filename="$data/shared/wheels/tires/vredestein/flotationTrac/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                        <wheelChock/>
                        <wheelChock/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/vredestein/flotationTrac/500_45R22_5.xml">
                        <physics yOffset="0.01"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor>JOSKIN_YELLOW1</rimColor>

        <hubs>
            <color0>JOSKIN_GREEN1</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.285 0.285 0.285" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.285 0.285 0.285" />
        </hubs>
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport01" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport02" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
    </dynamicallyLoadedParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.6" />
        </inputAttacherJoints>
        <brakeForce force="0.3" maxForce="1.2" maxForceMass="8500"/>
        <support animationName="moveSupport" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" adapterNode="electric_detached" length="1.4" diameter="0.01" straighteningFactor="1">
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <lights>
        <sharedLight linkNode="rearLight33_left"      filename="$data/shared/assets/lights/lizard/rearLight33_left.xml" />
        <sharedLight linkNode="rearLight33_right"     filename="$data/shared/assets/lights/lizard/rearLight33_right.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="sideMarker05Orange_05" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange_06" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="bigTriangle"           filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" duration="0.5" startTrans="0.131 0.591 1.505" endTrans="0.131 0.29 1.499" />

            <sound template="clackVar1" startTime="0.14" volumeScale="1.3" 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="7300" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="520" fillUnitIndex="1" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <fillTriggerVehicle triggerNode="waterTrigger" fillUnitIndex="1" litersPerSecond="500"/>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="400" fillNode="aquaTrans_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.2" height="2.5" length="4.3" lengthOffset="0.85"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-2.9" maxZ="-1.0" yOffset="0.6" />
        <bendingNode minX="-0.50" maxX="0.50" minZ="-1.1" maxZ="1.6" yOffset="0.6" />
        <bendingNode minX="-0.30" maxX="0.30" minZ="1.6" maxZ="2.85" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="aquaTrans7300XL_mat" baseNode="aquaTrans7300XL_vis">
            <shaderParameter name="colorMat0" value="JOSKIN_GREEN1"/>
            <shaderParameter name="colorMat1" value="JOSKIN_RED1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="aquaTrans_main_component1" node="0>" />
        <i3dMapping id="aquaTrans7300XL_vis" node="0>0" />
        <i3dMapping id="wheelLeft" node="0>0|0|0" />
        <i3dMapping id="wheelRight" node="0>0|0|1" />
        <i3dMapping id="chockSupport01" node="0>0|1|0" />
        <i3dMapping id="chockSupport02" node="0>0|1|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|2" />
        <i3dMapping id="wheelChock02" node="0>0|1|3" />
        <i3dMapping id="attacherJoint" node="0>0|2" />
        <i3dMapping id="rearLight33_left" node="0>0|3|0|0" />
        <i3dMapping id="rearLight33_right" node="0>0|3|0|1" />
        <i3dMapping id="sideMarker05Orange_01" node="0>0|3|0|2" />
        <i3dMapping id="sideMarker05Orange_02" node="0>0|3|0|3" />
        <i3dMapping id="sideMarker05Orange_03" node="0>0|3|0|4" />
        <i3dMapping id="sideMarker05Orange_04" node="0>0|3|0|5" />
        <i3dMapping id="sideMarker05Orange_05" node="0>0|3|0|6" />
        <i3dMapping id="sideMarker05Orange_06" node="0>0|3|0|7" />
        <i3dMapping id="bigTriangle" node="0>0|3|0|8" />
        <i3dMapping id="backLightsHigh" node="0>0|3|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|3|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|3|2|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|3|3|0" />
        <i3dMapping id="supportArm" node="0>0|4" />
        <i3dMapping id="exactFillRootNode" node="0>0|5" />
        <i3dMapping id="waterTrigger" node="0>0|6" />
        <i3dMapping id="dischargeNode" node="0>0|7|0" />
        <i3dMapping id="dischargeTrigger" node="0>0|7|1" />
        <i3dMapping id="electric_detached" node="0>0|10" />
        <i3dMapping id="electric" node="0>0|11" />
    </i3dMappings>
</vehicle>
