<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="leveler">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>            <en>PPCR 7'-13'</en>
        </name>
        <functions>
            <function>$l10n_function_snowPlow</function>
        </functions>
        <image>store_PPCR.dds</image>
        <price>6650</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Cotech</brand>
        <category>winterEquipment</category>
        <shopTranslationOffset>0 0.07 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>471896</vertexBufferMemoryUsage>
        <nodeBufferMemoryUsage>97170</nodeBufferMemoryUsage>
        <textureMemoryUsage>6116920</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instancenodeBufferMemoryUsage>0</instancenodeBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_snowPlow</typeDesc>
        <filename>cotechPPCR.i3d</filename>
        <size width="6" length="2.5" widthOffset="0.4"/>
        <speedLimit value="17"/>
        <components>
            <component centerOfMass="0 0 0.68" solverIterationCount="10" mass="1700"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>
	
	<animations>
		<animation name="axisMovement">
            <part node="0>1|0|11" startTime="0" endTime="2" endTrans="1.08 0 0" startTrans="0 0 0"/>
            <part node="0>1|0|12" startTime="0" endTime="2" endTrans="-1.08 0 0" startTrans="0 0 0"/>
        </animation>
    </animations>
	
    <attachable>
        <inputAttacherJoints>
			<inputAttacherJoint node="0>4" jointType="skidSteer" />
			<inputAttacherJoint node="0>5" jointType="wheelLoader"/>
			<inputAttacherJoint node="0>4" jointType="frontloader"/>
            <inputAttacherJoint node="0>0" topReferenceNode="0>3" jointType="implement" isControllable="true" lowerTransLimitScale="0 2.5 0" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerRotationOffset="0">
                <distanceToGround lower="0.38" upper="0.9" />
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>
	
	<attacherJointControl maxTiltAngle="25">
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_HYDRAULICATTACHER1" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS"/>
        <control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_HYDRAULICATTACHER2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX"/>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>" />
        </sounds>
    </attacherJointControl>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="SNOW" capacity="300000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <leveler fillUnitIndex="1" maxFillLevelPerMS="25" ignoreFarmlandState="true">
        <levelerNode node="0>1|0|9" width="3" zOffset="0" minDropWidth="1.4" maxDropWidth="2.2" minDropDirOffset="1.5" maxDropDirOffset="2.5" alignToWorldY="false"/>
		<levelerNode node="0>1|0|11|5" width="2" zOffset="0" minDropWidth="1.4" maxDropWidth="2.2" minDropDirOffset="1.5" maxDropDirOffset="2.5" alignToWorldY="false"/>
		<levelerNode node="0>1|0|12|5" width="2" zOffset="0" minDropWidth="1.4" maxDropWidth="2.2" minDropDirOffset="1.5" maxDropDirOffset="2.5" alignToWorldY="false"/>


        <force node="0>" maxForce="60" direction="1" />

		<pickUpDirection>1</pickUpDirection>

        <effects>
			<effectNode effectNode="0>1|0|10|0" effectClass="ShaderPlaneEffect" materialType="leveler" fadeTime="0.5" speed="10" />

            <effectNode effectClass="SnowPlowMotionPathEffect" effectType="SNOW_PIECES" linkNode="0>1|0|10|1">
                <motionPathEffect textureFilename="$data/vehicles/samasz/jump320/snowArray.dds" numRows="13" rowLength="27" minFade="0.15" />
                <snowPlowEffect shaderPlane="0>1|0|10|0" minScale="1 0.33 0.54" maxScale="1 0.95 0.95" scrollSpeed="-5"/>
            </effectNode>
            <effectNode effectClass="SnowPlowMotionPathEffect" effectType="SNOW_DUST" linkNode="0>1|0|10|1">
                <motionPathEffect textureFilename="$$data/vehicles/samasz/jump320/snowArray.dds" numRows="13" rowLength="27" minFade="0.15" />
            </effectNode>
        </effects>
    </leveler>
	
	<cylindered>
        <movingTools>
			<movingTool node="0>1|0|11" playSound="true" >
                <controls axis="AXIS_CRANE_TOOL" invertAxis="false" mouseSpeedFactor="1.2" iconName="WHEEL_BASE_TRANSLATE_X" />
                <animation animName="axisMovement" animSpeed="0.2" />
            </movingTool>
        </movingTools>

        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="pitbull_maincomponent1"/>
        </sounds>
    </cylindered>
	
	<designConfigurations preLoad="true">
        <designConfiguration name="3 Point">
            <objectChange node="0>1|1|0" visibilityActive="true"/>
            <objectChange node="0>1|1|1" visibilityActive="false"/>
			<objectChange node="0>0" visibilityActive="true"/>
			<objectChange node="0>4" visibilityActive="false"/>
			<objectChange node="0>5" visibilityActive="false"/>
        </designConfiguration>
		
		<designConfiguration name="Skid Steer/loader">
            <objectChange node="0>1|1|0" visibilityActive="false"/>
            <objectChange node="0>1|1|1" visibilityActive="true"/>
			<objectChange node="0>0" visibilityActive="false"/>
			<objectChange node="0>4" visibilityActive="true"/>
			<objectChange node="0>5" visibilityActive="true"/>
        </designConfiguration>
        
    </designConfigurations>
	
	<baseMaterial>
        <material name="MainPlowMat" baseNode="0>1|0|0">
            <shaderParameter name="colorMat0" value="JOHNDEERE_YELLOW1"/>
        </material>
	</baseMaterial>
	
	<baseMaterialConfigurations price="1000" useDefaultColors="true">
		<baseMaterialConfiguration name="John Deere Yellow"  color="JOHNDEERE_YELLOW1" material="6"/>
		<baseMaterialConfiguration name="Deere Yellow" color="JOHNDEERE_YELLOW1" material="27" />
		
        <material name="MainPlowMat" shaderParameter="colorMat0"/>
	</baseMaterialConfigurations>
		
	
    <foliageBending>
        <bendingNode minX="-2.0" maxX="2.0" minZ="-0.8" maxZ="0.8" yOffset="0.6"/>
    </foliageBending>
    
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
    
</vehicle>
