<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>УАЗ БАРС</name>
        <specs>
            <power>133</power>
            <maxSpeed>90</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.png</image>
        <price>9000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>UAZ</brand>
        <category>cars</category>
    </storeData>
    <base>
        <filename>bars.i3d</filename>
        <size width="3.5" length="5.5" lengthOffset="-0.4"/>
        <components>
            <component centerOfMass="0 0.52 0.4" solverIterationCount="10" mass="2855"/>
            <component centerOfMass="0 -0.4 0" solverIterationCount="10" mass="6"/>
            <component centerOfMass="0 -0.4 0" solverIterationCount="10" mass="16"/>
            <component centerOfMass="0 -0.23 0" solverIterationCount="10" mass="16"/>
            <component centerOfMass="0 -0.23 0" solverIterationCount="10" mass="14"/>
            <joint component1="1" component2="2" node="1>0" rotLimit="15 0 0" transLimit="0 0 0"/>
            <joint component1="1" component2="3" node="2>0" rotLimit="12 0 0" transLimit="0 0 0"/>
            <joint component1="1" component2="4" node="3>0" rotLimit="12 0 0" transLimit="0 0 0"/>
            <joint component1="1" component2="5" node="4>0" rotLimit="12 0 0" transLimit="0 0 0"/>
        </components>
		<schemaOverlay attacherJointPosition="0 0" name="CAR"/>
		<sounds filename="sounds/UAZ_BARS.xml"/>
		<mapHotspot type="CAR"/>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Rays" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel filename="wheels/wheels.xml"  isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.8" repr="0>0"  forcePointRatio="0.2" initialCompression="50" suspTravel="0.15" spring="20" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/wheels.xml"  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.8" repr="0>1"  forcePointRatio="0.2" initialCompression="50" suspTravel="0.15" spring="20" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/wheels.xml"  isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.8" repr="0>2"  forcePointRatio="0.2" initialCompression="50" suspTravel="0.15" spring="20" damper="20"/>
                    </wheel>
                    <wheel filename="wheels/wheels.xml"  isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.8" repr="0>3"  forcePointRatio="0.2" initialCompression="50" suspTravel="0.15" spring="20" damper="20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="31" rotMax="31" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
	
	<attacherJoints>
		<attacherJoint allowsJointLimitMovement="false" allowsLowering="false" canTurnOnImplement="false" jointType="trailerLow" lowerRotLimit="10 80 50" lowerTransLimit="0 0 0" node="0>10|0|6|1">
			<schema invertX="false" position="1 0" rotation="0"/>
		</attacherJoint>
	</attacherJoints>
    
	<connectionHoses>
        <target attacherJointIndices="1" type="electric" node="0>10|0|6|1|0|0" socket="electric"/>       
    </connectionHoses>
	
    <lights>
        <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
			<state lightTypes="0 1 2 3"/>
		</states>
		
        <realLights>
            <low>
                <light node="0>5|0" lightTypes="0"/>
                <light node="0>5|1" lightTypes="1"/>
                <light node="0>5|2" lightTypes="2"/>
				<light node="0>5|3" lightTypes="3"/>
				<turnLightRight node="0>5|4"/>
				<turnLightLeft node="0>5|5"/>
				<brakeLight node="0>5|6"/>
				<brakeLight node="0>10|6|0|0|0|0"/>
				<reverseLight node="0>5|7" />
            </low>
            <high>
                <light node="0>5|0" lightTypes="0"/>
                 <light node="0>5|1" lightTypes="1"/>
                 <light node="0>5|2" lightTypes="2"/>
				 <light node="0>5|3" lightTypes="3"/>
                 <turnLightRight node="0>5|4"/>
				<turnLightLeft node="0>5|5"/>
				<brakeLight node="0>5|6"/>
				<brakeLight node="0>10|6|0|0|0|0"/>
				<reverseLight node="0>5|7" />
            </high>
        </realLights>
    </lights>
    <enterable>
        <exitPoint node="0>6"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>8|0" cameraMinDistance="2.0" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>8|1"/>
            <target ikChain="leftFoot" targetNode="0>8|2"/>
            <target ikChain="rightArm" targetNode="0>7|0|0"/>
            <target ikChain="leftArm" targetNode="0>7|0|1"/>
        </characterNode>
        <cameras>
            <camera node="0>4|0|0" rotatable="true" rotateNode="0>4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
                <raycastNode node="0>4|2"/>
                <raycastNode node="0>4|3"/>
            </camera>
            <camera node="0>4|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
		
		<passengerSeats>
            <passengerSeat node="passengerSeat01" exitPoint="passengerSeat01ExitPoint" outdoorCameraIndex="1">
                <camera node="passengerSeat01Camera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="passengerSeat01PlayerSkin" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="passengerSeat01PlayerLeftHand" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="passengerSeat01PlayerRightHand" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="passengerSeat01PlayerLeftFoot" />
                    <target ikChain="rightFoot" targetNode="passengerSeat01PlayerRightFoot" />
                </characterNode>
            </passengerSeat>
			<passengerSeat node="passengerSeat02" exitPoint="passengerSeat02ExitPoint" outdoorCameraIndex="1">
                <camera node="passengerSeat02Camera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="passengerSeat02PlayerSkin" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="passengerSeat02PlayerLeftHand" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="passengerSeat02PlayerRightHand" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="passengerSeat02PlayerLeftFoot" />
                    <target ikChain="rightFoot" targetNode="passengerSeat02PlayerRightFoot" />
                </characterNode>
            </passengerSeat>
			<passengerSeat node="passengerSeat03" exitPoint="passengerSeat03ExitPoint" outdoorCameraIndex="1">
                <camera node="passengerSeat03Camera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="passengerSeat03PlayerSkin" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="passengerSeat03PlayerLeftHand" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="passengerSeat03PlayerRightHand" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="passengerSeat03PlayerLeftFoot" />
                    <target ikChain="rightFoot" targetNode="passengerSeat03PlayerRightFoot" />
                </characterNode>
            </passengerSeat>
			<passengerSeat node="passengerSeat04" exitPoint="passengerSeat04ExitPoint" outdoorCameraIndex="1">
                <camera node="passengerSeat04Camera" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" />
                <characterNode node="passengerSeat04PlayerSkin" cameraMinDistance="0.5" spineRotation="-90 0 90">
                    <target ikChain="leftArm"   targetNode="passengerSeat04PlayerLeftHand" poseId="flatFingers"/>
                    <target ikChain="rightArm"  targetNode="passengerSeat04PlayerRightHand" poseId="flatFingers"/>
                    <target ikChain="leftFoot"  targetNode="passengerSeat04PlayerLeftFoot" />
                    <target ikChain="rightFoot" targetNode="passengerSeat04PlayerRightFoot" />
                </characterNode>
            </passengerSeat>
        </passengerSeats>
		
    </enterable>
    <motorized>
	
	    <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="17"  fillType="diesel" />  
            </consumerConfiguration>
        </consumerConfigurations>
		
        <motorConfigurations>
            <motorConfiguration name="$l10n_configuration_valueDefault" price="0">
                <motor torqueScale="0.378" minRpm="1000" maxRpm="4400" maxForwardSpeed="90" maxBackwardSpeed="40" brakeForce="1.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="0.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="5.8" maxForwardGearRatio="250" minBackwardGearRatio="20" maxBackwardGearRatio="250"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
			<exhaustEffect node="0>12|0" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.1 0.1 0.1 0.05" maxRpmColor="0.1 0.1 0.1 5" minRpmScale="0.05" maxRpmScale="0.5"/>
		</exhaustEffects>
        <exhaustFlap node="0>12" maxRot="0.1"/>
        <motorStartDuration>2300</motorStartDuration>
        
		
		<dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmDisplay" minValueAnim="0" maxValueAnim="2200" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="90" groups="MOTOR_ACTIVE"/>
        </dashboards>
		
    </motorized>
    <drivable>
        <steeringWheel node="0>7|0" indoorRotation="270" outdoorRotation="70"/>
    </drivable>
    <animations>
        <animation name="speedDisplay">
            <part node="0>11|0" startTime="0" endTime="1" startRot="0 40 0" endRot="0 -81 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>11|2|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -55 0"/>
            <part node="0>11|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -70 0"/>
            <part node="0>11|4|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -60 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>11|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -105 0"/>
        </animation>
        <animation name="foldDeck">
            <part node="0>10|5"    startTime="0" endTime="3" startRot="0 0 0"   endRot="-60 0 0" />
            <part node="0>10|6"    startTime="0" endTime="3" startRot="0 0 0"   endRot="0 -120 0" />
		</animation>
		<animation name="backDoor">		
		<part node="0>10|6|0" startTime="1" endTime="2" startRot="0 0 0" endRot="0 -100 0"/>		
		<sound template="metalClose" startTime="0.05" direction="-1" volumeScale="1.3" pitchScale="1.4" linkNode="0>10|6|0"/>
		<sound template="metalOpen" startTime="0.05" direction="1" volumeScale="1.2" pitchScale="0.8" linkNode="0>10|6|0"/>
	</animation>
	</animations>
    
	
	<cylindered>
        <movingTools>
           <movingTool node="0>10|2" 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>10|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>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="76">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
                    </fillUnit>                
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
	
	<foldable>
		<foldingConfigurations>
			<foldingConfiguration>
				<foldingParts requiresPower="false" negDirectionText="Открыть" posDirectionText="Закрыть">
					<foldingPart animationName="backDoor" speedScale="1.3"/>
				</foldingParts>
			</foldingConfiguration>
		</foldingConfigurations>
	</foldable>
	
	<dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE" isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
    <honk>
        <sound template="HONK_VALTRA" />
    </honk>
    <ai>     
		<agent width="1.8" length="4.6" height="2.2" lengthOffset="1.22" frontOffset="2.12"/>
    <collisionTrigger node="0>9" width="2.3" height="2.2"/>
    </ai>
    <foldable>
        <foldingParts turnOnFoldMaxLimit="1" turnOnFoldMinLimit="0.9" >
            <foldingPart animationName="foldDeck" speedScale="1" />
			<!--foldingPart animationName="foldDoor" speedScale="1" /-->
		</foldingParts>
	</foldable>
     <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1" offsetLeft="0.2" />
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2" />
                    <tensionBelt startNode="tensionBeltStart3" endNode="tensionBeltEnd3" />
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<designConfigurations>
        <designConfiguration name="Номер 1" price="0">
            <objectChange node="0>10|0|15|0" visibilityActive="true"/>
            <objectChange node="0>10|0|15|1" visibilityActive="false"/>
            <objectChange node="0>10|0|15|2" visibilityActive="false"/>
			<objectChange node="0>10|0|15|3" visibilityActive="false"/>			
        </designConfiguration>
        <designConfiguration name="Номер 2" price="0">           
            <objectChange node="0>10|0|15|0" visibilityActive="false"/>
            <objectChange node="0>10|0|15|1" visibilityActive="true"/>
            <objectChange node="0>10|0|15|2" visibilityActive="false"/>
			<objectChange node="0>10|0|15|3" visibilityActive="false"/>	
        </designConfiguration>
		<designConfiguration name="Номер 3" price="0">
            <objectChange node="0>10|0|15|0" visibilityActive="false"/>
            <objectChange node="0>10|0|15|1" visibilityActive="false"/>
            <objectChange node="0>10|0|15|2" visibilityActive="true"/>
			<objectChange node="0>10|0|15|3" visibilityActive="false"/>	
        </designConfiguration>
		<designConfiguration name="Номер 4" price="0">
            <objectChange node="0>10|0|15|0" visibilityActive="false"/>
            <objectChange node="0>10|0|15|1" visibilityActive="false"/>
            <objectChange node="0>10|0|15|2" visibilityActive="false"/>
			<objectChange node="0>10|0|15|3" visibilityActive="true"/>	
        </designConfiguration>
    </designConfigurations>
	
	<design2Configurations title="Цвет">
		<design2Configuration name="вариант 1"  price="0">
			<objectChange node="0>14" 				visibilityActive="true" /> 
			<objectChange node="0>10" 				visibilityActive="false" />		
		</design2Configuration>	
		<design2Configuration name="вариант 2"  price="500">
			<objectChange node="0>14" 				visibilityActive="false" />
			<objectChange node="0>10" 				visibilityActive="true" />                     
		</design2Configuration>
    </design2Configurations>
	
	<i3dMappings>
        <i3dMapping id="tensionBelts" node="0>13" />
        <i3dMapping id="tensionBeltStart1" node="0>13|0" />
        <i3dMapping id="tensionBeltEnd1" node="0>13|0|0" />
        <i3dMapping id="tensionBeltStart2" node="0>13|1" />
        <i3dMapping id="tensionBeltEnd2" node="0>13|1|0" />
        <i3dMapping id="tensionBeltStart3" node="0>13|2" />
        <i3dMapping id="tensionBeltEnd3" node="0>13|2|0" />
        <i3dMapping id="beltActivationTrigger" node="0>13|3" />
		 
		<i3dMapping id="passengerSeat01" node="0>15|0" />
        <i3dMapping id="passengerSeat01Camera" node="0>15|0|0" />
        <i3dMapping id="passengerSeat01PlayerSkin" node="0>15|0|1" />
        <i3dMapping id="passengerSeat01PlayerLeftFoot" node="0>15|0|2" />
        <i3dMapping id="passengerSeat01PlayerRightFoot" node="0>15|0|3" />
        <i3dMapping id="passengerSeat01PlayerLeftHand" node="0>15|0|4" />
        <i3dMapping id="passengerSeat01PlayerRightHand" node="0>15|0|5" />
        <i3dMapping id="passengerSeat01ExitPoint" node="0>15|0|6" />
		
		<i3dMapping id="passengerSeat02" node="0>15|1" />
        <i3dMapping id="passengerSeat02Camera" node="0>15|1|0" />
        <i3dMapping id="passengerSeat02PlayerSkin" node="0>15|1|1" />
        <i3dMapping id="passengerSeat02PlayerLeftFoot" node="0>15|1|2" />
        <i3dMapping id="passengerSeat02PlayerRightFoot" node="0>15|1|3" />
        <i3dMapping id="passengerSeat02PlayerLeftHand" node="0>15|1|4" />
        <i3dMapping id="passengerSeat02PlayerRightHand" node="0>15|1|5" />
        <i3dMapping id="passengerSeat02ExitPoint" node="0>15|1|6" />
		
		<i3dMapping id="passengerSeat03" node="0>15|2" />
        <i3dMapping id="passengerSeat03Camera" node="0>15|2|0" />
        <i3dMapping id="passengerSeat03PlayerSkin" node="0>15|2|1" />
        <i3dMapping id="passengerSeat03PlayerLeftFoot" node="0>15|2|2" />
        <i3dMapping id="passengerSeat03PlayerRightFoot" node="0>15|2|3" />
        <i3dMapping id="passengerSeat03PlayerLeftHand" node="0>15|2|4" />
        <i3dMapping id="passengerSeat03PlayerRightHand" node="0>15|2|5" />
        <i3dMapping id="passengerSeat03ExitPoint" node="0>15|2|6" />
		
		<i3dMapping id="passengerSeat04" node="0>15|3" />
        <i3dMapping id="passengerSeat04Camera" node="0>15|3|0" />
        <i3dMapping id="passengerSeat04PlayerSkin" node="0>15|3|1" />
        <i3dMapping id="passengerSeat04PlayerLeftFoot" node="0>15|3|2" />
        <i3dMapping id="passengerSeat04PlayerRightFoot" node="0>15|3|3" />
        <i3dMapping id="passengerSeat04PlayerLeftHand" node="0>15|3|4" />
        <i3dMapping id="passengerSeat04PlayerRightHand" node="0>15|3|5" />
        <i3dMapping id="passengerSeat04ExitPoint" node="0>15|3|6" />
    </i3dMappings>
</vehicle>
