<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureBarrel" 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>
            <en>ZJV-F-3.2</en>  			
            <ru>ЗЖВ-Ф-3.2</ru>				
		</name>	
        <specs>
            <workingWidth>5.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreader</function>
        </functions>
        <image>store/store_zjv.png</image>
        <price>2950</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>slurryTanks</category>
        <vertexBufferMemoryUsage>783616</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>153600</indexBufferMemoryUsage>
        <textureMemoryUsage>1048576</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureBarrel</typeDesc>
        <filename>zjv.i3d</filename>
        <size width="2.4" length="4.7"/>
        <speedLimit value="15" />		
        <components>
            <component centerOfMass="0 0.3 1.95" solverIterationCount="10" mass="1600" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel filename="wheels/wheels_default.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.82" repr="wheelLeft"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.04" spring="80" damper="50" frictionScale="1.5" />
                    </wheel>
                    <wheel filename="wheels/wheels_default.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.82" repr="wheelRight" forcePointRatio="0.5" initialCompression="18" suspTravel="0.04" spring="80" damper="50" frictionScale="1.5" />
                    </wheel>
                </wheels>
            </wheelConfiguration>

            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="150">
                <wheels>
                    <wheel filename="wheels/wheels_broad.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.82" repr="wheelLeft"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.04" spring="80" damper="50" frictionScale="1.5" />
                    </wheel>
                    <wheel filename="wheels/wheels_broad.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.82" repr="wheelRight" forcePointRatio="0.5" initialCompression="18" suspTravel="0.04" spring="80" damper="50" frictionScale="1.5" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
    <rimColorConfigurations useDefaultColors="false">
        <rimColorConfiguration name="Yellow" color="0.714 0.335 0.022 6"/>
        <rimColorConfiguration name="Green" color="0.03 0.085 0.05 6"/>	
        <rimColorConfiguration name="Red1" color="0.5 0.085 0.05 6"/>	
        <rimColorConfiguration name="Red2" color="0.347 0.085 0.05 6"/>		
        <rimColorConfiguration name="Burgundy" color="0.35 0.05 0.04 6"/>
        <rimColorConfiguration name="Gray1" color="0.3 0.3 0.3 6"/>
        <rimColorConfiguration name="Gray2" color="0.126 0.126 0.126 6"/>
        <rimColorConfiguration name="Dark Gray" color="0.06 0.06 0.06 6"/>		
        <rimColorConfiguration name="Blue1" color="0.005 0.12 0.184 6"/>        
		<rimColorConfiguration name="Blue2" color="0.35 0.52 0.595 6"/>	
        <rimColorConfiguration name="Dark Blue1" color="0.055 0.12 0.184 6"/>
        <rimColorConfiguration name="Dark Blue2" color="0.055 0.08 0.1 6"/>
        <rimColorConfiguration name="Brown" color="0.1 0.05 0.04 6"/>
        <rimColorConfiguration name="Black" color="0.05 0.05 0.05 6"/>		
    </rimColorConfigurations>	

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.45" />
        </inputAttacherJoints>
        <brakeForce force="0.3" maxForce="1.2" maxForceMass="3800"/>
        <support animationName="moveSupport" />
    </attachable>	
	
    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electricReferencePoint" adapterNode="electricOnOff" length="5.0" diameter="0.01" straighteningFactor="1.5" isTwoPointHose="true">
            <objectChange node="electricOnOff" visibilityActive="true" visibilityInactive="false" />
        </hose>
    </connectionHoses>	

    <lights>
        <sharedLight linkNode="backlightLeft" filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="backlightRight" filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh"   lightTypes="0"/>
                <brakeLight node="backLightsHigh" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
            </high>
        </realLights>
    </lights>
	
    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <onlyActiveWhenLowered value="false"/>
        </workArea>
    </workAreas>		
	
    <sprayer>
        <usageScales workingWidth="5.0" scale="0.6" />

        <effects>
            <effectNode effectNode="effectSlurry" materialType="slurry" fadeOutTime="2" fadeInTime="2" />
        </effects>
    </sprayer>	

    <animations>
        <animation name="moveSupport">
            <part node="supportTrans" startTime="0.3" endTime="0.6" startTrans="0 0.561 2.295" endTrans="0 0.561 2.391" />		
            <part node="supportTrans" startTime="1.2" endTime="2.4" startTrans="0 0.561 2.391" endTrans="0 0.561 2.295" />		
            <part node="supportArm" startTime="0.6" endTime="1.2" startTrans="0 0.448 2.294" endTrans="0 0.383 2.294" />

            <sound template="clackVar1" startTime="0.14" volumeScale="1.3" pitchScale="1.1" linkNode="attacherJoint"/>
        </animation>
        <animation name="filllevelMarker">
            <part node="arrowMarker" startTime="0" endTime="1" startRot="0 0 45" endRot="0 0 -45" />
        </animation>		
    </animations>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="slurryTank" capacity="3200">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="filllevelMarker"/>
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillTrigger consumePtoPower="true" litersPerSecond="400"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>

        <sounds>
            <fill template="SLURRY_01" />
        </sounds>
    </fillUnit>	
	
    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="350"/>	
	
    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="450" fillUnitIndex="1" allowAIDischarge="true" canDischargeToGround="false">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
            <dischargeSound template="SLURRY_01"/>
        </dischargeNode>
    </dischargeable>	
	
    <turnOnVehicle turnOffIfNotAllowed="true">
        <activatableFillUnits>
            <activatableFillUnit index="1" />
        </activatableFillUnits>

        <sounds>
            <work template="SLURRY_01">
                <pitch indoor="0.75" outdoor="0.75" />
            </work>
        </sounds>
    </turnOnVehicle>	

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <allowTurnBackward value="false" />
        <turningRadiusLimitation radius="6"/>
        <collisionTrigger node="aiCollisionNode" width="2.9" height="2.7"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.2" height="2.5" length="4.3" lengthOffset="0.85"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-1.6" maxZ="1.4" yOffset="0.35" />
    </foliageBending>

    <baseMaterial>
        <material name="zjv_mat" baseNode="zjv_vis">
            <shaderParameter name="colorMat0" value="0.03 0.085 0.05 6"/>		
        </material>			
    </baseMaterial>	
	
    <baseMaterialConfigurations>
        <baseMaterialConfiguration name="Green" color="0.03 0.085 0.05 6"/>	
        <baseMaterialConfiguration name="Red1" color="0.5 0.085 0.05 6"/>	
        <baseMaterialConfiguration name="Red2" color="0.347 0.085 0.05 6"/>		
        <baseMaterialConfiguration name="Burgundy" color="0.35 0.05 0.04 6"/>
        <baseMaterialConfiguration name="Gray1" color="0.3 0.3 0.3 6"/>
        <baseMaterialConfiguration name="Gray2" color="0.126 0.126 0.126 6"/>
        <baseMaterialConfiguration name="Dark Gray" color="0.06 0.06 0.06 6"/>		
        <baseMaterialConfiguration name="Blue1" color="0.005 0.12 0.184 6"/>        
		<baseMaterialConfiguration name="Blue2" color="0.35 0.52 0.595 6"/>	
        <baseMaterialConfiguration name="Dark Blue1" color="0.055 0.12 0.184 6"/>
        <baseMaterialConfiguration name="Dark Blue2" color="0.055 0.08 0.1 6"/>
        <baseMaterialConfiguration name="Brown" color="0.1 0.05 0.04 6"/>
        <baseMaterialConfiguration name="Yellow" color="0.714 0.335 0.022 6"/>		
        <material name="zjv_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
	
    <designConfigurations title="$l10n_configuration_fenderOnOff">
        <designConfiguration name="$l10n_configuration_functionOnZjv">
            <objectChange node="fenderDefault" visibilityActive="true" />
            <objectChange node="fenderModification" visibilityActive="false" />
            <objectChange node="spreader" visibilityActive="true" />			
        </designConfiguration>	
        <designConfiguration name="$l10n_configuration_functionOffZjv">
            <objectChange node="fenderDefault" visibilityActive="false" />
            <objectChange node="fenderModification" visibilityActive="true" />	
            <objectChange node="spreader" visibilityActive="true" />			
        </designConfiguration>
    </designConfigurations>		

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

    <i3dMappings>
        <i3dMapping id="zjv_main_component1" node="0>" />
        <i3dMapping id="zjv_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />	
        <i3dMapping id="supportArm" node="0>0|0|1|0" />
        <i3dMapping id="supportTrans" node="0>0|0|1|1" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="arrowMarker" node="0>0|2|0|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|2|1" />
        <i3dMapping id="fillTrigger" node="0>0|2|2" />
        <i3dMapping id="dischargeNode" node="0>0|2|3" />
        <i3dMapping id="dischargeTrigger" node="0>0|2|4" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|0|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|4|1" />
        <i3dMapping id="effectSlurry" node="0>0|5|0|0" />
        <i3dMapping id="fenderDefault" node="0>0|6|0|0" />
        <i3dMapping id="electricReferencePoint" node="0>0|6|0|0|0|0|0" />
        <i3dMapping id="electricOnOff" node="0>0|6|0|0|0|0|1" />		
        <i3dMapping id="backlightLeft" node="0>0|6|0|0|1|0|0" />
        <i3dMapping id="backlightRight" node="0>0|6|0|0|1|0|1" />
        <i3dMapping id="backLightsHigh" node="0>0|6|0|0|1|1|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|6|0|0|1|2|0|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|6|0|0|1|2|1|0" />		
        <i3dMapping id="fenderModification" node="0>0|6|0|1" />	
        <i3dMapping id="spreader" node="0>0|7|4" />		
    </i3dMappings>
</vehicle>
