<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Ваз 2114</name>
        <specs>
            <power>86</power>
            <maxSpeed>160</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.png</image>
        <price>10000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LADA</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>700976</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>130434</indexBufferMemoryUsage>
        <textureMemoryUsage>21321312</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>vaz2114.i3d</filename>
        <size width="2.5" length="6"/>
        <components>
            <component centerOfMass="0 0.3 0.2" solverIterationCount="10" mass="1622" />
        </components>
       <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <turnedOn name="DEFAULT_VEHICLE_ON"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
            <turnedOnSelected name="DEFAULT_VEHICLE_SELECTED_ON"/>
        </schemaOverlay>
    </base>
    <designConfigurations>
        <designConfiguration name="$l10n_configuration_valueDefault" price="0"/>
        <designConfiguration name="Фаркоп" price="500">
            <objectChange node="0>20" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="Багажник" price="500">
            <objectChange node="0>19" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
      
        <designConfiguration name="Фаркоп и багажник" price="500">
            <objectChange node="0>20" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>19" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
      
        <designConfiguration name="Такси" price="500">
            <objectChange node="0>20" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>21" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
	</designConfigurations>
    
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>0|0" forcePointRatio="0.2" radius="0.35" width="0.4" mass="0.1" initialCompression="50" suspTravel="0.14" spring="12" damper="10" frictionScale="1.5" tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.7" repr="0>0|1" forcePointRatio="0.2" radius="0.35" width="0.4" mass="0.1" initialCompression="50" suspTravel="0.14" spring="12" damper="10" frictionScale="1.5" tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>0|2" forcePointRatio="0.2" radius="0.35" width="0.4" mass="0.1" initialCompression="49" suspTravel="0.15" spring="11" damper="10" frictionScale="1.5"/>
                    </wheel>
                    <wheel hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="0>0|3" forcePointRatio="0.2" radius="0.35" width="0.4" mass="0.1" initialCompression="49" suspTravel="0.15" spring="11" damper="10" frictionScale="1.5"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="55" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    
	<attacherJoints>
        <attacherJoint node="0>5|0" jointType="trailer" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="ATTACH_01" linkNode="0>"/>
        </attacherJoint>
        <attacherJoint node="0>5|0" jointType="trailerLow" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
            <attachSound template="ATTACH_01" linkNode="0>"/>
        </attacherJoint>
    </attacherJoints>
     
	 <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>2|0" lightTypes="0"/>
			<light node="0>12|7|1" lightTypes="0"/>
			<light node="0>21|2" lightTypes="0"/>
			<light node="0>2|1" lightTypes="1"/>
			<light node="0>2|2" lightTypes="2"/>
			<light node="0>2|7" lightTypes="3"/>
			<turnLightLeft node="0>2|3"/>
			<turnLightRight node="0>2|4"/>		
		</low>
            <high>
               <light node="0>2|0" lightTypes="0"/>
               <light node="0>12|7|1" lightTypes="0"/>
			   <light node="0>21|2" lightTypes="0"/>
			   <light node="0>2|1" lightTypes="1"/>
			   <light node="0>2|2" lightTypes="2"/>
			   <light node="0>2|7" lightTypes="3"/>
			   <turnLightLeft node="0>2|3"/>
			   <turnLightRight node="0>2|4"/>
		    </high>
        </realLights>	
	<brakeLights>
        <brakeLight node="0>2|5"/>
    </brakeLights>
	<reverseLights>
        <reverseLight node="0>2|6"/>
    </reverseLights> 
	<sounds>
            <switchLight template="SWITCH_01" />
            <turnLight template="SWITCH_TURNLIGHT" />
    </sounds>
	<dashboards>
           <!--  <dashboard displayType="EMITTER" valueType="lightState" node="seatDecals1" baseColor="GREY" emitColor="GREY" intensity="0.3" lightTypes="0" groups="MOTOR_ACTIVE"/> -->
         <!--    <dashboard displayType="EMITTER" valueType="lightState" node="lightOnDecal" baseColor="BLACK" emitColor="LIGHT_GREEN" intensity="1" lightTypes="0" groups="MOTOR_ACTIVE"/> -->
            <dashboard displayType="EMITTER" valueType="lightState" node="lightOnBlueDecal" baseColor="BLACK" emitColor="0.2307 0.3813 0.9301 1" intensity="1" lightTypes="0" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightLeft" node="turnlightLeftDecal" baseColor="BLACK" emitColor="GREEN" intensity="1" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightLeft" node="turnlightTrailer01Decal" baseColor="BLACK" emitColor="GREEN" intensity="1" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightRight" node="turnlightRightDecal" baseColor="BLACK" emitColor="GREEN" intensity="1" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="EMITTER" valueType="turnLightRight" node="turnlightTrailer02Decal" baseColor="BLACK" emitColor="GREEN" intensity="1" groups="MOTOR_ACTIVE"/>
    </dashboards>
    </lights>
    <enterable>
        <exitPoint node="0>3"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>6|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>6|1"/>
            <target ikChain="leftFoot" targetNode="0>6|2"/>
            <target ikChain="rightArm" targetNode="0>4|0|0"/>
            <target ikChain="leftArm" targetNode="0>4|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" transMax="25">
                <raycastNode node="0>1|2"/>
                <raycastNode node="0>1|3"/>
                <raycastNode node="0>1|4"/>
                <raycastNode node="0>1|5"/>
            </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>
      
    </enterable>
    <motorized>
         <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="45"  fillType="diesel" />  
            </consumerConfiguration>
        </consumerConfigurations>
		<motorConfigurations>
            <motorConfiguration>
                <motor torqueScale="2.85" minRpm="1000" maxRpm="6000" maxForwardSpeed="180" brakeForce="2.2" lowBrakeForceScale="0.01" lowBrakeForceSpeedLimit="0.5">
                    <torque normRpm="0.1" torque="0.35"/>
                    <torque normRpm="0.2" torque="0.65"/>
                    <torque normRpm="0.3" torque="0.85"/>
                    <torque normRpm="0.4" torque="1"/>
                    <torque normRpm="0.75" torque="0.75"/>
                    <torque normRpm="1" torque="0.65"/>
                </motor>
               <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>
            
    
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.1" maxSpeedRatio="1.4" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>8|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.3 0.3 0.3 5" maxRpmColor="0.3 0.3 0.3 5" minRpmScale="0.05" maxRpmScale="0.4" xzRotationsOffset="0 0" xzRotationsForward="-20 0" xzRotationsBackward="20 0" xzRotationsLeft="-20 0" xzRotationsRight="20 0"/>
            <!-- <exhaustEffect node="0>8|1" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.3 0.3 0.3 5" maxRpmColor="0.3 0.3 0.3 5" minRpmScale="0.05" maxRpmScale="0.4" xzRotationsOffset="0 0" xzRotationsForward="-20 0" xzRotationsBackward="20 0" xzRotationsLeft="-20 0" xzRotationsRight="20 0"/> -->
        </exhaustEffects>
        <motorStartDuration>1500</motorStartDuration>
        <dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm"   animName="rpmDisplay"   minValueAnim="0" maxValueAnim="4000" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="140"  groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="motorTemperature" animName="loadingBarTemperature" minValueAnim="0" maxValueAnim="160" groups="MOTOR_ACTIVE"/>
        </dashboards>
		<sounds externalSoundFile="$data/sounds/vehicles/engine/lizard_pickup_2014/lizard_pickup_2014.xml" />
    </motorized>
    <drivable>
        <steeringWheel node="0>4|0" indoorRotation="540" outdoorRotation="60"/>
    </drivable>
   

	<animations>
        <animation name="rpmDisplay">
            <part node="rpm_indicator" startTime="0" endTime="1" startRot="0 0 10" endRot="0 0 -140" />
        </animation>
        <animation name="speedDisplay">
            <part node="speed_indicator" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -215"/>
        </animation>
        <animation name="loadingBarTemperature">
            <part node="temp_indicator" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -150"/>
        </animation>
        <animation name="loadingBarFuel">
            <part node="fuel_indicator" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 73"/>
        </animation>
        
		<animation name="foldDeck">
            <part node="0>12|7"    startTime="0" endTime="3" startRot="0 0 0"   endRot="-70 0 0" />
        </animation>
    </animations>
    

	
	<cylindered>
        <movingTools>
           <movingTool node="0>12|11" 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>12|13" 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>
		<!-- <movingParts>
            <movingPart node="0>12|0|8|39|0" referencePoint="0>12|0|0|3" referenceFrame="0>" isActiveDirty="true">
                <translatingPart node="0>12|0|8|39|0|0"/>
            </movingPart>
            <movingPart node="0>12|0|8|40|0" referencePoint="0>12|0|0|4" referenceFrame="0>" isActiveDirty="true">
                <translatingPart node="0>12|0|8|40|0|0"/>
            </movingPart>
        </movingParts> -->
    </cylindered>
   
   
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>

        <default>
          <!--   <dashboard displayType="VISIBILITY" node="decals_display"  groups="MOTOR_ACTIVE" /> -->
            <dashboard displayType="VISIBILITY" node="displayLightSwitch"  groups="MOTOR_ACTIVE" />
            <dashboard displayType="EMITTER" node="stickerDecalLightGreen_start"   baseColor="BLACK" emitColor="LIGHT_GREEN" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER" node="stickerDecalOrange_start"   baseColor="BLACK" emitColor="ORANGE" groups="MOTOR_STARTING" />
            <dashboard displayType="EMITTER" node="stickerDecalRed_start"   baseColor="BLACK" emitColor="RED" groups="MOTOR_STARTING" />
        </default>
    </dashboard>

   
  
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="80" >
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="loadingBarFuel" minValueAnim="0" maxValueAnim="35" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <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" />
                <!--     <tensionBelt startNode="tensionBeltStart4" endNode="tensionBeltEnd4" offsetRight="0.2" /> -->
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
    
    <honk>
        <sound template="HONK_JD_GATOR" />
    </honk>
    <ai>
        <collisionTrigger node="0>7|0"/>
    </ai>
   
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0" />
    </foliageBending>
   
    <foldable>
        <foldingParts turnOnFoldMaxLimit="1" turnOnFoldMinLimit="0.9" >
            <foldingPart animationName="foldDeck" speedScale="1" />
			<!--foldingPart animationName="foldDoor" speedScale="1" /-->
		</foldingParts>
	</foldable>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	 
	 <i3dMappings>
        <i3dMapping id="rpm_indicator" node="0>10|0|0" />
        <i3dMapping id="fuel_indicator" node="0>10|1|0" />
        <i3dMapping id="temp_indicator" node="0>10|2|0" />
        <i3dMapping id="speed_indicator" node="0>10|3|0" />
        
		<i3dMapping id="numbersSpeed2" node="0>16|0" />
        <i3dMapping id="stickerDecalLightGreen_start" node="0>16|3" />
        <i3dMapping id="stickerDecalOrange_start" node="0>16|4" />
        <i3dMapping id="stickerDecalRed_start" node="0>16|5" />
        <i3dMapping id="lightOnDecal" node="0>16|1" />
		<i3dMapping id="lightOnDeca2" node="0>16|2" />
		<i3dMapping id="lightOnDecal" node="0>16|6" />
        <i3dMapping id="lightOnBlueDecal" node="0>16|7" />
        <i3dMapping id="turnlightLeftDecal" node="0>16|8" />
        <i3dMapping id="turnlightRightDecal" node="0>16|9" />
        <i3dMapping id="turnlightTrailer02Decal" node="0>16|10" />
        <i3dMapping id="turnlightTrailer01Decal" node="0>16|11" />
        <i3dMapping id="displayLightSwitch" node="0>16|12" />
        <!-- <i3dMapping id="interiorScreenLight1" node="0>5|4|16" /> -->
	    <i3dMapping id="tensionBelts" node="0>19|1" />
        <i3dMapping id="tensionBeltStart1" node="0>19|1|0" />
        <i3dMapping id="tensionBeltEnd1" node="0>19|1|0|0" />
        <i3dMapping id="tensionBeltStart2" node="0>19|1|1" />
        <i3dMapping id="tensionBeltEnd2" node="0>19|1|1|0" />
        <i3dMapping id="tensionBeltStart3" node="0>19|1|2" />
        <i3dMapping id="tensionBeltEnd3" node="0>19|1|2|0" />
        <i3dMapping id="beltActivationTrigger" node="0>19|1|3" />
		<!-- <i3dMapping id="tensionBeltStart4" node="0>0|7|3" />
        <i3dMapping id="tensionBeltEnd4" node="0>0|7|3|0" /> -->
	</i3dMappings>
	
	
	
	
</vehicle>


