<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Charger">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>The General Lee V1.0.0</en></name>
        <specs>
            <power>200</power>
            <maxSpeed>120</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>sotre_General_Lee.dds</image>
        <price>30000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Dodge</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>1487412</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>360324</indexBufferMemoryUsage>
        <textureMemoryUsage>14330864</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>General_Lee.i3d</filename>
        <size width="2.5" length="5"/>
        <components count="1">
            <component centerOfMass="0.71 -.20" solverIterationCount="10" mass="4300"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="CAR" />
	    <mapHotspot type="CAR" />
		<sounds filename="sounds/Hemi.xml"/>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasParticles="true" hasTireTracks="true">
                       <physics rotSpeed="1" restLoad="0.5" repr="wheelFrontLeft" driveNode="0>1|0|0" radius="0.3" width="0.27"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.55" spring="9" damper="2.8" frictionScale="2.9"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelFrontRight" driveNode="0>1|2|0" radius="0.3" width="0.27"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.45" spring="9" damper="3.9" frictionScale="2.5"/>
					</wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                       <physics rotSpeed="1" restLoad="0.5" repr="wheelBackLeft" driveNode="0>1|1|0" radius="0.3" width="0.27"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.55" spring="9" damper="2.8" frictionScale="2.9"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="wheelBackRight" driveNode="0>1|3|0" radius="0.3" width="0.27"  forcePointRatio="0.5" initialCompression="18" suspTravel="0.45" spring="9" damper="3.9" frictionScale="2.5"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="57" rotMax="42" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    
	 <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>
		
        <realLights>
            <low>
                <light node="0>2|0" lightTypes="0"/>
                <light node="0>2|1" lightTypes="1"/>
                <brakeLight node="0>2|6"/>
                <turnLightLeft node="0>2|5"/>
                <turnLightLeft node="0>2|4"/>
                <turnLightRight node="0>2|3"/>
                <turnLightRight node="0>2|2"/>
            </low>
            <high>
                <light node="0>2|0" lightTypes="0"/>
                <light node="0>2|1" lightTypes="1"/>
                <brakeLight node="0>2|6"/>
                <turnLightLeft node="0>2|5"/>
                <turnLightLeft node="0>2|4"/>
                <turnLightRight node="0>2|3"/>
                <turnLightRight node="0>2|2"/>
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>17|1|0|2" lightTypes="0" intensity="30"/>
            <defaultLight shaderNode="0>17|1|0|3" lightTypes="0" intensity="30"/>
            <defaultLight shaderNode="0>17|1|0|4" lightTypes="1" intensity="30"/>
            <defaultLight shaderNode="0>17|1|1|2" lightTypes="0" intensity="30"/>
            <defaultLight shaderNode="0>17|1|1|3" lightTypes="0" intensity="30"/>
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="0>17|1|1|3" intensity="60"/>
        </brakeLights>
		
        <turnLights>
            <turnLightLeft shaderNode="0>17|1|0|0" intensity="40"/>
            <turnLightRight shaderNode="0>17|1|0|1" intensity="40"/> 
			<turnLightLeft shaderNode="0>17|1|1|0" intensity="40"/>
            <turnLightRight shaderNode="0>17|1|1|1" intensity="40"/> 
			<turnLightLeft shaderNode="0>17|1|2|0" intensity="0.2"/>
            <turnLightRight shaderNode="0>17|1|2|1" intensity="0.2"/>
        </turnLights>
		
        <reverseLights>
			<reverseLight shaderNode="0>17|1|1|4" intensity="20"/>
        </reverseLights>


        <dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="cabinDecalsLight" intensity="0.2" lightTypes="0" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </lights>
	
    <enterable isTabbable="true">
        <enterReferenceNode node="pickup1978_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="3.5" transMax="40" translation="0 0 5.75" rotation="-10 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="mirror01" prio="1"/>
            <mirror node="mirror02" prio="1"/>
            <mirror node="mirror03" prio="1"/>
        </mirrors>
		
        <enterAnimation name="enterAnimation"/>	
		
        <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="rightArm" poseId="wideFingers"/>
            <target ikChain="leftArm" targetNode="leftArm" poseId="wideFingers"/>
        </characterNode>
        <characterTargetNodeModifier node="player_rightFoot" transitionTime="0.1">
            <state node="player_rightFootGas" referenceNode="gasPedal"/>
            <state node="player_rightFootBrake" referenceNode="brakePedal"/>
        </characterTargetNodeModifier>
    </enterable>
    <drivable>

        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60"/>
        <dashboards>
            <dashboard displayType="ROT" valueType="accelerationAxis" node="gasPedal" minRot="0 0 0" maxRot="-15 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ROT" valueType="decelerationAxis" node="brakePedal" minRot="0 0 0" maxRot="-15 0 0" doInterpolation="true" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </drivable>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$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>
    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="200" fillType="diesel"/>
                <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>
        <differentialConfigurations>
            <differentialConfiguration name="2 Wheel Drive" price="0">
                <differentials>                    
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="2" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <motorConfigurations>
            <motorConfiguration name="General Lee" hp="431" price="0">
                <motor torqueScale="1.0" minRpm="1200" maxRpm="9000" maxForwardSpeed="200" maxBackwardSpeed="45" brakeForce="4.2" lowBrakeForceScale="0.22" dampingRateScale="0.4">
                    <torque rpm="1200" torque="0.9"/>
                    <torque rpm="3600" torque="1"/>
                    <torque rpm="5220" torque="1"/>
                    <torque rpm="6840" torque="0.75"/>
                    <torque rpm="7920" torque="0.63"/>
                    <torque rpm="9000" torque="0.2"/>
                </motor>
                <transmission autoGearChangeTime="0.5" gearChangeTime="0.4" name="$l10n_info_transmission_manual" axleRatio="25" startGearThreshold="0.2">
                    <directionChange useGear="true"/>
                    <backwardGear gearRatio="4.066" name="R"/>
                    <forwardGear gearRatio="2.200"/>
                    <forwardGear gearRatio="1.800"/>
                    <forwardGear gearRatio="1.300"/>
                    <forwardGear gearRatio="0.7"/>
                </transmission>
            </motorConfiguration>
        </motorConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>17|4|0|0|0" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.02 0.02 0.02 1" maxRpmColor="0.07 0.07 0.07 5" minRpmScale="0.40" maxRpmScale="1.10"/>
            <exhaustEffect node="0>17|4|0|0|0|0" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0.02 0.02 0.02 1" maxRpmColor="0.07 0.07 0.07 5" minRpmScale="0.40" maxRpmScale="1.10"/>
        </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="140" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="motorTemperature" animName="loadingBarTemperature" minValueAnim="0" maxValueAnim="120" groups="MOTOR_ACTIVE"/>
        </dashboards>
		
		<exhaustFlap node="0>17|4|0" maxRot="0.1"/>

		
    </motorized>
    <animations>
        <animation name="rpmDisplay">
            <part node="rpm_indicator" startTime="0" endTime="1" startRot="0 0 10" endRot="0 0 -215"/>
        </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 -73"/>
        </animation>
        <animation name="loadingBarFuel">
            <part node="fuel_indicator" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -73"/>
        </animation>
        <animation name="Hood">
            <part node="0>17|0|1" startTime="0" endTime="1" startRot="0 0 0" endRot="-30 0 0"/>
            <part node="0>17|0|1" startTime="0" duration="1" startTrans="-0.019 0.907 1.23" endTrans="-0.019 0.98 1.274"/>
        </animation>
        <animation name="Trunk">
            <part node="0>17|4|5" startTime="0" endTime="1" startRot="0 0 0" endRot="-100 0 0"/>
		<!--<part node="0>17|0|2" startTime="0" endTime="1" startRot="0 0 0" endRot="47 0 0"/>
            <part node="0>17|0|2" startTime="0" duration="1" startTrans="-0.019 0.93 -2.1" endTrans="-0.019 0.98 -2.127"/> -->
        </animation>
        <animation name="enterAnimation">
            <part node="0>17|0|3" startTime="0.0" endTime="0.8" startRot="0 0 0" endRot="0 -38 0" />		
            <part node="0>17|0|3" startTime="1.1" endTime="1.5" startRot="0 -38 0" endRot="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>
    <cover>
        <coverConfigurations>
            <coverConfiguration>
                <cover openAnimation="Hood" openOnBuy="false" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
	
	<foldable>
		<foldingConfigurations>
			<foldingConfiguration>
				<foldingParts>
					<foldingPart animationName="Trunk" speedScale="1"/>
				</foldingParts>
			</foldingConfiguration>
		</foldingConfigurations>
    </foldable>
	
	<cylindered>
        <movingTools>
            <movingTool node="0>17|0|2" playSound="true"/>
		</movingTools>	
		
    </cylindered> 
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE" isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
	<ai>
        <agent width="2.05" length="5.5" height="1.85" lengthOffset="1.35" frontOffset="3.09" />
        <collisionTrigger node="aiCollisionTrigger" width="2.4" height="1.8"/>
    </ai>


    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0"/>
    </foliageBending>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="pickup1978_main_component1" node="0>"/>
        <i3dMapping id="pickup1978_vis" node="0>0"/>
        <i3dMapping id="wheelFrontLeft" node="0>1|0"/>
        <i3dMapping id="wheelBackLeft" node="0>1|1"/>
        <i3dMapping id="wheelFrontRight" node="0>1|2"/>
        <i3dMapping id="wheelBackRight" node="0>1|3"/>
        <i3dMapping id="frontLightHigh" node="0>2|0"/>
        <i3dMapping id="highBeamHigh" node="0>2|1"/>
        <i3dMapping id="turnLightRightBack" node="0>2|2"/>
        <i3dMapping id="turnLightRightFront" node="0>2|3"/>
        <i3dMapping id="turnLightLeftBack" node="0>2|4"/>
        <i3dMapping id="turnLightLeftFront" node="0>2|5"/>
        <i3dMapping id="backLightsHigh1" node="0>2|6"/>


        <i3dMapping id="outdoorCameraTarget" node="0>3|0"/>
        <i3dMapping id="outdoorCamera1" node="0>3|0|0"/>
        <i3dMapping id="indoorCamera1" node="0>3|1"/>
        <i3dMapping id="cameraRaycastNode1" node="0>3|2"/>
        <i3dMapping id="cameraRaycastNode2" node="0>3|3"/>
        <i3dMapping id="cameraRaycastNode3" node="0>3|4"/>
        <i3dMapping id="shadowFocusBox" node="0>3|5"/>
        <i3dMapping id="steeringWheel" node="0>4|0"/>
        <i3dMapping id="leftArm" node="0>4|0|0"/>
        <i3dMapping id="rightArm" node="0>4|0|1"/>
        <i3dMapping id="player_skin" node="0>5|0"/>
        <i3dMapping id="player_rightFoot" node="0>5|1"/>
        <i3dMapping id="player_leftFoot" node="0>5|2"/>
        <i3dMapping id="exitPoint" node="0>6"/>
        <i3dMapping id="mirror01" node="0>7|0"/>
        <i3dMapping id="mirror02" node="0>7|1"/>
        <i3dMapping id="mirror03" node="0>7|2"/>
        <i3dMapping id="cabinDecalsLight" node="0>12|0"/>
        <i3dMapping id="rpm_indicator" node="0>12|1|0"/>
        <i3dMapping id="fuel_indicator" node="0>12|2|0"/>
        <i3dMapping id="temp_indicator" node="0>12|3|0"/>
        <i3dMapping id="speed_indicator" node="0>12|4|0"/>
        <i3dMapping id="player_rightFootGas" node="0>12|5|0"/>
        <i3dMapping id="player_rightFootBrake" node="0>12|6|0"/>
        <i3dMapping id="aiCollisionTrigger" node="0>15"/>
        <i3dMapping id="gasPedal" node="0>17|4|2"/>
        <i3dMapping id="brakePedal" node="0>17|4|4"/>
    </i3dMappings>
</vehicle>
