<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <annotation>Copyright (C) Repi, All Rights Reserved. Powered by MRA Modding !</annotation>
    <storeData>
        <name>
                                                МаЗ 642208
                                </name>
        <image>store.dds</image>
        <price>50000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAZ</brand>
        <category>trucks</category>
        <vertexBufferMemoryUsage>2726952</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>281778</indexBufferMemoryUsage>
        <textureMemoryUsage>25888840</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    <dailyUpkeep>0</dailyUpkeep><functions />
	</storeData>
    <base>
        <filename>Maz_642208.i3d</filename>
        <size width="3.8" length="7.5" lengthOffset="-0.2"/>
        <components>
            <component centerOfMass="0 -0.09 0.2" solverIterationCount="8" mass="4349" />
        </components>
        <schemaOverlay attacherJointPosition="0.5 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-36" rotMax="36">
                        <physics rotSpeed="60" repr="0>0"  radius="0.5" width="4" mass="0.3" suspTravel="0.2" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
                
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-36" rotMax="36">
                        <physics rotSpeed="60" repr="0>1"  radius="0.5"  width="4" mass="0.3" suspTravel="0.2" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
                
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="0>2" radius="0.5"  width="7" mass="0.3" suspTravel="0.22" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
                
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="0>3" radius="0.5" width="7" mass="0.3" suspTravel="0.22" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
                
                    <wheel hasTireTracks="true" hasParticles="true" > 
                        <physics rotSpeed="0" repr="0>4" radius="0.5" width="7" mass="0.3" suspTravel="0.22" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
               
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" repr="0>5" radius="0.5" width="7" mass="0.3" suspTravel="0.22" deltaY="0.1" spring="90" damper="90" tireTrackAtlasIndex="4"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="50" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
        <attacherJoints comboDuration="2">
        <attacherJointConfigurations>
            <attacherJointConfiguration>
                <attacherJoint node="0>8" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 125 12">
                    <schema position="1 0" rotation="0" invertX="false" />
                    <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
                </attacherJoint>
            </attacherJointConfiguration>
        </attacherJointConfigurations>

        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints>
     
	 <lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
             <state lightTypes="0 1 3"/>
		</states>
        <realLights>
            <low>
                <light node="0>15|0" lightTypes="0"/>
				<light node="0>15|1" lightTypes="1"/>
				<light node="0>15|2" lightTypes="2"/>
			    <light node="0>15|7" lightTypes="3"/>
				<turnLightLeft node="0>15|8"/>
				<turnLightLeft node="0>15|4"/>
				<turnLightRight node="0>15|9"/>
				<turnLightRight node="0>15|5"/>
			</low>
            <high>
               <light node="0>15|0" lightTypes="0"/>
               <light node="0>15|1" lightTypes="1"/>
			   <light node="0>15|2" lightTypes="2"/>
			   <light node="0>15|7" lightTypes="3"/>
			   <turnLightLeft node="0>15|8"/>
			   <turnLightLeft node="0>15|4"/>
			   <turnLightRight node="0>15|9"/>
			   <turnLightRight node="0>15|5"/>
			</high>
        </realLights>
		
		
    <brakeLights>
        <brakeLight node="0>15|3"/>
    </brakeLights>
	
	<reverseLights>
        <reverseLight node="0>15|6"/>
    </reverseLights> 
		<sounds>
            <switchLight template="SWITCH_01" />
            <turnLight template="SWITCH_TURNLIGHT" />
        </sounds>
    </lights>
	 
	 <enterable>
        <exitPoint node="0>7"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>13|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>13|1"/>
            <target ikChain="leftFoot" targetNode="0>13|2"/>
            <target ikChain="rightArm" targetNode="0>12|0|0"/>
            <target ikChain="leftArm" targetNode="0>12|0|1"/>
        </characterNode>
        <cameras>
            <camera node="0>6|0" rotatable="true" rotateNode="0>6" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="25">
                <raycastNode node="0>6|1"/>
                <raycastNode node="0>6|2"/>
              
            </camera>
            <camera node="0>11|0|2" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
      
    </enterable>
    <motorized>
         <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="290" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
               
            </consumerConfiguration>
        </consumerConfigurations>	
        <motorConfigurations>
            <motorConfiguration>
                <motor torqueScale="1.4" minRpm="800" maxRpm="2300" maxForwardSpeed="80" maxBackwardSpeed="15" brakeForce="8" lowBrakeForceScale="0.01" lowBrakeForceSpeedLimit="0.3">
                    <torque normRpm="0.45" torque="0.52"/>
                    <torque normRpm="0.5" torque="0.5"/>
                    <torque normRpm="0.59" torque="0.85"/>
                    <torque normRpm="0.72" torque="1"/>
                    <torque normRpm="0.86" torque="0.80"/>
                    <torque normRpm="1" torque="0.65"/>
                </motor>
                <transmission minForwardGearRatio="9" maxForwardGearRatio="244" minBackwardGearRatio="50" maxBackwardGearRatio="130"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>10" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        </exhaustEffects>
         <sounds externalSoundFile="sounds/MAZ_504.xml" />
        <dashboards>
            <dashboard displayType="ANIMATION" valueType="speed"            animName="speedDisplay"  minValueAnim="0" maxValueAnim="100" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="motorTemperature" animName="tempDisplay"  minValueAnim="0" maxValueAnim="120" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="rpm"              animName="rpmDisplay"  minValueAnim="0" maxValueAnim="3000" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </motorized>
    <drivable>
        <steeringWheel node="0>12|0" indoorRotation="360" outdoorRotation="37"/>
    </drivable>
     <animations>
        <animation name="speedDisplay">
            <part node="0>14|0" startTime="0" endTime="1" startRot="0 0 -4" endRot="0 0 -210"/>
        </animation>
		<animation name="tempDisplay">
             <part node="0>14|5|0" startTime="0.1" endTime="0.3" startRot="0 0 0" endRot="0 0 -50"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>14|6" startTime="0" endTime="1" startRot="0 0 -42" endRot="0 0 -179"/>
			<part node="0>14|1" startTime="0" endTime="1" startRot="0 0 -42" endRot="0 0 -179"/>
            <part node="0>14|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -59"/>
            <part node="0>14|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -22"/>
            <part node="0>14|5|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -22"/>
		</animation>
        <animation name="fuelDisplay">
            <part node="0>14|2" startTime="0" endTime="1" startRot="0 0 14" endRot="0 0 -80"/>
        </animation>
    </animations>
   <cylindered>
        <movingTools>
           <movingTool node="0>11|0|0" playSound="false">
                <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6"/>
                <rotation rotSpeed="100" rotAcceleration="160" rotMax="0" rotMin="-65" rotationAxis="2"/>
            </movingTool>
            <movingTool node="0>11|0|1" playSound="false">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.6"/>
                <rotation rotSpeed="100" rotAcceleration="160" rotMax="65" rotMin="0" rotationAxis="2"/>
            </movingTool>
        </movingTools>
		
    </cylindered>
	 
	  <dashboard>
        <groups>
        <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
    </groups>
    </dashboard>
	 
	 <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="400" >
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="loadingBarFuel" minValueAnim="0" maxValueAnim="35" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
   <honk>
        <sound template="HONK_LIZARD_TRUCK" linkNode="0>" />
   </honk>
    <ai>
        <collisionTrigger node="0>9"/>
    </ai>
   
</vehicle>
