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

    <storeData>
        <name>BMW e30 Combi</name>
        <specs>
            <power>320</power>
            <maxSpeed>240</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store_BMWe30.png</image>
        <price>100000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>756604</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>188064</indexBufferMemoryUsage>
        <textureMemoryUsage>18874808</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>BMWe30Combi.i3d</filename>
        <size width="2.8" length="6"/>
        <components count="1">
            <component centerOfMass="0 0 0.4" solverIterationCount="10" mass="1100" />
        </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 hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelFrontLeft"  driveNode="wheelFrontLeftTire" radius="0.411" width="0.3" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelFrontRight" driveNode="wheelFrontRightTire" radius="0.411" width="0.3" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="wheelBackLeft"   driveNode="wheelBackLeftTire" radius="0.411" width="0.3" forcePointRatio="0.5" initialCompression="25" suspTravel="0.18" spring="10" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="wheelBackRight"  driveNode="wheelBackRightTire" radius="0.411" width="0.3" forcePointRatio="0.5" initialCompression="25" suspTravel="0.18" spring="10" damper="3" frictionScale="3" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="50" rotMax="-42" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>
    </wheels>

    <lights>

        <sharedLight linkNode="0>8|0|13" filename="$data/shared/assets/lights/lizard/rear3ChamberLight_04_right.xml" />
	<sharedLight linkNode="0>8|0|14" filename="$data/shared/assets/lights/lizard/rear3ChamberLight_04_left.xml"/>

        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
        </states>

        <realLights>
            <low>
                <light node="frontLightLow"     lightTypes="0"/>
                <light node="highBeamLow"     lightTypes="1"/>
            </low>
            <high>
                <light node="cabinLight"    lightTypes="0"/>
                <light node="frontLightHigh"    lightTypes="0"/>
                <light node="highBeamHigh"      lightTypes="1 3"/>
                <light node="backLightsHigh1"   lightTypes="0 3"/>
                <brakeLight node="backLightsHigh1" />
                <turnLightLeft node="turnLightLeftFront" />
                <turnLightRight node="turnLightRightFront" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLight" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="backlightsStatic" lightTypes="0 3" />
            <defaultLight shaderNode="frontLightStatic" lightTypes="0 3" />
            <defaultLight shaderNode="frontLightStatic1" lightTypes="0 3" />
            <defaultLight shaderNode="frontLightStatic2" lightTypes="0 3" />
            <defaultLight shaderNode="frontLightStatic3" lightTypes="0 3" />
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="turnlightLeftStatic" />
            <turnLightRight shaderNode="turnlightRightStatic" />
        </turnLights>

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

        <dashboards>
        </dashboards>
    </lights>

    <enterable isTabbable="true" >
        <enterReferenceNode node="roadRage_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"/>
		<raycastNode node="cameraRaycastNode3"/>
            </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>

        <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>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60" />

        <dashboards>
            <dashboard displayType="ROT"     valueType="accelerationAxis" node="gasPedal"   minRot="0 0 0" maxRot="-20 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="120" >
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="30" 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="Road Rage 2.3l Eco" hp="290" price="0">
                <motor torqueScale="1.2006" minRpm="1000" maxRpm="6000" maxForwardSpeed="180" maxBackwardSpeed="45" brakeForce="1.5" lowBrakeForceScale="0.22">
                    <torque rpm="1000" torque="0.1"/>
                    <torque rpm="2400" torque="0.3"/>
                    <torque rpm="3480" torque="0.5"/>
                    <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="Road Rage 5.0l V8" hp="450" price="6500">
                <motor torqueScale="1.863" minRpm="1000" maxRpm="6000" maxForwardSpeed="210" maxBackwardSpeed="45" brakeForce="1.5" lowBrakeForceScale="0.22">
                    <torque rpm="1000" torque="0.1"/>
                    <torque rpm="2400" torque="0.3"/>
                    <torque rpm="3480" torque="0.5"/>
                    <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="Road Rage 5.0l V8" hp="460" price="12600">
                <motor torqueScale="1.9044" minRpm="1000" maxRpm="6000" maxForwardSpeed="240" maxBackwardSpeed="45" brakeForce="1.5" lowBrakeForceScale="0.22">
                    <torque rpm="1000" torque="0.1"/>
                    <torque rpm="2400" torque="0.3"/>
                    <torque rpm="3480" torque="0.5"/>
                    <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>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="exhaustParticleLeft" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.7" minRpmScale="0.02" maxRpmScale="0.25" />
            <exhaustEffect node="exhaustParticleRight" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.7" minRpmScale="0.02" maxRpmScale="0.25" />
        </exhaustEffects>
        <dashboards>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="240"  groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="rpm"   animName="rpmDisplay"   minValueAnim="0" maxValueAnim="8000" groups="MOTOR_ACTIVE"/>
        </dashboards>

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

    <animations>
        <animation name="speedDisplay">
            <part node="speed_indicator" startTime="0" endTime="1" startRot="0 0 3" endRot="0 0 195"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="rpm_indicator" startTime="0" endTime="1" startRot="0 0 3" endRot="0 0 195"/>
        </animation>
    </animations>

    <suspensions>
        <suspension useCharacterTorso="true" weight="70" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>

    <cylindered>

        <sounds>
            <hydraulic template="PICKUP_TRUNK" linkNode="roadRage_main_component1"/>
        </sounds>
    </cylindered>

    <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" />
    </honk>

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

    <baseMaterial>
        <material name="BMW_combi" baseNode="vis1">
            <shaderParameter name="colorMat0" value="SHARED_GREY5"/>
        </material>
        <material name="kolo" baseNode="wheelFrontLeftTire">
            <shaderParameter name="colorMat0" value="SHARED_GREY5"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="1200" useDefaultColors="false" defaultColorIndex="0">
	<baseMaterialConfiguration name="$l10n_defaultWhite" color="0.564 0.564 0.564 0" material="0"  price="0"/>
	<baseMaterialConfiguration name="$l10n_greenMetallic" color="0.0 0.03 0.02 0" material="0"  price="1100"/>
	<baseMaterialConfiguration name="$l10n_blueMetallic" color="0.02 0.03 0.07 0" material="0"  price="1100"/>
	<baseMaterialConfiguration name="$l10n_redMetallic" color="0.09 0.005 0.005 0" material="0"  price="1100"/>
	<baseMaterialConfiguration name="$l10n_greyMetallic" color="0.025 0.025 0.025 0" material="0"  price="1100"/>
	<baseMaterialConfiguration name="Orange Metallic" color="0.6 0.16 0.001 0" material="0"  price="1100"/>
	<material name="BMW_combi" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <designMaterialConfigurations price="10" useDefaultColors="false" defaultColorIndex="0">
	<designMaterialConfiguration name="$l10n_defaultBlue" color="0.056 0.056 0.076 4" material="4"  price="0"/>
        <designMaterialConfiguration name="$l10n_defaultWhite" color="0.564 0.564 0.564 4" material="4"  price="0"/>
	<designMaterialConfiguration name="$l10n_stainless" color="0.8 0.8 0.8 4" material="4"  price="1500"/>
	<designMaterialConfiguration name="$l10n_chrome" color="0.8 0.8 0.8 3" material="4"  price="2000"/>
	<designMaterialConfiguration name="$l10n_greenMetallic" color="0.0 0.03 0.02 4" material="4"  price="1100"/>
	<designMaterialConfiguration name="$l10n_blueMetallic" color="0.02 0.03 0.07 4" material="4"  price="1100"/>
	<designMaterialConfiguration name="$l10n_redMetallic" color="0.09 0.005 0.005 4" material="4"  price="1100"/>
	<designMaterialConfiguration name="$l10n_greyMetallic" color="0.025 0.025 0.025 4" material="4"  price="1100"/>
	<designMaterialConfiguration name="Orange Metallic" color="0.6 0.16 0.001 4" material="4"  price="1100"/>
	<material name="kolo" shaderParameter="colorMat0"/>
    </designMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="roadRage_main_component1" node="0>" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|3" />
        <i3dMapping id="wheelFrontLeftTire" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRightTire" node="0>0|1|0" />
        <i3dMapping id="wheelBackLeftTire" node="0>0|2|0" />
        <i3dMapping id="wheelBackRightTire" node="0>0|3|0" />
        <i3dMapping id="frontLightLow" node="0>8|1" />
        <i3dMapping id="highBeamLow" node="0>8|2" />
        <i3dMapping id="frontLightHigh" node="0>8|3" />
        <i3dMapping id="highBeamHigh" node="0>8|4" />
        <i3dMapping id="backLightsHigh1" node="0>8|5" />
        <i3dMapping id="turnLightLeftFront" node="0>8|6" />
        <i3dMapping id="turnLightLeftBack" node="0>8|7" />
        <i3dMapping id="turnLightRightFront" node="0>8|8" />
        <i3dMapping id="turnLightRightBack" node="0>8|9" />
        <i3dMapping id="reverseLight" node="0>8|10" />
        <i3dMapping id="backlightsStatic" node="0>8|0|3" />
        <i3dMapping id="frontLightStatic" node="0>8|0|7|1" />
        <i3dMapping id="frontLightStatic1" node="0>8|0|8|1" />
        <i3dMapping id="frontLightStatic2" node="0>8|0|9|1" />
        <i3dMapping id="frontLightStatic3" node="0>8|0|10|1" />
        <i3dMapping id="reverseLightsStatic" node="0>8|0|2" />
        <i3dMapping id="turnlightLeftStatic" node="0>8|0|11|0" />
        <i3dMapping id="turnlightRightStatic" node="0>8|0|12|0" />
        <i3dMapping id="dashboardDecalLightUp" node="0>8|0|5" />
        <i3dMapping id="exitPoint" node="0>12" />
        <i3dMapping id="outdoorCamera1" node="0>1|0|0" />
        <i3dMapping id="outdoorCameraTarget" node="0>1|0" />
        <i3dMapping id="cameraRaycastNode1" node="0>1|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>1|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>1|4" />
        <i3dMapping id="indoorCamera1" node="0>1|1" />
        <i3dMapping id="shadowFocusBox" node="0>1|5" />
        <i3dMapping id="mirror01" node="0>7|5|7|0" />
        <i3dMapping id="mirror02" node="0>7|5|7|1" />
        <i3dMapping id="mirror03" node="0>7|5|7|2" />
        <i3dMapping id="player_skin" node="0>10|0" />
        <i3dMapping id="player_rightFoot" node="0>10|1" />
        <i3dMapping id="player_leftFoot" node="0>10|2" />
        <i3dMapping id="rightArm" node="0>2|0|0|2" />
        <i3dMapping id="leftArm" node="0>2|0|0|1" />
        <i3dMapping id="player_rightFootGas" node="0>3|0|0" />
        <i3dMapping id="player_rightFootBrake" node="0>3|1|0" />
        <i3dMapping id="steeringWheel" node="0>2|0" />
        <i3dMapping id="gasPedal" node="0>3|0" />
        <i3dMapping id="brakePedal" node="0>3|1" />
        <i3dMapping id="exhaustParticleLeft" node="0>9|0" />
        <i3dMapping id="exhaustParticleRight" node="0>9|1" />
        <i3dMapping id="speed_indicator" node="0>5|0|0" />
        <i3dMapping id="rpm_indicator" node="0>5|1|0" />
        <i3dMapping id="wiper01" node="0>6|0" />
        <i3dMapping id="wiper02" node="0>6|1" />
        <i3dMapping id="aiCollisionTrigger" node="0>13|0" />
        <i3dMapping id="vis1" node="0>7|5" />
        <i3dMapping id="workingLightRight" node="0>8|11|0" />
        <i3dMapping id="workingLightLeft" node="0>8|11|1" />
        <i3dMapping id="cabinLight" node="0>8|12" />
    </i3dMappings>
</vehicle>
