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

    <storeData>
        <name>
            <en>SK-5 pipe PUN-5</en> 
            <de>SK-5 pipe PUN-5</de> 			
            <ru>СК-5 шнек ПУН-5</ru>		
		</name>	
        <specs>
            <fillTypes>straw</fillTypes>
            <combination>SK-5 Niva</combination>			
        </specs>
        <functions>
            <function>$l10n_function_combine</function>
        </functions>
        <image>store/store_pipePun.png</image>
        <price>50</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ROSTSELMASH</brand>
        <category>harvesters</category>
        <vertexBufferMemoryUsage>472360</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>82278</indexBufferMemoryUsage>
        <textureMemoryUsage>3495512</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>pipePun.i3d</filename>
        <size width="2.3" length="0.9"/>
        <speedLimit value="10"/>
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="100" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="frontloader"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />		
    </attachable>

	<animations>
        <animation name="moveSupport">
            <part node="support" startTime="0" endTime="0.01" visibility="false" />
			<part node="support" startTime="0.01" endTime="0.02" visibility="true" />
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" fillTypes="STRAW"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="7000" fillUnitIndex="1" maxDistance="50" stopDischargeOnEmpty="false">
            <info width="0.5" length="1" useRaycastHitPosition="true"/>
            <raycast extraDistance="-1" maxDistance="10"/>

            <effects>
                <effectNode                          effectNode="pipeEffect1"  delay="0"   materialType="unloading" materialTypeId="1" fadeScale="0"/>
                <effectNode                          effectNode="pipeEffect2"  delay="0"   materialType="unloading" materialTypeId="1" fadeScale="0"/>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect3"  delay="0.1" materialType="pipe"      materialTypeId="1" maxBending="0.15" shapeScaleSpread="1.03 0.96 1 0"/>
            </effects>
        </dischargeNode>
    </dischargeable>

	<shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" width="1.0" length="1" yOffset="-0.3" needsMovement="false" needsActivation="true" needsLowering="true" fillLitersPerSecond="7000"/>
    </shovel>

    <pipe>
        <unloadingTriggers>
            <unloadingTrigger node="trailerTrigger" />
        </unloadingTriggers>
        <states num="2" unloading="1 2" autoAiming="2" turnOnAllowed="1 2"/>
		<dischargeNode index="1" axis="1" direction="1"/>
    </pipe>

	<turnOnVehicle turnOffIfNotAllowed="true" turnedOnByAttacherVehicle="true"/>
	
	<tensionBeltObject>																											
        <meshNodes>
            <meshNode node="supportPipe"/>
        </meshNodes>
    </tensionBeltObject>	
	
    <baseMaterial>
        <material name="sk4_mat" baseNode="supportPipe">
            <shaderParameter name="colorMat0" value="0.35 0.031 0.025 6"/>
            <shaderParameter name="colorMat1" value="0.603 0.603 0.603 6"/>
            <shaderParameter name="colorMat2" value="0.191 0.191 0.191 6"/>
            <shaderParameter name="colorMat3" value="0.035 0.035 0.035 6"/>			
        </material>	
    </baseMaterial>	
	
    <bodyNivaSKMaterialConfigurations>
        <bodyNivaSKMaterialConfiguration name="Red01" color="0.28 0.031 0.025 6"/>
        <bodyNivaSKMaterialConfiguration name="Red02" color="0.5 0.085 0.05 6"/>	
        <bodyNivaSKMaterialConfiguration name="Red03" color="0.347 0.085 0.05 6"/>	
        <bodyNivaSKMaterialConfiguration name="Green01" color="0.23 0.3 0.08 6"/>
        <bodyNivaSKMaterialConfiguration name="Green02" color="0.01 0.32 0.12 6"/>		
		<material name="sk4_mat" shaderParameter="colorMat0" />		
    </bodyNivaSKMaterialConfigurations>	
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="pipePun_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="support" node="0>0|1" />
        <i3dMapping id="supportPipe" node="0>0|1|0" />
        <i3dMapping id="dischargeNode" node="0>1|0" />
        <i3dMapping id="pickUpNode" node="0>2|0" />
        <i3dMapping id="trailerTrigger" node="0>2|1" />
        <i3dMapping id="pipeEffect1" node="0>3|0" />
        <i3dMapping id="pipeEffect2" node="0>3|1" />
        <i3dMapping id="pipeEffect3" node="0>3|2" />	
    </i3dMappings>
</vehicle>