<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
			<en>Barnaul-0.8</en>
			<ru>ПКУ Барнаул-0,8</ru>
		</name>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>store/barnaul.png</image>
        <price>6000</price>
        <dailyUpkeep>10</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
		<brand>BARNAUL</brand>
        <category>frontLoaders</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>286940</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>46188</indexBufferMemoryUsage>
        <textureMemoryUsage>4369208</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <base>
		<typeDesc>$l10n_typeDesc_frontloader</typeDesc>
		<filename>tools/barnaul08.i3d</filename>
        <size width="3" length="3" />
        <components>
            <component centerOfMass="0 0.05 0.75" solverIterationCount="10" mass="500" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base> 

    <lights>
        <states>
            <state lightTypes="0" />

		</states>

        <realLights>
            <low>
                <light node="0>1|3|3|0|0"     lightTypes="0" />
            </low>	                             
            <high>	                             
                <light node="0>1|3|3|1|0"     lightTypes="0"  />
            </high>
        </realLights>

		<sharedLight linkNode="0>1|3|3|2"  		filename="$data/shared/assets/lights/lizard/workingLightOval_04.xml"  lightTypes="0" />
        <sharedLight linkNode="0>1|3|3|3"  		filename="$data/shared/assets/lights/lizard/workingLightOval_04.xml"  lightTypes="0" />
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>

   </lights>	
	
	
    <attacherJoints comboDuration="2">	
		<attacherJointConfigurations>
			<attacherJointConfiguration name="$l10n_configuration_inputAttacherfrontLoadersDef" price="0">
			<attacherJoint jointType="frontloader" node="0>3|0|0|0" nodeVisual="0>1|1|0|2" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
				<schema position="1 0" rotation="0" invertX="false" />
			</attacherJoint>
				<objectChange node="0>1|2|0" visibilityActive="true" />
				<objectChange node="0>1|2|4" visibilityActive="false" />
				<objectChange node="0>1|1|0|3|0" visibilityActive="false" />
				<objectChange node="0>1|1|0|3|1" visibilityActive="false" />					
			</attacherJointConfiguration>	

			<attacherJointConfiguration name="$l10n_configuration_inputAttacherfrontLoaders" price="500">
			<attacherJoint jointType="frontloader" node="0>3|0|0|2" nodeVisual="0>1|1|0|5" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
				<schema position="1 0" rotation="0" invertX="false" />
			</attacherJoint>
				<objectChange node="0>1|2|0" visibilityActive="true" />
				<objectChange node="0>1|2|4" visibilityActive="false" />
				<objectChange node="0>1|1|0|3|0" visibilityActive="false" />
				<objectChange node="0>1|1|0|3|1" visibilityActive="true" />						
			</attacherJointConfiguration>	

			
			<attacherJointConfiguration name="$l10n_configuration_inputAttacherteleLoaders" price="1000">
			<attacherJoint jointType="skidSteer" node="0>3|0|0|1" nodeVisual="0>1|1|0|4" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="1 1 1" transLimitSpring="7500 7500 7500" transLimitDamping="1 1 1" >
				<schema position="1 0" rotation="0" invertX="false" />
			</attacherJoint>
				<objectChange node="0>1|2|0" visibilityActive="true" />
				<objectChange node="0>1|2|4" visibilityActive="false" />
				<objectChange node="0>1|1|0|3|0" visibilityActive="true" />
				<objectChange node="0>1|1|0|3|1" visibilityActive="false" />						
			</attacherJointConfiguration>			
		</attacherJointConfigurations>
		
		<sounds>
			<attach template="ATTACH_01" linkNode="0>3|0" />
		</sounds>		
    </attacherJoints>		
		
		
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0" hardAttach="true" jointType="attachableFrontloader" >
			<objectChange node="0>0|3" visibilityActive="true" visibilityInactive="false" />
			<objectChange node="0>1|0" visibilityActive="true" visibilityInactive="false" />
			<objectChange node="0>1|7" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|4" visibilityActive="true" visibilityInactive="false" />			
			</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="0>3|1"   startTime="0" endTime="0.1" startRot="43 0 0" endRot="0 0 0" />
        </animation>
    </animations>

	
	
    <cylindered>
		<movingTools>
			<!-- physics -->
			<movingTool node="0>3" delayedNode="0>1">
				<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="1.0" iconName="FRONTLOADER_ARM_ROTATE" />
				<attacherJoint jointIndices="1" />
				<rotation rotSpeed="20" rotAcceleration="150" rotMax="5" rotMin="-82" startRot="-3" detachingRotMinLimit="0" />
				<dependentPart node="0>3|0" />
				<dependentMovingTool node="0>3|0|0" minRotLimits="-5 -5" maxRotLimits="80 54" minScaleLimits="-5 -5" maxScaleLimits="0 0" />     			<!-- xx-закр. опущ. xx- -->
			</movingTool>
			<movingTool node="0>3|0|0" delayedNode="0>1|1|0">
				<controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
				<attacherJoint jointIndices="1" />
				<rotation rotSpeed="50" rotAcceleration="300" rotMax="80" rotMin="-15" startRot="0" syncMaxRotLimits="true" />
			</movingTool>
		
			<movingTool node="0>1">
				<dependentPart node="0>1|0" />
				<dependentPart node="0>1|1" />
			</movingTool>
		
			<movingTool node="0>1|1|0">
				<dependentPart node="0>1|2" />
			</movingTool>
		</movingTools>
		
		<movingParts>
			<!-- main cylinder -->
			<movingPart node="0>1|0" referencePoint="0>0|1" referenceFrame="0>1|6" playSound="true" >
				<translatingPart node="0>1|0|0" />
				<dependentPart node="0>1|3" />
				
			
			</movingPart>
			
			<movingPart node="0>1|3" referencePoint="0>0|2" localReferencePoint="0>1|3|2" referenceFrame="0>1|5" >
				<dependentPart node="0>1|3|0" />
				<dependentPart node="0>1|3|1|0" />
				<dependentPart node="0>0|3" />
			</movingPart>
			
			<movingPart node="0>1|3|0" referencePoint="0>0|2" referenceFrame="0>1" />
			<movingPart node="0>0|3" referencePoint="0>1|3|2" referenceFrame="0>1" />
	
			<movingPart node="0>1|2" localReferencePoint="0>1|2|0" referencePoint="0>1|1|0|0" referenceFrame="0>1|1|0|1" >
				<dependentPart node="0>1|2|0" />
				<dependentPart node="0>1|3|1|0" />
				<dependentPart node="0>1|8|0" />				
				<dependentPart node="0>1|8|1" />				
			</movingPart>
			<movingPart node="0>1|2|0" referencePoint="0>1|1|0|0" referenceFrame="0>1|2|2" />
		
			<!-- tool cylinder -->
			<movingPart node="0>1|3|1|0" referencePoint="0>1|2|1" referenceFrame="0>1|5" playSound="true">
				<translatingPart node="0>1|3|1|0|0" />
			</movingPart>
		
			<movingPart node="0>3|0" referenceFrame="0>2">
				<attacherJoint jointIndices="0" />
			</movingPart>
			<movingPart node="0>1|1" referenceFrame="0>0">
				<attacherJoint jointIndices="0" />
				<dependentPart node="0>1|2" />
			</movingPart>
			<!-- tool hose -->			
            <movingPart node="0>1|8|0" referencePoint="0>1|3|1|0|1" referenceFrame="0>1|3|1|0|3" moveToReferenceFrame="true" />			
            <movingPart node="0>1|8|1" referencePoint="0>1|3|1|0|2" referenceFrame="0>1|3|1|0|3" moveToReferenceFrame="true" />
			
			
		</movingParts>
		
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <foliageBending>
        <bendingNode minX="-0.55" maxX="0.55" minZ="-0.2" maxZ="1.9" yOffset="-0.2" node="0>1|3|1" />
    </foliageBending>

    <baseMaterial>
        <material name="MatPKU" baseNode="0>1">
            <shaderParameter name="colorMat0" value="0.00 0.23 0.79 6"/>
            <shaderParameter name="colorMat1" value="0.00 0.23 0.79 6"/>			
        </material>
		 <material name="L218" baseNode="0>1|1|0|3|0">
            <shaderParameter name="colorMat1" value="0.00 0.23 0.79 6"/>			
        </material>
		<material name="stollAdapt" baseNode="0>1|1|0|3|1">
            <shaderParameter name="colorMat0" value="0.00 0.23 0.79 6"/>			
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="200" useDefaultColors="false" defaultColorIndex="0.00 0.23 0.79 6">
        <baseMaterialConfiguration color="0.00 0.23 0.79 6"/>
        <baseMaterialConfiguration color="0.94 0.60 0.00 6"/>
        <baseMaterialConfiguration color="0.42 0.04 0.02 6"/>
        <baseMaterialConfiguration color="0.07 0.08 0.09 6"/>		
        <material name="MatPKU" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>	

    <designMaterialConfigurations price="200" useDefaultColors="false" defaultColorIndex="0.07 0.08 0.09 6">
 		<designMaterialConfiguration color="0.00 0.23 0.79 6" />
		<designMaterialConfiguration color="0.94 0.60 0.00 6" />
		<designMaterialConfiguration color="0.42 0.04 0.02 6" />
		<designMaterialConfiguration color="0.07 0.08 0.09 6" />
        <material name="MatPKU" shaderParameter="colorMat1" />
        <material name="L218" shaderParameter="colorMat1" />
        <material name="stollAdapt" shaderParameter="colorMat0" />			
    </designMaterialConfigurations>		

	<designConfigurations title="$l10n_configuration_design">
	    <designConfiguration name="Стандарт" price="0">
            <objectChange node="0>1|3|3" visibilityActive="false" />
        </designConfiguration>
        <designConfiguration name="Доп. освещение" price="500">
            <objectChange node="0>1|3|3" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>	


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


</vehicle>
