<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="augerWagon">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>ZSK-10</en>
            <ru>ЗСК-10</ru>
		</name>
        <specs>
            <combination xmlFilename="MAZ_4570.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_augerWagon</function>
        </functions>
        <image>store_zsk.dds</image>
        <price>6500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAZ</brand>
        <category>augerWagons</category>
        <shopTranslationOffset>0 0.01 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_augerWagon</typeDesc>
        <filename>zsk.i3d</filename>
        <size width="3" length="5" height="4" 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>
	<connectionHoses>
        <localHose>
		  <hose type="hydraulicIn" node="localHoseStart001" length="7" diameter="0.015" minCenterPointAngle="3" straighteningFactor="1.5" isWorldSpaceHose="false" isTwoPointHose="true"/>
		  <target attacherJointIndices="1" type="none" node="localHoseMid001" straighteningFactor="1" />
		</localHose>
        <localHose>
		  <hose type="hydraulicIn" node="localHoseMid001" length="1" diameter="0.015" minCenterPointAngle="3" straighteningFactor="1" isWorldSpaceHose="false" isTwoPointHose="true"/>
		  <target attacherJointIndices="1" type="none" node="localHoseEnd001" straighteningFactor="1" />
		</localHose>
    </connectionHoses>
	<lights>
		<sharedLight linkNode="yellowRectangle_01" filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />	
		<sharedLight linkNode="yellowRectangle_02" filename="$data/shared/assets/reflectors/lizard/yellowRectangle_01.xml" />	
	</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="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>
		<animation name="foldPipe">		
            <part node="shnek2"   				startTime="0" endTime="1" 	startRot="0 0 0" endRot="-10 0 0" />
            <part node="ruchka001Rot"  			startTime="0" endTime="1" 	startRot="0 0 0" endRot="0 0 1100" />
			<part node="shnek2" 				startTime="1.8" endTime="2.3" startRot="-10 0 0" endRot="-10 0 0" />
			
            <part node="shnek1"   				startTime="1" endTime="3" startRot="0 0 0" 	endRot="0 90 0" /> 
            <part node="ruchka002"   			startTime="1" endTime="3" startRot="0 0 0" 	endRot="3200 0 0" />
			
            <sound template="clackVar2" 		startTime="0.01" direction="0"  volumeScale="1.5" pitchScale="1.2" />
            <sound template="clackVar6" 		startTime="0.05" direction="0"  volumeScale="1.5" pitchScale="1.0" />
            <sound template="slideOpen" 		startTime="0.1" direction="-1"  volumeScale="3.5" pitchScale="1.2" />
			
			<part node="End_anim" 				startTime="3" endTime="3.01" startRot="0 0 0" endRot="0 0 0" />
			
			<sound file="sounds/windowsSqueak_loop.wav" startTime="1.0" endTime="3" direction="1" pitchScale="1.5" fadeIn="0.2" fadeOut="0.2" supportsReverb="false" linkNode="ruchka002">
				<volume indoor="0.1" outdoor="1.2"/>
				<randomization minVolume="0.0" maxVolume="0.0" minPitch="0.02" maxPitch="0.02" isInside="true" isOutside="false"/>
			</sound>
			<sound file="sounds/windowsSqueak_loop.wav" startTime="1.0" endTime="3" direction="-1" pitchScale="1.3" fadeIn="0.2" fadeOut="0.2" supportsReverb="false" linkNode="ruchka002">
				<volume indoor="0.1" outdoor="1.2"/>
				<randomization minVolume="0.0" maxVolume="0.0" minPitch="0.02" maxPitch="0.02" isInside="true" isOutside="false"/>
			</sound>			
        </animation>
		<animation name="toggleCover">
            <part node="kryshka001" 			startTime="0" endTime="1" 	startRot="0 0 0" endRot="0 0 -70" />


            <sound template="slideOpen" startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="1.2" linkNode="kryshka001"/>
            <sound template="metalClose" startTime="0.04" direction="-1" volumeScale="1.4" pitchScale="1.2" linkNode="kryshka001"/>
        </animation>
    </animations>
	<cover>
        <coverConfigurations>
            <coverConfiguration >
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>
	<cylindered>
		<movingTools>
			<movingTool node="shnek1" playSound="true">
                <controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="0.9"/>
                <rotation rotSpeed="30" rotAcceleration="170" rotMax="90" rotMin="0" rotationAxis="2"/>
            </movingTool>
            <movingTool node="shnek2" playSound="true">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="0.9"/>
                <rotation rotSpeed="30" rotAcceleration="170" rotMax="0" rotMin="-30" rotationAxis="1"/>
            </movingTool>
		</movingTools>
        <movingParts>
            <movingPart node="ruchka001" 	referencePoint="ruchka001_fix" 	referenceFrame="ruchka001RefFrame" 	isActiveDirty="true" maxUpdateDistance="20"/>		
			<movingPart node="Hidr01" 		referencePoint="Hidr01_fix" 	referenceFrame="Hidr01_fix" 		isActiveDirty="true" maxUpdateDistance="20">
                <translatingPart node="Hidr01Punch" />
            </movingPart> 				
        </movingParts>
    </cylindered>

	<powerConsumer ptoRpm="300" neededMaxPtoPower="20"/>

	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault">
                <fillUnits>
					<fillUnit shopDisplayUnit="CUBICMETER" fillTypes="SEEDS WHEAT BARLEY OAT CANOLA SORGHUM SUNFLOWER SOYBEAN MAIZE PIGFOOD MINERAL_FEED ROADSALT LIME FERTILIZER" capacity="7000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode01" />
						<autoAimTargetNode node="fillAutoAimTarget01" startZ="-2.286" endZ="-2.286" invert="false" startPercentage="25" />
                    </fillUnit>
					<fillUnit shopDisplayUnit="CUBICMETER" fillTypes="FERTILIZER LIME" capacity="3000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode02" />
						<autoAimTargetNode node="fillAutoAimTarget02" startZ="-0.055" endZ="-0.055" invert="false" startPercentage="25" />
                    </fillUnit>					
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	<fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume1" maxAllowedHeapAngle="10" maxDelta="0.1" fillUnitIndex="1" />
                    <volume node="fillVolume2" maxAllowedHeapAngle="10" maxDelta="0.1" fillUnitIndex="2" />
                </volumes>
            </fillVolumeConfiguration>			
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node node="unloadInfo" width="0.3" length="0.3" />
            </unloadInfo>
            <unloadInfo fillVolumeIndex="2" >
                <node node="unloadInfo" width="0.3" length="0.3" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	<pipe dischargeNodeIndex="1">
        <dischargeNode index="1" />
        <states num="3" unloading="2 3">
            <state stateIndex="2" dischargeNodeIndex="1"/>
            <state stateIndex="3" dischargeNodeIndex="2"/>
        </states>
		
        <animation name="foldPipe" speedScale="0.5" />
		
        <unloadingTriggers>
            <unloadingTrigger node="trailerTrigger" />
        </unloadingTriggers>

        <animationNodes>
            <animationNode node="shnek" rotSpeed="-500" rotAxis="0" turnOnFadeTime="0" turnOffFadeTime="0"/>	
        </animationNodes>
    </pipe>
   <dischargeable>	
        <dischargeNode node="dischargeNode01" emptySpeed="200" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="0.6" length="0.6" useRaycastHitPosition="true"/>
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffectUnload01" materialType="pipe" delay="0" maxBending="0.5" extraDistance="0.6"/>
                <effectNode                          effectNode="pipeEffectSmoke01" materialType="smoke"     materialTypeId="1" delay="0.1" alignToWorldY="true"/>
            </effects>
            <dischargeStateSound template="augerBelt" pitchScale="0.65" volumeScale="1.1" fadeIn="0.5" fadeOut="2.7"/>
        </dischargeNode>
		<dischargeNode node="dischargeNode02" emptySpeed="200" fillUnitIndex="2" unloadInfoIndex="2" >
            <info width="0.6" length="0.6" useRaycastHitPosition="true"/>
            <effects>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffectUnload02" materialType="pipe" delay="0" maxBending="0.5" extraDistance="0.6"/>
                <effectNode                          effectNode="pipeEffectSmoke02" materialType="smoke"     materialTypeId="1" delay="0.1" alignToWorldY="true"/>
            </effects>			
            <dischargeStateSound template="augerBelt" pitchScale="0.65" volumeScale="1.1" fadeIn="0.5" fadeOut="2.7"/>					
        </dischargeNode>		
    </dischargeable>
    <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>
	<baseMaterial>
        <material name="parts4570_mat" baseNode="shnek1">
            <shaderParameter name="colorMat1" value="0.45 0.023 0.023 6"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="100" useDefaultColors="false">
		<baseMaterialConfiguration name="$l10n_ui_colorRed"    color="AEBI_RED1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorRed"    color="FENDT_RED1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorRed"    color="ARMATRAC_RED1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorOrange" color="ALPEGO_ORANGE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorOrange" color="ARCUSIN_ORANGE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorOrange" color="ARMATRAC_ORANGE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorYellow" color="HUERLIMANN_YELLOW_2"/>
		<baseMaterialConfiguration name="$l10n_ui_colorYellow" color="HOLMER_YELLOW_1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorYellow" color="HELIANTHUS_YELLOW1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGrey"   color="HATZENBICHLER_GREY2"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGrey"   color="GREGOIREBESSON_GRAY"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGrey"   color="HOLARAS_LIGHTGRAY"/>
		<baseMaterialConfiguration name="$l10n_ui_colorWhite"  color="ANNABURGER_WHITE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorWhite"  color="AGROMASZ_WHITEPAINT"/>
		<baseMaterialConfiguration name="$l10n_ui_colorWhite"  color="BIZON_BEIGE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorBlue"   color="ALPEGO_BLUE"/>
		<baseMaterialConfiguration name="$l10n_ui_colorBlue"   color="BREMER_BLUE1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorBlue"   color="ITRUNNER_BLUE_1"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGreen"  color="AGROMASZ_GREENPAINT"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGreen"  color="BRANTNER_GREEN2"/>
		<baseMaterialConfiguration name="$l10n_ui_colorGreen"  color="BUEHRER_GREEN2"/>
		
		<material name="parts4570_mat"  shaderParameter="colorMat1"  material="6"/>
		
    </baseMaterialConfigurations>
    <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="podstavka" node="0>0|1|1" />
	  <i3dMapping id="col1Shape" node="0>0|1|2" />
	  <i3dMapping id="col2Shape" node="0>0|1|3" />
	  <i3dMapping id="localHoseStart001" node="0>0|2|0" />
	  <i3dMapping id="localHoseMid001" node="0>0|2|1" />
	  <i3dMapping id="yellowRectangle_01" node="0>1|0" />
	  <i3dMapping id="yellowRectangle_02" node="0>1|1" />
	  <i3dMapping id="kryshka001" node="0>2|0" />
	  <i3dMapping id="kryshka002" node="0>2|1" />
	  <i3dMapping id="shnek1" node="0>2|2" />
	  <i3dMapping id="shnek2" node="0>2|2|0" />
	  <i3dMapping id="pipeEffectUnload01" node="0>2|2|0|0|0" />
	  <i3dMapping id="pipeEffectSmoke01" node="0>2|2|0|0|1" />
	  <i3dMapping id="pipeEffectUnload02" node="0>2|2|0|0|2" />
	  <i3dMapping id="pipeEffectSmoke02" node="0>2|2|0|0|3" />
	  <i3dMapping id="dischargeNode01" node="0>2|2|0|1" />
	  <i3dMapping id="dischargeNode02" node="0>2|2|0|3" />
	  <i3dMapping id="Hidr01_fix" node="0>2|2|0|2" />
	  <i3dMapping id="Hidr01" node="0>2|2|1" />
	  <i3dMapping id="Hidr01Punch" node="0>2|2|1|0" />
	  <i3dMapping id="localHoseEnd001" node="0>2|2|1|1" />
	  <i3dMapping id="shnek" node="0>2|3" />
	  <i3dMapping id="ruchka001" node="0>2|4" />
	  <i3dMapping id="ruchka001RefFrame" node="0>2|7" />
	  <i3dMapping id="ruchka002" node="0>2|5" />
	  <i3dMapping id="exactFillRootNode01" node="0>3|0" />
	  <i3dMapping id="exactFillRootNode02" node="0>3|7" />
	  <i3dMapping id="fillVolume1" node="0>3|1" />
	  <i3dMapping id="fillVolume2" node="0>3|2" />
	  <i3dMapping id="unloadInfo" node="0>3|3" />
	  <i3dMapping id="trailerTrigger" node="0>3|4" />
	  <i3dMapping id="fillAutoAimTarget01" node="0>3|5" />
	  <i3dMapping id="fillAutoAimTarget02" node="0>3|6" />
	  <i3dMapping id="ruchka001Rot" node="0>2|6" />
	  <i3dMapping id="ruchka001_fix" node="0>2|6|0" />
	  <i3dMapping id="End_anim" node="0>2|8" />
	</i3dMappings>
</vehicle>
