<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="carFillable">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Cuda</name>
        <specs>
            <power>400</power>
            <maxSpeed>120</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>Textures/plate.dds</image>
        <price>21995</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PLYMOTH</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>1484212</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>360324</indexBufferMemoryUsage>
        <textureMemoryUsage>14330864</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>CHR_Cuda426_71.i3d</filename>
        <size width="2.5" length="6"/>
        <components count="1">
            <component centerOfMass="0 0.3 0.23" solverIterationCount="4" mass="2800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>

     <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Stock" price="0">
                <wheels autoRotateBackSpeed="1.7">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.58" repr="LF" driveNode="LFD"  radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="40" suspTravel="0.15" spring="10" damper="5" frictionScale="8"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1" restLoad="0.58" repr="RF" driveNode="RFD"  radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="40" suspTravel="0.15" spring="10" damper="5" frictionScale="8"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.67" repr="LR" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="40" suspTravel="0.15" spring="15" damper="5" frictionScale="8"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0" restLoad="0.67" repr="RR" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="40" suspTravel="0.15" spring="15" damper="5" frictionScale="8"/>
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>		
            </wheelConfiguration>

        </wheelConfigurations>
		
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="32" 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="LowReal1"     lightTypes="1"/>
				<light node="HiReal1"     lightTypes="2"/>
				<turnLightLeft node="LFTurnReal" />
				<turnLightLeft node="LRTurnReal" />
				<turnLightRight node="RFTurnReal" />
				<turnLightRight node="RRTurnReal" />
				<brakeLight node="BrakeReal" />
				<reverseLight node="ReverseReal"/>
            </low>
			
            <high>
				<light node="LowReal1"     lightTypes="1"/>
				<light node="HiReal1"     lightTypes="2"/>
				<turnLightLeft node="LFTurnReal" />
				<turnLightLeft node="LRTurnReal" />
				<turnLightRight node="RFTurnReal" />
				<turnLightRight node="RRTurnReal" />
				<brakeLight node="BrakeReal" />
				<reverseLight node="ReverseReal"/>
            </high>
			
        </realLights>

        <defaultLights>
				<defaultLight shaderNode="Low1" lightTypes="1" />
				<defaultLight shaderNode="Low2" lightTypes="1" />
				<defaultLight shaderNode="Low3" lightTypes="1" />
				<defaultLight shaderNode="Low4" lightTypes="1" />
				<defaultLight shaderNode="Hi1" lightTypes="2" />
				<defaultLight shaderNode="Hi2" lightTypes="2" />
				<defaultLight shaderNode="Run1" lightTypes="0" />
				<defaultLight shaderNode="Run2" lightTypes="0" />
				<defaultLight shaderNode="Run3" lightTypes="0" />
				<defaultLight shaderNode="Run4" lightTypes="0" />
				<defaultLight shaderNode="Run5" lightTypes="0" />
				<defaultLight shaderNode="Run6" lightTypes="0" />
        </defaultLights>

        <brakeLights>
			<brakeLight shaderNode="Brake1"/>
			<brakeLight shaderNode="Brake2"/>
        </brakeLights>

        <turnLights>	
			<turnLightLeft shaderNode="LFTurn" />
			<turnLightRight shaderNode="RFTurn" />
			<turnLightLeft shaderNode="LRTurn" />
			<turnLightRight shaderNode="RRTurn" />
        </turnLights>
		
		<reverseLights>
			<reverseLight shaderNode="Reverse1"/>
			<reverseLight shaderNode="Reverse2"/>	
        </reverseLights>

        <sounds>
            <switchLight template="SWITCH_01"  />
            <turnLight template="SWITCH_TURNLIGHT"  />
        </sounds>

        <dashboards>
            <dashboard displayType="EMITTER" valueType="lightState" node="cabinDecalsLight" intensity="0.2" lightTypes="0" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </lights>
	
    <enterable isTabbable="true" >
        <enterReferenceNode node="Cuda"/>
        <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" >
                <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="mirror02" prio="2" />
		-->
        </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="rightArm" poseId="wideFingers"/>
            <target ikChain="leftArm"   targetNode="leftArm" poseId="wideFingers"/>
        </characterNode>


    </enterable>

    <attacherJoints>

    </attacherJoints>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60" />

    </drivable>

    <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>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="20" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="2" wheelIndex1="1" wheelIndex2="2" /> <!-- front left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="2" wheelIndex1="3" wheelIndex2="4" /> <!-- back left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="2" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>	
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="426 Hemi" hp="400" price="0">
                <motor torqueScale="2.0" minRpm="1000" maxRpm="6000" maxForwardSpeed="150" maxBackwardSpeed="45" brakeForce="4" lowBrakeForceScale="0" rotInertia="0.0015">
                    <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="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
			
			<motorConfiguration name="800HPTune" hp="700" price="2600">
				<motor torqueScale="10.0" minRpm="1000" maxForwardSpeed="245" maxRpm="6000" maxBackwardSpeed="40" brakeForce="4" lowBrakeForceScale="0" rotInertia="0.0015">
				</motor>
			</motorConfiguration>
        </motorConfigurations>

       <exhaustEffects>
            <exhaustEffect node="exhaustParticle1" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.20" maxRpmScale="0.60"/>
			<exhaustEffect node="exhaustParticle2" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.20" maxRpmScale="0.60"/>
			<exhaustEffect node="exhaustParticle3" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.20" maxRpmScale="0.60"/>
			<exhaustEffect node="exhaustParticle4" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.20" maxRpmScale="0.60"/>
		</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"/>
        </dashboards>

       <sounds externalSoundFile="CudaSound.xml" /> 
    </motorized>

    <animations>
        <animation name="rpmDisplay">
            <part node="rpm_indicator" startTime="0" endTime="1" startRot="0 0 75" endRot="0 0 -160" />
        </animation>
        <animation name="speedDisplay">
            <part node="speed_indicator" startTime="0" endTime="2" startRot="0 0 7.55" endRot="0 0 -260"/>
        </animation>
        <animation name="loadingBarFuel">
            <part node="fuel_indicator" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -70"/>
        </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_TRAIN" linkNode="0>" />
    </honk>

    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier=".1" fieldMultiplier="1"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier=".2" fieldMultiplier="5"/>
	
	<designConfigurations>
	
        <designConfiguration name="Plum Crazy Purple">
            <objectChange node="Purple" visibilityActive="true" />
        </designConfiguration>	
		
        <designConfiguration name="Hemi Orange" price="600">
            <objectChange node="Orange" visibilityActive="true" />
		</designConfiguration>
        
		<designConfiguration name="Green Go" price="600">
            <objectChange node="Green" visibilityActive="true" />
		</designConfiguration>
		
		<designConfiguration name="Citron Yella" price="600">
            <objectChange node="Yellow" visibilityActive="true" />
		</designConfiguration>
    </designConfigurations>

    <i3dMappings>
        <i3dMapping id="Cuda" node="0>" />
		<i3dMapping id="Purple" node="0>4|17" />
		<i3dMapping id="Orange" node="0>4|16" />	
		<i3dMapping id="Green" node="0>4|18" />
		<i3dMapping id="Yellow" node="0>4|19" />	
		<i3dMapping id="exitPoint" node="0>10" />		
        <i3dMapping id="outdoorCameraTarget" node="0>9|0" />
        <i3dMapping id="outdoorCamera1" node="0>9|0|0" />
        <i3dMapping id="indoorCamera1" node="0>9|1" />	
        <i3dMapping id="cameraRaycastNode1" node="0>14|0" />
        <i3dMapping id="cameraRaycastNode2" node="0>14|1" />
        <i3dMapping id="cameraRaycastNode3" node="0>14|2" />
        <i3dMapping id="shadowFocusBox" node="0>14|3" />		
        <i3dMapping id="steeringWheel" node="0>6|0" />
        <i3dMapping id="leftArm" node="0>6|0|0" />
        <i3dMapping id="rightArm" node="0>6|0|1" />
        <i3dMapping id="player_skin" node="0>7|0" />
        <i3dMapping id="player_rightFoot" node="0>7|1" />
        <i3dMapping id="player_leftFoot" node="0>7|2" />
        <i3dMapping id="mirror01" node="0>4|15" />
        <i3dMapping id="mirror02" node="0>4|14" />
		<i3dMapping id="mirror03" node="0>4|13" />
        <i3dMapping id="exhaustParticle1" node="0>11|0" />
		<i3dMapping id="exhaustParticle2" node="0>11|1" />
		<i3dMapping id="exhaustParticle3" node="0>11|2" />
		<i3dMapping id="exhaustParticle4" node="0>11|3" />		
        <i3dMapping id="cabinDecalsLight" node="0>5|0" />		
        <i3dMapping id="rpm_indicator" node="0>12|0" />
        <i3dMapping id="fuel_indicator" node="0>12|2" />
        <i3dMapping id="speed_indicator" node="0>12|1" />		
        <i3dMapping id="aiCollisionTrigger" node="0>8" />
		<i3dMapping id="LFD" node="0>0|0|2"/>
		<i3dMapping id="RFD" node="0>1|0|2"/>
		<i3dMapping id="LF" node="0>0|0"/>
		<i3dMapping id="RF" node="0>1|0"/>
		<i3dMapping id="LR" node="0>2|0|2"/>
        <i3dMapping id="RR" node="0>3|0|2"/>				
		<i3dMapping id="Low1" node="0>13|0|2|0"/>
		<i3dMapping id="Low2" node="0>13|0|2|1"/>
		<i3dMapping id="Low3" node="0>13|0|2|4"/>
		<i3dMapping id="Low4" node="0>13|0|2|5"/>	
		<i3dMapping id="LowReal1" node="0>15|1"/>	
		<i3dMapping id="Hi1" node="0>13|0|2|2"/>
		<i3dMapping id="Hi2" node="0>13|0|2|3"/>
		<i3dMapping id="HiReal1" node="0>15|0"/>
		<i3dMapping id="Run1" node="0>13|0|5"/>
		<i3dMapping id="Run2" node="0>13|0|6"/>
		<i3dMapping id="Run3" node="0>13|0|7"/>
		<i3dMapping id="Run4" node="0>13|0|8"/>
		<i3dMapping id="Run5" node="0>13|0|9"/>
		<i3dMapping id="Run6" node="0>13|0|10"/>		
		<i3dMapping id="LFTurn" node="0>13|2|0|0"/>
		<i3dMapping id="LFTurnReal" node="0>13|2|0|2"/>		
		<i3dMapping id="RFTurn" node="0>13|2|1|0"/>
		<i3dMapping id="RFTurnReal" node="0>13|2|1|2"/>
		<i3dMapping id="LRTurn" node="0>13|2|0|1"/>
		<i3dMapping id="LRTurnReal" node="0>13|2|0|3"/>
		<i3dMapping id="RRTurn" node="0>13|2|1|1"/>
		<i3dMapping id="RRTurnReal" node="0>13|2|1|3"/>
		<i3dMapping id="Brake1" node="0>13|1|0"/>
		<i3dMapping id="Brake2" node="0>13|1|1"/>
		<i3dMapping id="BrakeReal" node="0>13|1|2"/>
		<i3dMapping id="Reverse1" node="0>13|3|0"/>
		<i3dMapping id="Reverse2" node="0>13|3|1"/>
		<i3dMapping id="ReverseReal" node="0>15|2"/>
    </i3dMappings>
</vehicle>
