<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
			<en>MTZ 1221</en>
			<de>MTZ 1221</de>
			<ru>МТЗ 1221</ru>
		</name>
        <specs>
            <power>130</power>
            <maxSpeed>43</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store_MTZ1221.dds"</image>
        <price>75000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MTZ</brand>
        <category>tractorsM</category>
        <vertexBufferMemoryUsage>1728608</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>295512</indexBufferMemoryUsage>
        <textureMemoryUsage>4700088</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>MTZ1221.i3d</filename>
        <size width="3.6" length="6.5"/>
        <components>
            <component centerOfMass="0 0.8 -1.1" solverIterationCount="10" mass="2825"/>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="2500"/>
            <joint component1="1" component2="2" node="1>2" rotLimit="0 0 10" transLimit="0 0 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <turnedOn name="DEFAULT_VEHICLE_ON"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
            <turnedOnSelected name="DEFAULT_VEHICLE_SELECTED_ON"/>
        </schemaOverlay>
    </base>
    <designConfigurations>
        <designConfiguration name="С крыльями" price="0">
            <objectChange node="1>0|4" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="1>1|4" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="Без крыльев" price="500">
            <objectChange node="1>0|4" visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="1>1|4" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
    </designConfigurations>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.7">
                    <wheel filename="Wheel/Wheel_f.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.0" repr="1>0" driveNode="1>0|0" forcePointRatio="0.2" initialCompression="25" suspTravel="0.3" spring="20" damper="80"/>
                        <fender node="1>0|4" rotMax="32"/>
                    </wheel>
                    <wheel filename="Wheel/Wheel_f.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.0" repr="1>1" driveNode="1>1|0" forcePointRatio="0.2" initialCompression="25" suspTravel="0.3" spring="20" damper="80"/>
                        <fender node="1>1|4" rotMin="-32"/>
                    </wheel>
                    <wheel filename="Wheel/Wheel_b.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.1" repr="0>0" forcePointRatio="0.3" initialCompression="25" suspTravel="0.3" spring="20" damper="80"/>
                    </wheel>
                    <wheel filename="Wheel/Wheel_b.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.1" repr="0>1" forcePointRatio="0.3" initialCompression="25" suspTravel="0.3" spring="20" damper="80"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="60" rotMax="37" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <speedRotatingParts>
        <speedRotatingPart node="0>34|11|0" wheelIndex="3" wheelScale="-2"/>
        <speedRotatingPart node="0>34|12|0" wheelIndex="3" wheelScale="-2"/>
        <speedRotatingPart node="0>34|13|0" wheelIndex="3" wheelScale="-2"/>
    </speedRotatingParts>
    <attachable>
        <airConsumer usage="1500"/>
    </attachable>
    <connectionHoses>
        <target attacherJointIndices="1 2 3" type="airDoubleRed" node="0>31|21|1" socket="air_red"/>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>31|21|6">
        </target>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>31|21|7">
        </target>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>31|21|8">
        </target>
        <target attacherJointIndices="1 2 3" type="hydraulicOut" node="0>31|21|9">
        </target>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>31|21|10">
        </target>
        <target attacherJointIndices="1 2 3" type="electric" node="0>31|21|0" socket="electric"/>
    </connectionHoses>
    <attacherJoints comboDuration="2">
        <attacherJoint node="0>11|0|0" rootNode="0>" upperRotationOffset="-0.82" moveTime="2.5" comboTime="1">
            <distanceToGround lower="0.40" upper="1.13"/>
            <rotationNode node="0>11" upperRotation="35 0 0" lowerRotation="-16 0 0"/>
            <rotationNode2 node="0>11|0"/>
            <bottomArm rotationNode="0>12" translationNode="0>12|0" referenceNode="0>12|0|0" zScale="-1"/>
            <topArm rotationNode="0>13" translationNode="0>13|0" referenceNode="0>13|0|0" zScale="-1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
			<objectChange node="0>31|5" visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="0>31|8" visibilityActive="false" visibilityInactive="true"/>
        </attacherJoint>
		        <attacherJoint node="0>31|5|0" rootNode="0>" jointType="trailerLow" lowerRotLimit="10 80 80" comboTime="1" allowsJointLimitMovement="false" upperRotRotationOffset="0">
            <schema position="1 0" rotation="0" invertX="false"/>
            <objectChange node="0>12" rotationActive="21 0 0" rotationInactive="0 0 0"/>
        </attacherJoint>
        <attacherJoint node="0>31|5|2" rootNode="0>" jointType="trailer" lowerRotLimit="10 80 80" comboTime="1" allowsJointLimitMovement="false" upperRotRotationOffset="0">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>16" jointType="trailer" lowerRotLimit="10 60 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
            <schema position="1 0" rotation="0" invertX="true" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints>
    <powerTakeOffs>
        <output outputNode="0>20" attacherJointIndices="1 2 3"/>
    </powerTakeOffs>
    <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>

        <realLights>
            <low>
                <light node="0>10|0|0"       lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>10|1|2"    lightTypes="1"/>
                <light node="0>10|1|0"   lightTypes="2"/>
                <light node="0>10|0|1"         lightTypes="3" />
                <light node="0>10|0|2"        lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>10|1|3"    lightTypes="1"/>
                <light node="0>10|1|4"    lightTypes="1"/>
                <light node="0>10|1|1"   lightTypes="2"/>
                <light node="0>10|0|3"          lightTypes="3"/>
                <light node="0>10|2|0"       lightTypes="0"/>
				<light node="0>10|1|5"       lightTypes="0"/>
                <brakeLight node="0>10|2|0" />
                <turnLightLeft node="0>10|3|0" />
                <turnLightRight node="0>10|3|1" />
            </low>
            <high>
				<light node="0>10|0|0"       lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>10|1|2"    lightTypes="1"/>
                <light node="0>10|1|0"   lightTypes="2"/>
                <light node="0>10|0|1"         lightTypes="3" />
                <light node="0>10|0|2"        lightTypes="0" excludedLightTypes="2 3" />
                <light node="0>10|1|3"    lightTypes="1"/>
                <light node="0>10|1|4"    lightTypes="1"/>
                <light node="0>10|1|1"   lightTypes="2"/>
                <light node="0>10|0|3"          lightTypes="3"/>
                <light node="0>10|2|0"       lightTypes="0"/>
				<light node="0>10|1|5"       lightTypes="0"/>
                <brakeLight node="0>10|2|0" />
                <turnLightLeft node="0>10|3|0" />
                <turnLightRight node="0>10|3|1" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>31|9|12|0" lightTypes="0"/>
            <defaultLight shaderNode="0>28|0" lightTypes="0"/>
            <defaultLight shaderNode="0>31|9|11|0" lightTypes="0"/>
            <defaultLight shaderNode="0>37|8|1|0" lightTypes="0 3"/>
            <defaultLight shaderNode="0>37|8|2|0" lightTypes="0 3"/>
            <defaultLight shaderNode="0>31|9|6|0|1" lightTypes="0 3"/>
            <defaultLight shaderNode="0>31|9|6|1|1" lightTypes="0 3"/>
            <defaultLight shaderNode="0>31|9|4|3|0|1" lightTypes="1"/>
            <defaultLight shaderNode="0>31|9|4|2|0|1" lightTypes="1"/>
            <defaultLight shaderNode="0>28|1" lightTypes="1"/>
            <defaultLight shaderNode="0>31|9|4|0|0|1" lightTypes="2"/>
            <defaultLight shaderNode="0>31|9|4|1|0|1" lightTypes="2"/>
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="0>31|9|12|1"/>
            <brakeLight shaderNode="0>31|9|11|1"/>
        </brakeLights>

        <turnLights>
            <turnLightLeft shaderNode="0>31|9|11|2" />
            <turnLightLeft shaderNode="0>31|9|6|1|2" />
            <turnLightRight shaderNode="0>31|9|12|2" />
            <turnLightRight shaderNode="0>31|9|6|0|3" />
        </turnLights>

        <beaconLights>
        </beaconLights>

        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>

		<dashboards>
        </dashboards>
    </lights>
    <frontloaderConfigurations>
        <frontloaderConfiguration name="$l10n_ui_no" price="0">
            <objectChange node="0>38" visibilityActive="false"/>
        </frontloaderConfiguration>
        <frontloaderConfiguration name="$l10n_ui_yes" price="1400" icon="$dataS2/menu/hud/configurations/config_loader.png">
            <attacherJoint node="0>38|1" jointType="attachableFrontloader" lowerRotLimit="0 0 0" lowerTransLimit="0 0 0" moveTime="2">
                <rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
                <schema position="0 0.4" rotation="0" invertX="true"/>
            </attacherJoint>
            <objectChange node="0>38" visibilityActive="true" visibilityInactive="false"/>
        </frontloaderConfiguration>
    </frontloaderConfigurations>
    <enterable>
        <exitPoint node="0>8"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>24|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>24|1"/>
            <target ikChain="leftFoot" targetNode="0>24|2"/>
            <target ikChain="rightArm" targetNode="0>23|0|0"/>
            <target ikChain="leftArm" targetNode="0>23|0|1"/>
        </characterNode>
        <characterTargetNodeModifier node="0>24|1" transitionTime="0.1" >
            <state node="0>24|3"   referenceNode="0>34|2" directionReferenceNode="0>34|2|0"/>
            <state node="0>34|4|0" referenceNode="0>34|4" />
        </characterTargetNodeModifier>
        <cameras>
            <camera node="0>4|0" rotatable="true" rotateNode="0>4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
                <raycastNode node="0>6"/>
                <raycastNode node="0>7"/>
            </camera>
            <camera node="0>5|0|0|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
        <mirrors>
            <mirror node="0>31|9|0|0" prio="1" />
            <mirror node="0>31|9|1|0" prio="1" />
            <mirror node="0>31|9|10" prio="2" />
        </mirrors>
    </enterable>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="50"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="3"   fillType="def" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="3" usage="225" fillType="air" permanentConsumption="false" refillLitersPerSecond="300" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>
        <motorConfigurations>
            <motorConfiguration name="$l10n_configuration_valueDefault" price="0">
                <motor torqueScale="0.48" minRpm="800" maxRpm="2200" maxForwardSpeed="43" maxBackwardSpeed="15" brakeForce="3.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.0012">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.97"/>
                    <torque normRpm="0.59" torque="1"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="14.5" maxForwardGearRatio="300" minBackwardGearRatio="40" maxBackwardGearRatio="300"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <animationNodes>
            <animationNode node="0>31|18|0" rotAxis="3" rotSpeed="1400" turnOnFadeTime="4" turnOffFadeTime="3"/>
        </animationNodes>
        <exhaustEffects>
            <exhaustEffect node="0>31|19|0|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.05" maxRpmScale="0.5" xzRotationsOffset="-150 0" xzRotationsForward="0 300" xzRotationsBackward="150 0" xzRotationsLeft="20 80" xzRotationsRight="20 -200"/>
        </exhaustEffects>
        <exhaustFlap node="0>31|19" maxRot="0.2"/>
        <motorStartDuration>5500</motorStartDuration>
        <sounds externalSoundFile="sound/MTZ1221.xml" />	
        <dashboards>
            <dashboard displayType="NUMBER" valueType="speed"    numbers="0>34|23" precision="1" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="30" groups="MOTOR_ACTIVE"/>
        </dashboards>	
    </motorized>
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
    <drivable>
        <steeringWheel node="0>23|0" indoorRotation="360" outdoorRotation="37"/>
        <dashboards>
            <dashboard displayType="ROT"     valueType="accelerationAxis" node="0>34|2"   minRot="0 -24 0" maxRot="30 -24 0"  doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT"     valueType="decelerationAxis" node="0>34|4" minRot="0 0 0" maxRot="8 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>
    <animations>
        <animation name="speedDisplay">
            <part node="0>34|14|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -140 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>34|14|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -90 0"/>
        </animation>
    </animations>
    <cylindered>
        <movingTools>
            <movingTool node="0>12">
                <dependentPart node="0>14"/>
                <dependentPart node="0>15"/>
            </movingTool>
            <movingTool node="0>37|2|0">
                <dependentPart node="0>37|2|0|1"/>
                <dependentPart node="0>37|2|0|2"/>
            </movingTool>
            <movingTool node="0>37|7">
                <dependentPart node="0>37|9"/>
            </movingTool>		
			<movingTool node="0>31|5">
                <controls axis="AXIS_FRONTLOADER_ARM2" invertAxis="false" mouseSpeedFactor="1.2" iconName="CRANE_ARM2_ROTATE_X"/>
                <translation transSpeed="0.5" transAcceleration="10" transMax="1" transMin="0.52" translationAxis="2"/>
                <attacherJoint jointIndices="2 3"/>
            </movingTool>			
        </movingTools>
        <movingParts>
            <movingPart node="0>14" referencePoint="0>15|1" referenceFrame="0>" playSound="false" invertZ="true">
                <translatingPart node="0>14|0"/>
            </movingPart>
            <movingPart node="0>15" referencePoint="0>12|0|1" localReferencePoint="0>15|2" referenceFrame="0>" playSound="false" invertZ="true">
                <dependentPart node="0>15|2"/>
            </movingPart>
            <movingPart node="0>15|2" referencePoint="0>12|0|1" referenceFrame="0>15|0" playSound="false" invertZ="true"/>
            <movingPart node="0>37|2|0|1" referencePoint="0>31|2" referenceFrame="1>" scaleZ="false" playSound="false" isActiveDirty="true">
            <translatingPart node="0>37|2|0|1|0"/>
            </movingPart>
            <movingPart node="0>37|2|0|2" referencePoint="0>31|3" referenceFrame="1>" scaleZ="false" playSound="false" isActiveDirty="true">
            <translatingPart node="0>37|2|0|2|0"/>
            </movingPart>
            <movingPart node="0>37|9" referencePoint="0>37|7|0" referenceFrame="0>37|7|0" isActiveDirty="false">
                <translatingPart node="0>37|9|0"/>
            </movingPart>
            <movingPart node="1>3" referencePoint="1>0|1" referenceFrame="1>" isActiveDirty="true" playSound="false">
                <translatingPart node="1>3|0"/>
            </movingPart>
            <movingPart node="1>4" referencePoint="1>1|1" referenceFrame="1>" isActiveDirty="true" playSound="false">
                <translatingPart node="1>4|0"/>
            </movingPart>
            <movingPart node="1>0|2" referencePoint="1>1|2" referenceFrame="1>" isActiveDirty="true" playSound="false"/>
            <movingPart node="0>12|0|2" referencePoint="0>31|14|0" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false"/>
            <movingPart node="0>12|0|3" referencePoint="0>31|13|0" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false"/>
        </movingParts>
    </cylindered>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="150" >
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="def" capacity="32" />
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
    <honk>
        <sound template="HONK_NEW_HOLLAND_TRACTOR" linkNode="0>" />
    </honk>
    <ai>
        <collisionTrigger node="0>25"/>
    </ai>
    <foliageBending>
        <bendingNode minX="-1.05" maxX="1.05" minZ="-0.45" maxZ="1.95" yOffset="0.6" />
        <bendingNode minX="-1" maxX="1" minZ="-2.25" maxZ="-0.45" yOffset="0.6" />
    </foliageBending>
</vehicle>
