<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Logan">
    <annotation>Copyright (C) Edward`s Modding, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>Dacia Logan Politia2</en></name>
        <specs>
            <power>120</power>
            <maxSpeed>220</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store.dds</image>
        <price>6000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DACIA</brand>
        <category>edwardsmodding</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1803844</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>433242</indexBufferMemoryUsage>
        <textureMemoryUsage>15379440</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>Logan.i3d</filename>
        <size width="3" length="6.5"/>
        <components count="1">
            <component centerOfMass="0 0.4 0.7" solverIterationCount="15" mass="2200"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontLeft" driveNode="wheelFrontLeft" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="0.5" repr="axisFrontRight" driveNode="wheelFrontRight" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="0.7" repr="LRW" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="0.7" repr="RRW" radius="0.38" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="5" frictionScale="2.5"  />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <lights>
       <states>
            <state lightTypes="0"/>
            <state lightTypes="0 1"/>
            <state lightTypes="0 1 2"/>
        </states>
        <realLights>
            <low>
                <light node="frontLightLow" lightTypes="0"/>
                <light node="highBeamLow" lightTypes="1"/>
            </low>
            <high>
                <light node="frontLightHigh" lightTypes="0"/>
                <light node="highBeamHigh" lightTypes="1"/>
                <light node="backLightsHigh1" lightTypes="0 3"/>
                <brakeLight node="backLightsHigh1"/>
                <turnLightLeft node="turnLightLeftFront"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightFront"/>
                <turnLightRight node="turnLightRightBack"/>
                <reverseLight node="reverseLight"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="backlightsStatic" lightTypes="0 3"/>
            <defaultLight shaderNode="frontLightStatic" lightTypes="0" />
			<defaultLight shaderNode="StaticFrontLights1"  lightTypes="1"  />
			<defaultLight shaderNode="0>0|14|1" lightTypes="0 3" intensity="0.2" />
			<defaultLight shaderNode="0>0|14|0" lightTypes="0 3" intensity="0.2" />
			<defaultLight shaderNode="needleSpeed" lightTypes="0 3" intensity="0.2" />
			<defaultLight shaderNode="needleRpm" lightTypes="0 3" intensity="0.2" />
			
			<defaultLight shaderNode="0>0|1|10|8" lightTypes="2" />
        </defaultLights>
        <brakeLights>
            <brakeLight shaderNode="0>0|1|10|7"/>
        </brakeLights>
        <reverseLights>
            <reverseLight shaderNode="reverseLightsStatic"/>
        </reverseLights>
        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic"/>
            <turnLightRight shaderNode="turnlightRightStatic"/>
        </turnLights>
		
        <sounds>
            <switchLight template="SWITCH_01"/>
            <turnLight template="SWITCH_TURNLIGHT"/>
        </sounds>
		
    </lights>
	
	<lightExtension>
		<strobeLights>
			
			<strobeLight lightShaderNode="0>0|20|1" realLightNode="0>0|21|1" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|0" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|1" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|2" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|3" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|4" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|5" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|6" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|7" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|1|8" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0" realLightNode="0>0|21|0" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|0" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|1" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|2" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|3" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|4" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|5" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|6" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|7" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|8" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			<strobeLight lightShaderNode="0>0|20|0|9" shaderIntensity="200" sequence="150 34 20 20 20 40" invert="false" />
			
		</strobeLights>
	</lightExtension>
	
    <enterable isTabbable="true">
        <enterReferenceNode node="Lamborghini_main_component1"/>
        <exitPoint node="exitPoint"/>
        <cameras count="2">
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="40" translation="0 0 5.5" rotation="-17.5 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" shadowFocusBox="shadowFocusBox"/>
        </cameras>
        <mirrors>
            <mirror node="mirror01decal" prio="1"/>
            <mirror node="mirror02decal" prio="1"/>
            <mirror node="mirror03decal" prio="1"/>
        </mirrors>
        <characterNode node="player_skin" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="player_rightFoot"/>
            <target ikChain="leftFoot" targetNode="player_leftFoot"/>
            <target ikChain="rightArm" targetNode="player_rightHand" poseId="wideFingers"/>
            <target ikChain="leftArm" targetNode="player_leftHand" poseId="wideFingers"/>
        </characterNode>
        <characterTargetNodeModifier node="player_rightFoot" transitionTime="0.1">
            <state node="player_rightFootGas" referenceNode="gasPedal"/>
            <state node="player_rightFootBrake" referenceNode="brakePedal"/>
        </characterTargetNodeModifier>
    </enterable>
    <attacherJoints>
        <attacherJoint node="trailerAttacherJointBack" 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="trailerAttacherJointBack" 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>
    <connectionHoses>
        <target attacherJointIndices="1 2" type="electric" node="electricBack" socket="electric"/>
    </connectionHoses>
    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01"/>
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="340" outdoorRotation="60"/>
        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="gasPedal" minRot="0 0 0" maxRot="30 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="brakePedal" minRot="0 0 0" maxRot="20 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="60">
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="90" fillType="diesel"/>
                <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="1" wheelIndex2="2" /> <!-- front left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="3" wheelIndex2="4" /> <!-- back left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="1.4L" hp="70" price="0">
                <motor torqueScale="2.6" minRpm="1000" maxRpm="6000" maxForwardSpeed="120" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="67" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
            <motorConfiguration name="1.5L DCI " hp="90" price="320"  dailyUpkeep="5" >
                <motor torqueScale="3.1" minRpm="1000" maxRpm="6000" maxForwardSpeed="200" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.0002">
                    <torque rpm="1000" torque="0.9"/>
                    <torque rpm="2400" torque="1"/>
                    <torque rpm="3480" torque="1"/>
                    <torque rpm="4560" torque="0.75"/>
                    <torque rpm="5280" torque="0.63"/>
                    <torque rpm="6000" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="54" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			
        </motorConfigurations>
        <exhaustEffects>
            <exhaustEffect node="exhaustParticle" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.3" maxRpmColor="0.9 0.9 0.9 0.9" minRpmScale="0.02" maxRpmScale="0.25"/>
            <exhaustEffect node="0>0|8|1" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.3" maxRpmColor="0.9 0.9 0.9 0.9" minRpmScale="0.02" maxRpmScale="0.25"/>
        </exhaustEffects>
		 <dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm"   animName="rpmDisplay"   minValueAnim="0" maxValueAnim="7000" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="220"  groups="MOTOR_ACTIVE"/>
           
        </dashboards>
        <sounds externalSoundFile="sounds/Aventador/Aventador.xml"/>
    </motorized>
	
	<foldable>
        <foldingParts>
            <foldingPart animationName="siren" speedScale="1" />
        </foldingParts>
    </foldable> 
	
	<animations>
	    <animation name="rpmDisplay">
            <part node="needleRpm"  startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 215"/>
        </animation>
		<animation name="speedDisplay">
            <part node="needleSpeed"  startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 215"/>
        </animation>
		<animation name="siren">
            <part node="0>0|22" startTime="0" endTime="0.5" startTrans="0 -500 0" endTrans="0 0 0"/>
        </animation> 
		
    </animations>
    
   
    <suspensions>
        <suspension useCharacterTorso="true" weight="90" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1"/>
    </suspensions>
	
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE" isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
    <ai>
        <collisionTrigger node="aiCollisionTrigger"/>
    </ai>
    <honk>
        <sound template="HONK_JD8400R" file="sounds/honk.wav" linkNode="Lamborghini_main_component1" />
    </honk>
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0.05"/>
    </foliageBending>
    <dischargeable requiresTipOcclusionArea="false"/>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="Lamborghini_main_component1" node="0>"/>
        <i3dMapping id="pickup2014_vis" node="0>0"/>
        <i3dMapping id="wheels" node="0>0|0"/>
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0|0"/>
        <i3dMapping id="wheelFrontRight" node="0>0|0|1|0"/>
		<i3dMapping id="axisFrontLeft" node="0>0|0|0"/>
        <i3dMapping id="axisFrontRight" node="0>0|0|1"/>
        <i3dMapping id="LRW" node="0>0|0|2"/>
        <i3dMapping id="RRW" node="0>0|0|3"/>
        <i3dMapping id="frontLightLow" node="0>0|1|0"/>
        <i3dMapping id="highBeamLow" node="0>0|1|1"/>
        <i3dMapping id="frontLightHigh" node="0>0|1|2"/>
        <i3dMapping id="highBeamHigh" node="0>0|1|3"/>
        <i3dMapping id="backLightsHigh1" node="0>0|1|4"/>
        <i3dMapping id="turnLightLeftFront" node="0>0|1|5"/>
        <i3dMapping id="turnLightLeftBack" node="0>0|1|6"/>
        <i3dMapping id="turnLightRightFront" node="0>0|1|7"/>
        <i3dMapping id="turnLightRightBack" node="0>0|1|8"/>
        <i3dMapping id="reverseLight" node="0>0|1|9"/>
        <i3dMapping id="frontLightStatic" node="0>0|1|10|0"/>
		<i3dMapping id="StaticFrontLights1" node="0>0|1|10|6" />
        <i3dMapping id="backlightsStatic" node="0>0|1|10|1"/>
        <i3dMapping id="reverseLightsStatic" node="0>0|1|10|2"/>
        <i3dMapping id="turnlightLeftStatic" node="0>0|1|10|4"/>
        <i3dMapping id="turnlightRightStatic" node="0>0|1|10|5"/>
        <i3dMapping id="outdoorCameraTarget" node="0>0|2|0"/>
        <i3dMapping id="outdoorCamera1" node="0>0|2|0|0"/>
        <i3dMapping id="indoorCamera1" node="0>0|2|1"/>
        <i3dMapping id="cameraRaycastNode1" node="0>0|2|2"/>
        <i3dMapping id="cameraRaycastNode2" node="0>0|2|3"/>
        <i3dMapping id="cameraRaycastNode3" node="0>0|2|4"/>
        <i3dMapping id="shadowFocusBox" node="0>0|2|5"/>
        <i3dMapping id="player_skin" node="0>0|3|0"/>
        <i3dMapping id="player_rightFoot" node="0>0|3|1"/>
        <i3dMapping id="player_leftFoot" node="0>0|3|2"/>
        <i3dMapping id="exitPoint" node="0>0|4"/>
        <i3dMapping id="trailerAttacherJointBack" node="0>0|5"/>
        <i3dMapping id="electricBack" node="0>0|6"/>
        <i3dMapping id="steeringWheel" node="0>0|7|0"/>
		<i3dMapping id="player_rightHand" node="0>0|7|0|1"/>
        <i3dMapping id="player_leftHand" node="0>0|7|0|0"/>
        <i3dMapping id="exhaustParticle" node="0>0|8|0"/>
        <i3dMapping id="gasPedal" node="0>0|9|0"/>
        <i3dMapping id="player_rightFootGas" node="0>0|9|0|0"/>
        <i3dMapping id="brakePedal" node="0>0|9|1"/>
        <i3dMapping id="player_rightFootBrake" node="0>0|9|1|0"/>
        <i3dMapping id="aiCollisionTrigger" node="0>0|12|0"/>
        <i3dMapping id="mirror01decal" node="0>0|13|0"/>
        <i3dMapping id="mirror02decal" node="0>0|13|1"/>
        <i3dMapping id="mirror03decal" node="0>0|13|2"/>
		<i3dMapping id="needleSpeed" node="0>0|9|2|0" />
		<i3dMapping id="needleRpm" node="0>0|9|2|0" />

		
    </i3dMappings>
</vehicle>
