<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="MAZ_6422">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <filename>MAZ_6422.i3d</filename>
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="1" repr="0" radius="0.6" restLoad="08.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.3" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.4" maxLatStiffnessLoad="3" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="1" repr="1" radius="0.6" restLoad="08.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.3" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.4" maxLatStiffnessLoad="3" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="1" repr="2" radius="0.6" restLoad="08.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.3" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.4" maxLatStiffnessLoad="3" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="1" repr="3" radius="0.6" restLoad="08.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.3" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.4" maxLatStiffnessLoad="3" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="0" repr="4" radius="0.6" restLoad="16.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.3" spring="30" damper="65" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.8" maxLatStiffnessLoad="3" width="1" hasParticles="true"/>
        <wheel rotSpeed="0" repr="5" radius="0.6" restLoad="16.0" forcePointRatio="0.3" initialCompression="50" suspTravel="0.3" spring="30" damper="65" hasTireTracks="true" tireTrackAtlasIndex="4" mass="0.8" maxLatStiffnessLoad="3" width="1" hasParticles="true"/>
    </wheels>
    <motor torqueScale="5.571" minRpm="1200" maxRpm="2600" maxBackwardSpeed="7" brakeForce="20" lowBrakeForceScale="0.05" lowBrakeForceSpeedLimit="0.05" minForwardGearRatio="13.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.55" torque="0.7"/>
        <torque normRpm="0.65" torque="0.8"/>
        <torque normRpm="0.75" torque="0.9"/>
        <torque normRpm="0.85" torque="1"/>
    </motor>
    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="4" rotCenterWheel2="5"/>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1"/>
        <!-- Перед левое-правое -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="2" differentialIndex2="3"/>
        <!-- Перед-Зад -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1"/>
        <!-- Перед-Зад -->
    </differentials>
    <fuelCapacity>350</fuelCapacity>
    <fuelUsage>300</fuelUsage>
    <attachSound file="$data/sounds/attach.wav" pitchOffset="1"/>
    <motorStartSound file="Sound/engine_start.wav" pitchOffset="1" volume="0.6"/>
    <motorSound file="Sound/engine_idle.wav" pitchOffset="1" pitchScale="0.03" pitchMax="3" volume="0.5"/>
    <motorSoundRun file="Sound/engine_low.wav" pitchOffset="0.3" pitchScale="0.4" pitchMax="1" volume="1"/>
    <motorSoundRun2 file="$data/vehicles/shared/transmission22S.wav" pitchOffset="0.7" volume="0.1" pitchMax="1.65" volumeMax="1"/>
    <motorStopSound file="Sound/kraz_stop.wav" pitchOffset="1"/>
    <compressedAirSound file="$data/sounds/technicalAccessories/brakeBig.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="$data/sounds/technicalAccessories/brakeBig.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="$data/sounds/hornBig.wav" volume="1" innerRadius="10" radius="70"/>
    <motorSoundLeave file="sound/engine_low.wav" pitchOffset="1" radius="25" innerRadius="15" volume="0.3"/>
    <aiMotorSound file="Sound/engine_idle.wav" pitchOffset="1" radius="50" innerRadius="10" volume="0.4"/>
    <animParts>
        <animPart index="0>6|1|0|0|4" id="kabina" showHelp="true" autoReturn="false" rotMin="0 0 0" rotMax="-55 0 0" moveTime="1.2"/>
    </animParts>
    <cameras count="2">
        <camera1 index="7|0" rotatable="true" rotateNode="7" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="40">
            <raycastNode index="0>15"/>
            <raycastNode index="0>16"/>
            <raycastNode index="0>17"/>
        </camera1>
        <camera2 index="0>6|1|8|1|3" rotatable="true" limit="false" useWorldXZRotation="true" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>8" decoration="0>6|1|12" lightTypes="0"/>
            <light realLight="0>9" decoration="0>6|1|13" lightTypes="1"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>8" decoration="0>6|1|12" lightTypes="0"/>
            <light realLight="0>9" decoration="0>6|1|13" lightTypes="1"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>10|0"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>10|1"/>
        <turnLightLeft decoration="0>6|1|14"/>
        <turnLightRight decoration="0>10|2"/>
        <turnLightRight decoration="0>6|1|15"/>
    </turnLights>
    <reverseLights>
        <reverseLight index="0>10|3"/>
    </reverseLights>
    <mirrors>
        <mirror index="0>6|1|10|0|0"/>
        <mirror index="0>6|1|11|0|0"/>
    </mirrors>
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
    <animations>
        <animation name="speedDisplay">
            <part node="0>6|1|9|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -167 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>6|1|9|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -120 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>6|1|9|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -90 0"/>
        </animation>
    </animations>
    <steering index="0>6|1|8|0|0" indoorRotation="360" outdoorRotation="37"/>
    <characterNode index="0>6|1|8|1|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100">
        <target ikChain="rightFoot" targetNode="0>6|1|8|1|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>6|1|8|1|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>6|1|8|0|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>6|1|8|0|0|1" setDirty="true"/>
    </characterNode>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>11"/>
    <ai>
        <trafficCollisionTrigger index="0>14"/>
    </ai>
    <components count="1">
        <component1 centerOfMass="0 0.5 0" solverIterationCount="10"/>
    </components>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
    <exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>12" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="1 1 1 1" minRpmScale="0.1" maxRpmScale="0.45" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
    <attacherJoints>
        <attacherJoint index="0>13" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
    <storeData>
        <name>
            <en>KL_ADCHI</en>
        </name>
        <functions>
            <function>$l10n_function_truck</function>
        </functions>
        <specs>
            <power>375</power>
        </specs>
        <image>store.dds</image>
        <price>10000</price>
        <dailyUpkeep>100</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KLCAR</brand>
        <category>trucks</category>
    </storeData>
</vehicle>
