<?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>LT 450</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>store_liquidTank.png</image>
        <price>10500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>trailersChangingSystem</category>
        <shopTranslationOffset>0 0.037 0</shopTranslationOffset>
        <shopRotationOffset>0.003 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>354560</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>88064</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>liquidTank.i3d</filename>
        <size width="5.51" length="9.11" height="4.52"/>
        <components maxMass="5500">
            <component centerOfMass="0 0.4 0" solverIterationCount="30" mass="4500"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.6"/>
        <mapHotspot type="TRAILER" />
    </base>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attachmentJoint" jointType="CT550Joint" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" delayedOnAttach="false"/>
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="0>0|0|2|0|0"      startTime="0"     endTime="1"    startTrans="-0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|0|0|0"    startTime="0"     endTime="1"    startRot="82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|1|0"      startTime="0"     endTime="1"    startTrans="0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|1|0|0"    startTime="0"     endTime="1"    startRot="82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|2|0"      startTime="0"     endTime="1"    startTrans="0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|2|0|0"    startTime="0"     endTime="1"    startRot="-82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|3|0"      startTime="0"     endTime="1"    startTrans="-0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|3|0|0"    startTime="0"     endTime="1"    startRot="-82.867 0 0" endRot="0 0 0"/>
			
            <part node="bolts"            startTime="0"     endTime="0.01" visibility="false" />
            <part node="bolts"            startTime="0.01"  endTime="0.02" visibility="true" />
            <part node="bolts"            startTime="0"     endTime="0.01" visibility="true" />
            <part node="bolts"            startTime="0.01"  endTime="0.02" visibility="false" />
            <part node="supports"         startTime="0"     endTime="0.01" visibility="false" />
            <part node="supports"         startTime="0.01"  endTime="0.02" visibility="true" />
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="DIESEL DIGESTATE LIQUIDMANURE WATER BUFFALOMILK GOATMILK MILK LIQUIDFERTILIZER HERBICIDE SILAGE_ADDITIVE CANOLA_OIL SUNFLOWER_OIL OLIVE_OIL GRAPEJUICE BUFFALOMILK" capacity="45000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="1000"/>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="1500" 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="fillNode">
        <sounds>
            <refill template="defaultRefuelSound" linkNode="0>" />
        </sounds>
    </waterTrailer>

	<baseColorConfigurations useDefaultColors="true">
		<baseColorConfiguration materialTemplateName="CT_MAINCOLOR" price="100"/>
        <baseColorConfiguration materialTemplateName="chrome"/>
        <baseColorConfiguration materialTemplateName="silverScratched"/>
        <baseColorConfiguration materialTemplateName="SHARED_WHITE2"/>
        <baseColorConfiguration materialTemplateName="SHARED_BLACK2"/>
		<material materialSlotName="LT450_mainColor_slot"/>
    </baseColorConfigurations>
	
	<designColorConfigurations useDefaultColors="true" title="$l10n_frameColor_configMat">
		<designColorConfiguration materialTemplateName="CT_FRAMECOLOR" price="100"/>
		<material materialSlotName="LT450_frameColor_slot"/>
    </designColorConfigurations>
	
	<foliageBending>
        <bendingNode minX="-1.887" maxX="1.887" minZ="-4.224" maxZ="4.644" yOffset="0.6" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attachmentJoint" width="5.51" length="8.72" height="3.67" lengthOffset="-0.5"/>
    </ai>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <!-- other -->
        <i3dMapping id="attachmentJoint" node="0>0|0|0" />
        <i3dMapping id="supports" node="0>0|0|2" />
        <i3dMapping id="bolts" node="0>0|0|1" />
		<!-- tank -->
        <i3dMapping id="exactFillRootNode" node="0>0|2|0" />
        <i3dMapping id="fillTrigger" node="0>0|2|1" />
        <i3dMapping id="dischargeNode" node="0>0|2|2" />
        <i3dMapping id="dischargeTrigger" node="0>0|2|3" />
        <i3dMapping id="fillNode" node="0>0|2|4" />
    </i3dMappings>
</vehicle>
