<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <storeData>
        <name>            <en>GaZ-52</en>
        </name>
        <specs>
            <power>115</power>
            <maxSpeed>70</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store.dds</image>
        <price>6800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>GAZ</brand>
        <category>trucks</category>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>GAZ52.i3d</filename>
        <size width="3.5" length="7"/>
        <components>
            <component centerOfMass="0 0.6 0" solverIterationCount="40" mass="3250" />
        </components>
        <schemaOverlay attacherJointPosition="0.5 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.2">
                    <wheel filename="TapkiPered.xml" configId="basic" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.3" repr="0>0|0" driveNode="0>0|0|0" forcePointRatio="0.2" initialCompression="35" suspTravel="0.14" spring="15" damper="40"/>
                    </wheel>
                    <wheel filename="TapkiPered.xml" configId="basic" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.3" repr="0>0|1|0|0" driveNode="0>0|1|0|0|0" forcePointRatio="0.2" initialCompression="35" suspTravel="0.14" spring="15" damper="40"/>
                    </wheel>
                    <wheel filename="TapkiZad.xml" configId="basic" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6" repr="0>0|2" driveNode="0>0|2|0" forcePointRatio="0.3" initialCompression="45" suspTravel="0.14" spring="20" damper="50"/>
                        <additionalWheel filename="TapkiZad.xml" isLeft="true" configId="basic" offset="-0.71" hasTireTracks="true">
                            <connector filename="Tapki.i3d" node="1|0"/>
                        </additionalWheel>
                    </wheel>
                    <wheel filename="TapkiZad.xml" configId="basic" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.6" repr="0>0|3" driveNode="0>0|3|0" forcePointRatio="0.3" initialCompression="45" suspTravel="0.14" spring="20" damper="50"/>
                        <additionalWheel filename="TapkiZad.xml" isLeft="false" configId="basic" offset="-0.71" hasTireTracks="true">
                            <connector filename="Tapki.i3d" node="1|1"/>
                        </additionalWheel>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="50" rotMax="37" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <speedRotatingParts>
        <speedRotatingPart node="0>0|2|2|0|0" wheelIndex="1" wheelScale="2"/>
        <speedRotatingPart node="0>0|2|2|1|0" wheelIndex="1" wheelScale="2"/>
        <speedRotatingPart node="0>0|2|2|2|0" wheelIndex="1" wheelScale="2"/>
        <speedRotatingPart node="0>0|2|2|3|0" wheelIndex="1" wheelScale="2"/>
    </speedRotatingParts>
    <attacherJoints>
        <attacherJoint node="0>7|0" jointType="trailerLow" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="0 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>7|0" jointType="trailer" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>7|1" jointType="trailerLow" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="0 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>7|1" jointType="trailer" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>7|2" jointType="trailerLow" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="0 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>7|2" jointType="trailer" lowerRotLimit="12 175 12" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            
        </sounds>
    </attacherJoints>
    <lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
        </states>
        <realLights>
            <low>
                <light node="0>10|0|1" lightTypes="0"/>
                <light node="0>10|1|0|1" lightTypes="0"/>
                <light node="0>10|0|2" lightTypes="0"/>
				
               <turnLightLeft node="0>10|3|0|1"/>
                <turnLightLeft node="0>10|3|0|2"/>
                <turnLightRight node="0>10|3|1|1"/>
                <turnLightRight node="0>10|3|1|2"/>
                <brakeLight node="0>10|2|1"/>
                <reverseLight node="0>10|5|1"/>
            </low>
            <high>
                <light node="0>10|0|3" lightTypes="0"/>
                <light node="0>10|2|1" lightTypes="0"/>
                <light node="0>10|1|0|2" lightTypes="0"/>
                <light node="0>10|1|1|1" lightTypes="0"/>
                <light node="0>10|0|4" lightTypes="1"/>
               
                <turnLightLeft node="0>10|3|0|1"/>
                <turnLightLeft node="0>10|3|0|2"/>
                <turnLightRight node="0>10|3|1|1"/>
                <turnLightRight node="0>10|3|1|2"/>
                <brakeLight node="0>10|2|1"/>
                <reverseLight node="0>10|5|1"/>
            </high>
        </realLights>
		
		<defaultLights>
            <defaultLight node="0>10|0|0" lightTypes="0"/>	
           	<defaultLight node="0>10|1|0" lightTypes="1"/>
			<defaultLight node="0>10|1|1" lightTypes="2"/>
			<defaultLight node="0>10|2|0" lightTypes="0"/>
			<defaultLight node="0>8|1|5|0|1" lightTypes="0"/>
        </defaultLights>
		
		 <brakeLights>
            <brakeLight node="0>10|4|0"/>		
        </brakeLights>
		
		 <turnLights>
            <turnLightLeft node="0>10|3|0|0" />
            <turnLightRight node="0>10|3|1|0" />
        </turnLights>
		
		<reverseLights>
            <reverseLight node="0>10|5|0"/>		
        </reverseLights>
		
		<sounds>
            <switchLight template="SWITCH_01" />
            <turnLight template="SWITCH_TURNLIGHT" />
        </sounds>
    </lights>
    <enterable>
        <exitPoint node="0>3"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>5|0" cameraMinDistance="1.0" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>5|1"/>
            <target ikChain="leftFoot" targetNode="0>5|2"/>
            <target ikChain="rightArm" targetNode="0>2|0|0"/>
            <target ikChain="leftArm" targetNode="0>2|0|1"/>
        </characterNode>
        <cameras>
            <camera node="0>1|0|0" rotatable="true" rotateNode="0>1|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
                <raycastNode node="0>1|2"/>
                <raycastNode node="0>1|3"/>
                <raycastNode node="0>1|4"/>
            </camera>
            <camera node="0>1|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
        <mirrors>
            <mirror node="0>8|1|1|0|1" prio="1"/>
            <mirror node="0>8|1|2|0|1" prio="2"/>
        </mirrors>
    </enterable>
    <motorized>
	      <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="138" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
          </consumerConfiguration>
        </consumerConfigurations> 
        <motorConfigurations>
            <motorConfiguration name="ЗМЗ-53" price="1000">
                <motor torqueScale="0.606" minRpm="1000" maxRpm="2200" maxForwardSpeed="70" maxBackwardSpeed="15" brakeForce="4.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.001">
                    <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="6" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="3" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>4" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.8" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        </exhaustEffects>
         <sounds externalSoundFile="Sounds/gaz.xml" />
	   <dashboards>
            <dashboard displayType="ANIMATION" valueType="speed"            animName="speedDisplay"  minValueAnim="0" maxValueAnim="70" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="rpm"              animName="rpmDisplay"  minValueAnim="500" maxValueAnim="1000" 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>2|0" indoorRotation="900" outdoorRotation="55"/>
    </drivable>
    <animations>
       
        <animation name="speedDisplay">
            <part node="0>9|0|0|0|0" startTime="0" endTime="1" startRot="0 -34 0" endRot="0 -114 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>9|0|0|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -90 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>9|0|0|2|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 20 0"/>
            <part node="0>9|0|0|3|0" startTime="0" endTime="1" startRot="0 45 0" endRot="0 0 0"/>
            <part node="0>9|0|0|4|0" startTime="0" endTime="1" startRot="0 40 0" endRot="0 0 0"/>
        </animation>
       
    </animations>
    <cylindered>
        <sounds>
           <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </cylindered>
    <fillUnit>
       <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="FLOUR SUGAR BRAN BREAD" capacity="9500">
                        <exactFillRootNode node="0>6|3"/>
                        <fillRootNode node="0>"/>
                        <fillMassNode node="0>"/>
                        <autoAimTargetNode node="0>6|2"/>
                    </fillUnit>
                    <fillUnit capacity="91" unit="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="false">
                  <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" minValueAnim="0" maxValueAnim="160" groups="MOTOR_ACTIVE"/>
					</fillUnit>
                </fillUnits>
			</fillUnitConfiguration>
		</fillUnitConfigurations>
    </fillUnit>
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>11|2|0|0" maxDelta="0.12" maxAllowedHeapAngle="12" fillUnitIndex="1"/>
                 </volumes>
            </fillVolumeConfiguration>
			
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>11|2|1|0|0" width="1.0" length="0.8" minHeight="0.5" priority="2"/>
                <node node="0>11|2|1|0|1" width="1.0" length="0.8" minHeight="0.5" priority="2"/>
                <node node="0>11|2|1|1|0" width="2.0" length="4.0"/>
                <node node="0>11|2|1|1|1" width="2.0" length="4.0"/>
            </unloadInfo>
        </unloadInfos>
    
   
        <heightNodes>
            <heightNode fillVolumeIndex="1">
                <refNode node="0>11|2|1|0|0"/>
                <refNode node="0>11|2|1|0|1"/>
                <node node="0>11|3|0|0" baseScale="1 1 1" transAxis="0 0 0"/>
            </heightNode>
        </heightNodes>
   </fillVolume>
    <dischargeable>
        <dischargeNode node="0>6|1|0" emptySpeed="800" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.5"/>
           
        </dischargeNode>
    </dischargeable>
    
   
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <honk>
     <sound template="HONK_TRUCK" linkNode="0>" />
    </honk>
   <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-3.15" maxZ="3.1" yOffset="0.5" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="-3.5" maxZ="-3.05" yOffset="0.4" />
    </foliageBending>
    <ai>
        <collisionTrigger node="0>6|0"/>
    </ai>
	
	
 
</vehicle>
