<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="scepka">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
		<name>
			<en>Double Hitch for SZ-3.6 M</en>
			<de>Doppel Haken für SZ-3.6 M</de>
			<ru>Двойная Сцепка для СЗ-3.6 М</ru>
		</name>
        <functions>
            <function>$l10n_function_scepka</function>
        </functions>
		<specs>
		   <combination xmlFilename="sz_36_m.xml" />
		   <neededPower>30</neededPower>
        </specs>
        <image>store/store_scepka.dds</image>
        <price>2999</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CHERVONAZIRKA</brand>
        <category>seeders</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>180224</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>31920</indexBufferMemoryUsage>
        <textureMemoryUsage>11184912</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>scepka.i3d</filename>
        <size width="4.2" length="6.2" lengthOffset="1.3"/>
        <components>
            <component centerOfMass="0.00 0.28 0.66" solverIterationCount="10" mass="1000"/>
        </components>
		<schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
		<mapHotspot type="TOOL_TRAILED" />
    </base>

	<rimColorConfigurations useDefaultColors="false">
        <rimColorConfiguration name="$l10n_Red"    color="0.7 0.07 0.05 6" price="0"/>
		<rimColorConfiguration name="$l10n_Bordo"  color="0.3 0.05 0.05 6" price="5"/> 
		<rimColorConfiguration name="$l10n_Green"  color=".077 0.24 0.12 6" price="10"/>
		<rimColorConfiguration name="$l10n_Blue"   color="0.0 0.2 0.6 6" price="10"/>
		<rimColorConfiguration name="$l10n_Yellow" color="0.55 0.35 0.035 6" price="10"/>
		<rimColorConfiguration name="$l10n_Black"  color="0.016 0.016 0.016 6" price="5"/>
		<rimColorConfiguration name="$l10n_Gray"   color="0.27 0.34 0.36 6" price="5"/>
		<rimColorConfiguration name="$l10n_White"  color="0.88 0.88 0.66 6" price="5"/>
    </rimColorConfigurations>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel filename="wheels/scepka.xml" isLeft="true">
                        <physics restLoad="0.6" repr="wheelLeft" forcePointRatio="0.2" initialCompression="40" suspTravel="0.05" spring="80" damper="20" rotationDamping="0.006"/>
                    </wheel>
					<wheel filename="wheels/scepka.xml" isLeft="false">
                        <physics restLoad="0.6" repr="wheelRight" forcePointRatio="0.2" initialCompression="40" suspTravel="0.05" spring="80" damper="20" rotationDamping="0.006"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <color0>0.03 0.03 0.03 0</color0>
            <color1>1 1 1 9</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n5_1.xml" isLeft="true"  scale="0.15 0.15 0.15"/>
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n5_1.xml" isLeft="false" scale="0.15 0.15 0.15"/>
        </hubs>
    </wheels>
	
	<attachable>
        <inputAttacherJointConfigurations >
            <inputAttacherJointConfiguration >
				<inputAttacherJoint node="inputAttacherJoint" jointType="trailerLow" attacherHeight="0.6"/>
				<inputAttacherJoint node="inputAttacherJoint" jointType="trailer" attacherHeight="0.6"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
        <support animationName="moveSupport"/>
		<brakeForce force="0.5" />
    </attachable>
	
	<attacherJoints comboDuration="1">
		<attacherJoint node="attacherJoint_1" jointType="trailerLow" lowerRotLimit="10 70 50" upperRotLimit="10 70 50" allowsJointLimitMovement="false" upperRotRotationOffset="0" comboTime="0">
			<schema position="1 0.5" rotation="0" invertX="false"/>
		</attacherJoint>
		<attacherJoint node="attacherJoint_1" jointType="trailer" lowerRotLimit="10 70 50" upperRotLimit="10 70 50" allowsJointLimitMovement="false" upperRotRotationOffset="0" comboTime="0">
			<schema position="1 0.5" rotation="0" invertX="false"/>
		</attacherJoint>
		<attacherJoint node="attacherJoint_2" jointType="trailerLow" lowerRotLimit="10 70 50" upperRotLimit="10 70 50" allowsJointLimitMovement="false" upperRotRotationOffset="0" comboTime="1">
			<schema position="1 -0.5" rotation="0" invertX="false"/>
		</attacherJoint>
		<attacherJoint node="attacherJoint_2" jointType="trailer" lowerRotLimit="10 70 50" upperRotLimit="10 70 50" allowsJointLimitMovement="false" upperRotRotationOffset="0" comboTime="1">
			<schema position="1 -0.5" rotation="0" invertX="false"/>
		</attacherJoint>
		<sounds>
			<attach template="ATTACH_01" linkNode="Scepka_component1"/>
		</sounds>
    </attacherJoints>

    <connectionHoses>
		<connectionHoseConfigurations>
			<connectionHoseConfiguration>
					<hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulic_1" length="1.3" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulic_2" length="1.3" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulic_7" length="2.5" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulic_8" length="2.5" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="2" type="hydraulicIn"  node="hydraulic_1" length="1.3" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="2" type="hydraulicOut" node="hydraulic_2" length="1.3" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="2" type="hydraulicIn"  node="hydraulic_7" length="2.5" diameter="0.02" straighteningFactor="0.5"/>
					<hose inputAttacherJointIndices="2" type="hydraulicOut" node="hydraulic_8" length="2.5" diameter="0.02" straighteningFactor="0.5"/>
					<target attacherJointIndices="1"    type="hydraulicIn"  node="hydraulic_3"/>
					<target attacherJointIndices="1"    type="hydraulicOut" node="hydraulic_4"/>
					<target attacherJointIndices="2"    type="hydraulicIn" 	node="hydraulic_3"/>
					<target attacherJointIndices="2"    type="hydraulicOut" node="hydraulic_4"/>
					<target attacherJointIndices="3"    type="hydraulicIn"  node="hydraulic_5"/>
					<target attacherJointIndices="3"    type="hydraulicOut" node="hydraulic_6"/>
					<target attacherJointIndices="4"    type="hydraulicIn"  node="hydraulic_5"/>
					<target attacherJointIndices="4"    type="hydraulicOut" node="hydraulic_6"/>
					<target attacherJointIndices="3"    type="TOOL_CONNECTOR_BOTTOM_01"  node="0>1|13|1">
						<objectChange node="0>1|7|0" 	visibilityActive="false" visibilityInactive="true"/>
						<objectChange node="0>1|9|0" 	visibilityActive="true" visibilityInactive="false"/>
						<objectChange node="0>1|11|1|0" visibilityActive="true" visibilityInactive="false"/>
						<objectChange node="0>1|13|2" 	visibilityActive="true" visibilityInactive="false"/>
					</target>
					<target attacherJointIndices="3"    type="TOOL_CONNECTOR_BOTTOM_04"  node="0>1|14|1">
						<objectChange node="0>1|7|1" 	visibilityActive="false" visibilityInactive="true"/>
						<objectChange node="0>1|9|1" 	visibilityActive="true" visibilityInactive="false"/>
						<objectChange node="0>1|11|0|0" visibilityActive="true" visibilityInactive="false"/>
						<objectChange node="0>1|14|2" 	visibilityActive="true" visibilityInactive="false"/>
					</target>
					<target attacherJointIndices="1"    type="TOOL_CONNECTOR_BOTTOM_01"  node="0>1|12|0|0">
						<objectChange node="0>1|8|0" 	visibilityActive="false" visibilityInactive="true"/>
						<objectChange node="0>1|10|0" 	visibilityActive="true" visibilityInactive="false"/>
					</target>
					<target attacherJointIndices="1"    type="TOOL_CONNECTOR_BOTTOM_04"  node="0>1|12|1|0">
						<objectChange node="0>1|8|1" 	visibilityActive="false" visibilityInactive="true"/>
						<objectChange node="0>1|10|1" 	visibilityActive="true" visibilityInactive="false"/>
					</target>
					<localHose>
						<hose type="TOOL_CONNECTOR_BOTTOM_01" node="0>1|11|0|0" length="1.65" realLength="1.2" diameter="0.06" startStraightening="1" endStraightening="1" /><!-- minCenterPointAngle="100" adapterType="DEFAULT"-->
						<target type="TOOL_CONNECTOR_BOTTOM_01" node="0>1|14|0" length="1.65" startStraightening="1" endStraightening="1"/>
					</localHose>
					<localHose>
						<hose type="TOOL_CONNECTOR_BOTTOM_04" node="0>1|11|1|0" length="1.75" realLength="1.25" diameter="0.06" startStraightening="1" endStraightening="1" />
						<target type="TOOL_CONNECTOR_BOTTOM_04" node="0>1|13|0" length="1.75" startStraightening="1" endStraightening="1"/>
					</localHose>
			</connectionHoseConfiguration>
		</connectionHoseConfigurations>
    </connectionHoses>

    <animations>
        <animation name="moveSupport">
            <part node="support_1" startTime="0" endTime="1" startRot="90 0 0" endRot="0 0 0"/>
            <part node="support_2" startTime="0" endTime="1" startTrans="0 0.8 1.88" endTrans="0 0.22 1.88"/>
        </animation>
		<animation name="openCover_1">
            <part node="0>5|0" startTime="0" endTime="1" endRot="110 0 0" startRot="0 0 0"/>
        </animation>
        <animation name="openCover_2">
            <part node="0>5|1" startTime="0" endTime="1" endRot="100 0 0" startRot="0 0 0"/>
        </animation>
    </animations>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="10" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="seeds fertilizer" capacity="453">
                        <exactFillRootNode node="0>6|0" extraEffectDistance="0.6"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="seeds fertilizer" capacity="212">
                        <exactFillRootNode node="0>6|3" extraEffectDistance="0.4"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration price="0">
				<volumes>
                    <volume node="0>6|1" maxDelta="0.05" maxAllowedHeapAngle="10" fillUnitIndex="1"/>
                    <volume node="0>6|2" maxDelta="0.05" maxAllowedHeapAngle="10" fillUnitIndex="1"/>
                    <volume node="0>6|4" maxDelta="0.05" maxAllowedHeapAngle="10" fillUnitIndex="2"/>
                    <volume node="0>6|5" maxDelta="0.05" maxAllowedHeapAngle="10" fillUnitIndex="2"/>
                </volumes>
				<objectChange node="0>1|3" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|4" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|5" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|6" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|7" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|8" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|9" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|10" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|11" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|1" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|2|0" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|2|1" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|2|2" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>5|0" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>5|1" 		visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|3|0" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>4|3|1" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|13" 	visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>1|14" 	visibilityActive="true" visibilityInactive="false"/>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>
	
    <cover>
        <coverConfigurations>
			<coverConfiguration>
                <cover openAnimation="openCover_1" fillUnitIndices="1" openOnBuy="false"/> 
                <cover openAnimation="openCover_2" fillUnitIndices="2" openOnBuy="false"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
	
	<turnOnVehicle turnOffIfNotAllowed="true">
		<sounds>
            <start template="DEFAULT_COMPRESSOR_AIR_BLOWER_START"/>
            <work template="DEFAULT_COMPRESSOR_AIR_BLOWER"/>
            <stop template="DEFAULT_COMPRESSOR_AIR_BLOWER_STOP"/>
        </sounds>
	</turnOnVehicle>
	
	<ai>
		<needsLowering value="true"/>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="5"/>
		<agentAttachment jointNode="inputAttacherJoint" rotCenterWheelIndices="1 2" width="4" height="1.5" length="4" />
    </ai>

	<baseMaterial>
        <material name="Rama" baseNode="color_1">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
			<shaderParameter name="colorMat1" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="Bunker" baseNode="0>4|1">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
			<shaderParameter name="colorMat1" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="Cover1" baseNode="0>5|0">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
			<shaderParameter name="colorMat1" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="Cover2" baseNode="0>5|1">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
			<shaderParameter name="colorMat1" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="Opora" baseNode="color_2">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="Vent" baseNode="0>4|2|0">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
        </material>
		<material name="CoverVent" baseNode="0>4|2|1">
            <shaderParameter name="colorMat0" value="0.7 0.07 0.05 6"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations useDefaultColors="false">
        <baseMaterialConfiguration name="$l10n_Red"   color="0.7 0.07 0.05 6" price="0"/>
	    <baseMaterialConfiguration name="$l10n_Bordo" color="0.3 0.05 0.05 6" price="50"/>
        <baseMaterialConfiguration name="$l10n_Green" color=".077 0.24 0.12 6" price="50"/>
		<baseMaterialConfiguration name="$l10n_Blue"  color="0.0 0.2 0.6 6" price="50"/>
        <material name="Rama"  		shaderParameter="colorMat0"/>
        <material name="Rama"  		shaderParameter="colorMat1"/>
		<material name="Bunker" 	shaderParameter="colorMat0"/>
        <material name="Bunker" 	shaderParameter="colorMat1"/>
		<material name="Cover1" 	shaderParameter="colorMat0"/>
        <material name="Cover1" 	shaderParameter="colorMat1"/>
		<material name="Cover2" 	shaderParameter="colorMat0"/>
        <material name="Cover2" 	shaderParameter="colorMat1"/>
		<material name="Opora" 		shaderParameter="colorMat0"/>
		<material name="Vent" 		shaderParameter="colorMat0"/>
		<material name="CoverVent"	shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>
	
    <foliageBending>
        <bendingNode minX="-2" maxX="1.8" minZ="-2.2" maxZ="2.2" yOffset="0.4"/>
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="34" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
	
	<i3dMappings>
        <i3dMapping id="Scepka_component1"  node="0>"/>
		<i3dMapping id="wheelLeft"          node="0>0|0"/>
        <i3dMapping id="wheelRight"         node="0>0|1"/>
        <i3dMapping id="inputAttacherJoint" node="0>1|0"/>
        <i3dMapping id="attacherJoint_1"    node="0>1|1"/>
        <i3dMapping id="attacherJoint_2"    node="0>1|2"/>
        <i3dMapping id="support_1"          node="0>2|0"/>
        <i3dMapping id="support_2"          node="0>2|1"/>
        <i3dMapping id="hydraulic_1"        node="0>3|0"/>
        <i3dMapping id="hydraulic_2"        node="0>3|1"/>
        <i3dMapping id="hydraulic_3"        node="0>3|2"/>
        <i3dMapping id="hydraulic_4"        node="0>3|3"/>
        <i3dMapping id="hydraulic_5"        node="0>3|5"/>
        <i3dMapping id="hydraulic_6"        node="0>3|4"/>
		<i3dMapping id="hydraulic_7"        node="0>3|6"/>
        <i3dMapping id="hydraulic_8"        node="0>3|7"/>

        <i3dMapping id="color_1"            node="0>4|0"/>
        <i3dMapping id="color_2"            node="0>2|0"/>
    </i3dMappings>
</vehicle>