<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <storeData>
        <name><en>55111</en></name>
        <specs>
            <power>240</power>
            <maxSpeed>85</maxSpeed>
        </specs>
        <image>store.dds</image>
        <price>24000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KAMAZ</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>KAMAZ_55111.i3d</filename>
        <size width="3.5" length="7"/>
		<sounds filename="sounds/CL_eSounds.xml"/>
        <components>
            <component centerOfMass="-0.00 0.5 -0.22" solverIterationCount="40" mass="7000"/>
            <component solverIterationCount="20" mass="1000"/>
            <component solverIterationCount="20" mass="1500"/>
            <joint component1="1" component2="2" node="1>2" rotLimit="0 0 -2.5"        transLimit="0 0 0"  breakable="false"/>
            <joint component1="1" component2="3" node="2>2" rotLimit="3.00000024 0 0"  transLimit="0 0 0"  breakable="false"/>
        </components>
        <schemaOverlay name="VEHICLE" attacherJointPosition="0 0"/>
    </base>	
	
	<vehicleTypeConfigurations title="$l10n_configuration_bamper">
        <vehicleTypeConfiguration name="$l10n_option_1" price="0" vehicleType="carFillable"/>
        <vehicleTypeConfiguration name="$l10n_option_2" price="150" vehicleType="carFillable">
            <objectChange node="0>0|0|1|0" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>0|0|1|1" visibilityActive="false" visibilityInactive="true"/>
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.5">
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" repr="1>1|0" driveNode="1>1|0|1|0" radius="0.54" width="0.42" mass="0.4" suspTravel="0.16" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" repr="1>1|1" driveNode="1>1|1|1|0" radius="0.54" width="0.42" mass="0.4" suspTravel="0.16" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="2>0|0" radius="0.54" width="0.84" mass="0.6" suspTravel="0.15" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="2>0|1" radius="0.54" width="0.84" mass="0.6" suspTravel="0.15" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="2>0|2" radius="0.54" width="0.84" mass="0.6" suspTravel="0.15" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" repr="2>0|3" radius="0.54" width="0.84" mass="0.6" suspTravel="0.15" deltaY="0.1" spring="32" damper="45" tireType="street"/>
                        <tire tireTrackAtlasIndex="4"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="55" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>

	<speedRotatingParts>
        <speedRotatingPart node="0>0|0|3|4|0" wheelIndex="1" wheelScale="2"/>
		<speedRotatingPart node="0>0|0|3|3|0" wheelIndex="1" wheelScale="2"/>
    </speedRotatingParts>

    <attacherJoints comboDuration="2">
        <attacherJoint allowsJointLimitMovement="false" comboTime="0" jointType="trailer" lowerRotLimit="10 80 80" node="0>11|0">
            <schema invertX="true" position="1.5 0" rotation="0"/>
        </attacherJoint>
        <attacherJoint allowsJointLimitMovement="false" comboTime="0" jointType="trailerLow" lowerRotLimit="10 80 80" node="0>11|1">
            <schema invertX="true" position="1.5 0" rotation="0"/>
        </attacherJoint>
    </attacherJoints>
    
	<lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
        </states>
        <realLights>
            <low>
                <light node="0>22|0|0" lightTypes="0"/>
                <light node="0>22|1|0" lightTypes="1"/>
                <light node="0>22|5" lightTypes="0 1"/>
            </low>
            <high>
                <light node="0>22|0|0" lightTypes="0"/>
                <light node="0>22|0|0|0" lightTypes="0"/>
                <light node="0>22|1|0" lightTypes="1"/>
                <light node="0>22|5" lightTypes="0 1"/>
            </high>
        </realLights>
        <reverseLights>
            <reverseLight shaderNode="0>0|0|2|2|3"/>
            <reverseLight shaderNode="0>0|0|2|2|4|0"/> 
			<reverseLight shaderNode="0>0|0|2|2|5|0"/>
        </reverseLights>
        <defaultLights>
            <defaultLight shaderNode="0>0|0|1|1|1|0|0" lightTypes="0 1"/>
            <defaultLight shaderNode="0>0|0|1|0|1|0" lightTypes="0 1"/>
            <defaultLight shaderNode="0>0|0|1|1|2|0|1" lightTypes="0"/>
            <defaultLight shaderNode="0>0|0|1|1|2|1|1" lightTypes="0"/>
            <defaultLight shaderNode="0>0|0|1|1|1|0|0" lightTypes="0 1"/>
            <defaultLight shaderNode="0>0|0|2|2|0" lightTypes="0 1"/>
			<defaultLight shaderNode="0>0|0|2|2|4|0" lightTypes="0 1"/>
			<defaultLight shaderNode="0>0|0|2|2|4|1" lightTypes="0 1"/>
			<defaultLight shaderNode="0>0|0|2|2|5|5" lightTypes="0 1"/>
        </defaultLights>
        <turnLights>
            <turnLightLeft shaderNode="0>0|0|2|2|5|2"/>
            <turnLightLeft shaderNode="0>0|0|2|2|2"/>
            <turnLightLeft shaderNode="0>0|0|1|0|1|2"/>
			<turnLightLeft shaderNode="0>0|0|1|1|2|1|0"/>
            <turnLightRight shaderNode="0>0|0|1|1|2|0|0"/>
            <turnLightRight shaderNode="0>0|0|1|0|1|1"/>
            <turnLightRight shaderNode="0>0|0|2|2|1"/>
			<turnLightRight shaderNode="0>0|0|2|2|4|5"/>
        </turnLights>
        <brakeLights>
            <brakeLight shaderNode="0>0|0|2|2|5|4"/>
            <brakeLight shaderNode="0>0|0|2|2|4|3"/>
			<brakeLight shaderNode="0>0|0|2|2|4|2"/>
			<brakeLight shaderNode="0>0|0|2|2|5|4"/>
        </brakeLights>
    </lights>
    
	<enterable>
        <exitPoint node="0>9"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>12|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>12|1"/>
            <target ikChain="leftFoot" targetNode="0>12|2"/>
            <target ikChain="rightArm" targetNode="0>0|0|2|0|1|0|1"/>
            <target ikChain="leftArm" targetNode="0>0|0|2|0|1|0|0"/>
        </characterNode>
        <cameras>
            <camera node="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
                <raycastNode node="0>6"/>
            </camera>
            <camera node="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0.4" shadowFocusBox="0>" suspensionNodeIndex="2"/>
        </cameras>
		
		<mirrors>
            <mirror node="0>0|0|2|0|0|0|4" prio="1"/>
            <mirror node="0>0|0|2|0|0|0|5" prio="1"/>            
			<mirror node="0>0|0|2|0|0|0|6" prio="1"/>
            <mirror node="0>0|0|2|0|0|0|7" prio="1"/>			
        </mirrors>
    </enterable>
    
	<motorized statsType="TRUCK"  >
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="2" usage="13.0" fillType="diesel"/>
            </consumerConfiguration>
        </consumerConfigurations>	

		<motorConfigurations>
			<motorConfiguration name="ЯМЗ-238" hp="240" price="0">
                <motor torqueScale="0.9655" minRpm="850" maxRpm="2200" maxForwardSpeed="85" maxBackwardSpeed="15" brakeForce="4.5" lowBrakeForceScale="0.1" rotInertia="0.003">
				<torque normRpm="0.3" torque="0.5"/>
				<torque normRpm="0.36" torque="1"/>
				<torque normRpm="0.4" torque="1.2"/> 
				<torque normRpm="0.45" torque="1.3"/> 
				<torque normRpm="0.5" torque="1.3"/>	 
				<torque normRpm="0.6" torque="1.2"/>	 
				<torque normRpm="0.65" torque="1.2"/>	 
				<torque normRpm="0.86" torque="1"/> 
		 		<torque normRpm="1.00" torque="0.65"/>
                </motor>

                <transmission autoGearChangeTime="0.5" gearChangeTime="0.4" axleRatio="8" name="$l10n_info_transmission_manual">
                    <directionChange useGear="true" useGroup="false" changeTime="0.5"/>
					<groups type="DEFAULT" changeTime="0.5">
						<group ratio="0.55" name="L" />
						<group ratio="1.0" name="H" />				
					</groups>						
                    <forwardGear gearRatio="7.82"/>
                    <forwardGear gearRatio="4.03"/>
                    <forwardGear gearRatio="2.50"/>
                    <forwardGear gearRatio="1.53"/>
                    <forwardGear gearRatio="1.00"/>				
                    <backwardGear gearRatio="7.38" name="3x"/>					
                </transmission>
            </motorConfiguration>
        </motorConfigurations>
        
		<differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="3.0" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="3.0" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="3.0" wheelIndex1="5" wheelIndex2="6"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="4.0" differentialIndex1="1" differentialIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="4.0" differentialIndex1="3" differentialIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        
		<exhaustEffects>
            <exhaustEffect node="0>15" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.7 0.7 1.5 0.2" maxRpmColor="0.7 0.7 1.5 0.2" minRpmScale="0.3" maxRpmScale="1"/>
        </exhaustEffects>

        <motorStartDuration>2500</motorStartDuration>
				
		<animationNodes>
            <animationNode node="0>0|0|4|0" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>
			<animationNode node="0>0|0|4|1" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>            
			<animationNode node="0>0|0|4|2" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>
			<animationNode node="0>0|0|4|3" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>			
			<animationNode node="0>0|0|4|4" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>
			<animationNode node="0>0|0|4|5" rotSpeed="1200" rotAxis="3" turnOnFadeTime="4" turnOffFadeTime="3"/>
        </animationNodes>
        <dashboards>
            <dashboard valueType="rpm" displayType="ANIMATION" animName="rpmDisplay"/>
            <dashboard valueType="rpm" displayType="ANIMATION" animName="rpmDisplay"/>
            <dashboard valueType="speed" displayType="ANIMATION" animName="speedDisplay"/>
        </dashboards>
    </motorized>
    <drivable>
        <steeringWheel indoorRotation="360" node="0>0|0|2|0|1|0" outdoorRotation="37"/>
    </drivable>
    <animations>
        <animation name="tipAnimationBack">
            <part endRot="-45.00000381 0 0" endTime="20" node="0>0|0|0" startRot="0 0 0" startTime="0.5"/>
            <part endRot="41 0 0" endTime="20" node="0>0|0|0|3|0" startRot="0 0 0" startTime="0.5"/>
            <part endRot="-51.24721909 0 0" endTime="20" node="0>0|0|3|1" startRot="0 0 0" startTime="0.5"/>
            <part endRot="-90 0 0" endTime="20" node="0>0|0|3|1|0" startRot="0 0 0" startTime="0.5"/>
			
			
            <sound template="metalLowVar2"  startTime="0.05"  direction="-1"  volumeScale="55.2" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="0.05"  direction="-1"  volumeScale="55.2" pitchScale="0.6"/>
            <sound template="metalOpen"     startTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
			<sound template="metalOpen"     startTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>            
			<sound template="metalOpen"     startTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
			<sound template="metalOpen"     startTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
            <sound template="metalLowVar2"  startTime="21.99" direction="1"   volumeScale="55.5" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="21.99" direction="1"   volumeScale="55.2" pitchScale="0.6"/>
            <sound template="thudVar2"      startTime="21.9"  direction="-1"  volumeScale="55.4" pitchScale="0.7"/>
            <sound template="clackVar6"     startTime="21.99" direction="-1"  volumeScale="55.7" pitchScale="0.3"/>
            <sound template="cylinderPunch" startTime="0.01"/>
            <sound template="cylinderPunch" startTime="21.99" direction="1" />
			
			
			<sound template="metalLowVar2"  endTime="0.05"  direction="-1"  volumeScale="55.2" pitchScale="0.7"/>
            <sound template="metalClose"    endTime="0.05"  direction="-1"  volumeScale="55.2" pitchScale="0.6"/>
            <sound template="metalOpen"     endTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
			<sound template="metalOpen"     endTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>            
			<sound template="metalOpen"     endTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
			<sound template="metalOpen"     endTime="0.05"  direction="1"   volumeScale="55.2" pitchScale="0.4"/>
            <sound template="metalLowVar2"  endTime="21.99" direction="1"   volumeScale="55.5" pitchScale="0.7"/>
            <sound template="metalClose"    endTime="21.99" direction="1"   volumeScale="55.2" pitchScale="0.6"/>
            <sound template="thudVar2"      endTime="21.9"  direction="-1"  volumeScale="55.4" pitchScale="0.7"/>
            <sound template="clackVar6"     endTime="21.99" direction="-1"  volumeScale="55.7" pitchScale="0.3"/>
            <sound template="cylinderPunch" endTime="0.01"/>
            <sound template="cylinderPunch" endTime="21.99" direction="1" />
        </animation>
        <animation name="rpmDisplay">
            <part endRot="0 0 180" endTime="1" node="0>0|0|2|0|5|0" startRot="0 0 0" startTime="0"/>
            <part endRot="0 0 90" endTime="1" node="0>0|0|2|0|5|2|0" startRot="0 0 0" startTime="0"/>
            <part endRot="0 0 90" endTime="1" node="0>0|0|2|0|5|3|0" startRot="0 0 0" startTime="0"/>
			<part endRot="0 0 90" endTime="1" node="0>0|0|2|0|5|4|0" startRot="0 0 0" startTime="0"/>
			<part endRot="0 0 90" endTime="1" node="0>0|0|2|0|5|5|0" startRot="0 0 0" startTime="0"/>
			<part endRot="0 0 180" endTime="1" node="0>0|0|2|0|5|6|0" startRot="0 0 0" startTime="0"/>
        </animation>
        <animation name="speedDisplay">
            <part endRot="0 0 180" endTime="1" node="0>0|0|2|0|5|1|0" startRot="0 0 0" startTime="0"/>
        </animation>
    </animations>
	
	
    <cylindered>
        <movingParts>
            <movingPart isActiveDirty="true" node="0>0|0|3|2|0" referenceFrame="0>0|0|0|4" referencePoint="0>0|0|0|4" maxUpdateDistance="50" >
                <translatingPart node="0>0|0|3|2|0|0"/>
                <translatingPart node="0>0|0|3|2|0|0|0"/>
                <translatingPart node="0>0|0|3|2|0|0|0|0"/>
            </movingPart>
            <movingPart node="1>1|0|0|0|0" playSound="false" referenceFrame="1>" referencePoint="1>1|1|0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
        </movingParts>
        <movingTools>
            <movingTool node="0>0|0|0">
                <dependentPart node="0>0|0|3|2|0"/>
            </movingTool>
        </movingTools>
        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>
	
	
	
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="сток-кузов" params="25000" price="0">
                <fillUnits>
                    <fillUnit capacity="25000" fillTypeCategories="bulk forageWagon" unitTextOverride="$l10n_unit_literShort">
                        <exactFillRootNode node="0>17"/>
                        <autoAimTargetNode node="0>18" startZ="3.857" endZ="0.596" invert="false" startPercentage="25"/>
                    </fillUnit>
                    <fillUnit capacity="180" fillTypes="DIESEL" showOnHud="false" showInShop="false" unitTextOverride="$l10n_unit_literShort"/>
                    <fillUnit capacity="400" fillTypes="AIR" showOnHud="false" showInShop="false" unitTextOverride="$l10n_unit_literShort"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|2|0" fillUnitIndex="1" maxDelta="0.12" maxAllowedHeapAngle="15"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>21|0|0|0|10|0" width="0.3" length="2.3" minHeight="0.5" priority="2"/>
                <node node="0>21|0|0|0|10|1" width="0.3" length="2.3" minHeight="0.5" priority="2"/>
                <node node="0>21|0|0|0|10|2" width="2.0" length="2.3"/>
                <node node="0>21|0|0|0|10|3" width="2.0" length="2.3"/>
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable>
        <dischargeNode node="0>26" emptySpeed="700" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
             <info width="2" zOffset="2.5"/>

            <effects>
                <effectNode effectNode="0>0|0|0|6|0" materialType="unloading" materialTypeId="1"   fadeTime="0.5" />                              
                <effectNode effectNode="0>0|0|0|6|1" materialType="unloadingSmoke"  materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" startTipTime="0.5"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-3.3" maxZ="2.3" yOffset="0.6"/>
    </foliageBending>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <honk>
        <sound linkNode="0>" template="HONK_TRUCK"/>
    </honk>
    <ai>
        <agent width="3.08" length="7.8" height="3.75" lengthOffset="0.75" frontOffset="1.84"/>
        <collisionTrigger node="0>13|0" width="3.0" height="3.9"/>
    </ai>

</vehicle>
