<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>Tank MAZ-4570</en>
            <ru>Бочка МАЗ-4570</ru>
		</name>
        <specs>
            <combination xmlFilename="MAZ_4570.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>store_tank.dds</image>
        <price>2500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAZ</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0.01 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>bochka.i3d</filename>
        <size width="3" length="5" height="3" lengthOffset="-1.7"/>
        <components>
            <component centerOfMass="0 0.7 -1" solverIterationCount="10" mass="1200"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
    </base>
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="trailerAttacherJointLow" jointType="trailerMAZ" upperRotationOffset="0"/>
			<distanceToGround lower="0.45" upper="1.0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" delayedOnAttach="false" detachAnimationTime="0.6"/>
    </attachable>
	<lights>
		<beaconLights>
            <beaconLight node="beaconLight01" filename="$data/shared/assets/beaconLights/lizard/beaconLight01.xml" />
        </beaconLights>	
	</lights>
    <animations>
        <animation name="moveSupport">
            <part node="podstavka" startTime="0" endTime="0.001" visibility="false"/>
            <part node="podstavka" startTime="0.001" endTime="0.002" visibility="true"/>
            <part node="tablichka_fuel_front" startTime="0" endTime="0.001" visibility="true"/>
            <part node="tablichka_fuel_front" startTime="0.001" endTime="0.002" visibility="false"/>
            <part node="nadramnikDoski" startTime="0" endTime="0.001" visibility="true"/>
            <part node="nadramnikDoski" startTime="0.001" endTime="0.002" visibility="false"/>
            <part node="col1Shape" startTime="0.0" endTime="0.6" startTrans="-1.5 1 0" endTrans="0 0 0"/>
            <part node="col2Shape" startTime="0.0" endTime="0.6" startTrans="1.5 1 0" endTrans="0 0 0"/>
        </animation>
    </animations>
    <configurationSets>
		<configurationSet name="$l10n_Diesel" price="2000">
            <configuration name="fillUnit"     index="2" />
        </configurationSet>
		<configurationSet name="$l10n_Milk" price="200">
            <configuration name="fillUnit"     index="1" />
        </configurationSet>
		<configurationSet name="$l10n_Water">
            <configuration name="fillUnit"     index="3" />
        </configurationSet>
    </configurationSets>
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
					<unloading width="7" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="MILK" capacity="5500">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                </fillUnits>
				<material name="parts4570_mat" shaderParameter="colorMat3" materialId="8" color="1 1 1"/>
				<objectChange node="toplivo" 			visibilityActive="false"/>
				<objectChange node="moloko" 			visibilityActive="true"/>
				<objectChange node="decal_milkTank" 	visibilityActive="true"/>
				<objectChange node="decal_waterTank" 	visibilityActive="false"/>
				<objectChange node="hoses_fuel" 		visibilityActive="false"/>
            </fillUnitConfiguration>
			<fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="DIESEL" capacity="5500">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                </fillUnits>
				<material name="parts4570_mat" shaderParameter="colorMat3" materialId="6" color="0.45 0.023 0.023"/>
				<objectChange node="toplivo" 			visibilityActive="true"/>
				<objectChange node="moloko" 			visibilityActive="false"/>
				<objectChange node="decal_milkTank" 	visibilityActive="false"/>
				<objectChange node="decal_waterTank" 	visibilityActive="false"/>
				<objectChange node="hoses_fuel" 		visibilityActive="true"/>
            </fillUnitConfiguration>
            <fillUnitConfiguration>
                <fillUnits>
					<unloading width="7" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="WATER LIQUIDFERTILIZER HERBICIDE DIGESTATE" capacity="5500">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                </fillUnits>
				<material name="parts4570_mat" shaderParameter="colorMat3" materialId="8" color="1 1 1"/>
				<objectChange node="toplivo" 			visibilityActive="false"/>
				<objectChange node="moloko" 			visibilityActive="true"/>
				<objectChange node="decal_milkTank" 	visibilityActive="false"/>
				<objectChange node="decal_waterTank" 	visibilityActive="true"/>
				<objectChange node="hoses_fuel" 		visibilityActive="false"/>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="450"/>
    <dischargeable>
		<dischargeableConfigurations>
			<dischargeableConfiguration>
				<dischargeNode node="dischargeNode1" emptySpeed="450" fillUnitIndex="1" allowAIDischarge="true">
					<info width="1.0" length="0.5" zOffset="0.4"/>
					<dischargeSound template="DEFAULT_REFUEL_SOUND"/>
					<trigger node="dischargeTrigger"/>
				</dischargeNode>
			</dischargeableConfiguration>
		</dischargeableConfigurations>
    </dischargeable>
    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="450" fillNode="0>">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>"/>
        </sounds>
    </waterTrailer>
	<baseMaterial>
        <material name="parts4570_mat" baseNode="toplivo">
            <shaderParameter name="colorMat3" value="0.45 0.023 0.023 6"/>
        </material>
    </baseMaterial>
    <ai>
        <agentAttachment width="2.5" length="5.0" height="3.0" lengthOffset="0.05"/>
    </ai>
	<foliageBending>
        <bendingNode minX="-0.4" maxX="0.4" minZ="-2.5" maxZ="0.6" yOffset="1.15"/>
    </foliageBending>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>
	<i3dMappings>
	  <i3dMapping id="trailerAttacherJointLow" node="0>0|0" />
	  <i3dMapping id="nadramnikDoski" node="0>0|1|0" />
	  <i3dMapping id="hoses_fuel" node="0>0|1|0|1" />
	  <i3dMapping id="podstavka" node="0>0|1|1" />
	  <i3dMapping id="col1Shape" node="0>0|1|2" />
	  <i3dMapping id="col2Shape" node="0>0|1|3" />
	  <i3dMapping id="exactFillRootNode" node="0>1|0" />
	  <i3dMapping id="fillTrigger" node="0>1|1" />
	  <i3dMapping id="dischargeNode" node="0>1|2" />
	  <i3dMapping id="dischargeNode1" node="0>1|4" />
	  <i3dMapping id="dischargeTriggerFuel" node="0>1|3" />
	  <i3dMapping id="dischargeTrigger" node="0>1|5" />
	  <i3dMapping id="toplivo" node="0>2|0" />
	  <i3dMapping id="beaconLight01" node="0>2|0|0" />
	  <i3dMapping id="tablichka_fuel_front" node="0>2|0|2" />
	  <i3dMapping id="moloko" node="0>2|1" />
	  <i3dMapping id="decal_milkTank" node="0>2|2" />
	  <i3dMapping id="decal_waterTank" node="0>2|3" />
	</i3dMappings>
</vehicle>
