<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Z_Vision">
    <annotation>Dies ist die Generation 2016 der Funkstreifenwagen in NRW</annotation>

    <storeData>
        <name>BMW 318d FuStW NRW 2016</name>
        <specs>
            <power>230</power>
            <maxSpeed>192</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_truck</function>
        </functions>
        <image>Store_BMW.dds</image>
        <price>130000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BMW</brand>
        <category>cars</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>-0.3 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3984248</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>678444</indexBufferMemoryUsage>
        <textureMemoryUsage>30410616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>BMW.i3d</filename>
        <size width="3.5" length="7" lengthOffset="-0.2"/>
       <components count="1">
            <component centerOfMass="0 0.68 0" solverIterationCount="10" 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 hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="Wheel_front_left"  driveNode="RotNodeL" radius="0.39" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.23" spring="19" damper="10" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="Wheel_front_right" driveNode="RotNodeR" radius="0.39" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.23" spring="19" damper="1" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="Wheel_back_left"   radius="0.37" width="0.27" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23" spring="19" damper="1" frictionScale="2.6" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="Wheel_back_right"  radius="0.37" width="0.27" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23" spring="19" damper="1" frictionScale="2.6" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="42" 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="light_Lowbeam"		lightTypes="0" />
                <light node="light_Back"		lightTypes="0" />
                <light node="light_Fog"			lightTypes="1" />
                <light node="light_Highbeam"	lightTypes="2" />
            </low>
            <high>
                <light node="light_Lowbeam"		lightTypes="0" />
                <light node="light_Back"		lightTypes="0" />
                <light node="light_Fog"			lightTypes="1" />
                <light node="light_Highbeam"	lightTypes="2" />
                <brakeLight node="light_Brake" />
                <turnLightLeft node="light_Turn_Left" />
                <turnLightRight node="light_Turn_Right" />
                <reverseLight node="light_Reverse" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="Lowbeam" intensity="30" lightTypes="0"/>
            <defaultLight shaderNode="Back" intensity="25" lightTypes="0"/>
            <defaultLight shaderNode="Fog" intensity="40" lightTypes="1"/>
            <defaultLight shaderNode="Highbeam" intensity="50" lightTypes="2"/>
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="Brake" intensity="60" />
        </brakeLights>
	   
        <turnLights>
            <turnLightLeft shaderNode="Turn_Left" />
            <turnLightRight shaderNode="Turn_Right" />
        </turnLights>
		
		<reverseLights>
            <reverseLight shaderNode="Reverse" intensity="25" />
        </reverseLights>

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

    </lights>

	<lightExtension>
		<strobeLights> 
		    <!-- Front Blaulicht !-->
			<strobeLight lightShaderNode="BL_R" realLightNode="0>14|10" shaderIntensity="300" sequence="100 20 20 20 20 280" invert="true" />
			<strobeLight lightShaderNode="BL_L" realLightNode="0>14|9" shaderIntensity="300" sequence="280 100 20 20 20 20" invert="false" />
			<!-- Frontblitzer !-->
			<strobeLight lightShaderNode="Static_L" realLightNode="0>14|11" shaderIntensity="200" sequence="200 20 50 20 50 20" invert="false" />
			<strobeLight lightShaderNode="Static_R" realLightNode="0>14|12" shaderIntensity="200" sequence="200 20 50 20 50 20" invert="false" />
			<!-- Frontblitzer !-->
		</strobeLights>
	</lightExtension>
	
	 <foldable>
        <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02" turnOnFoldDirection="-1">
            <foldingPart animationName="folding" speedScale="1" />
        </foldingParts>
    </foldable>
	
	 <animations>
		<animation name="folding">
			<part node="Matrix" startTime="0" endTime="0.1" visibility="true" />
			<part node="Matrix" startTime="0.1" endTime="0.2" visibility="false" />
        </animation>
		<animation name="Horn">
			<part node="Horn" startTime="0" endTime="0.1" visibility="false" />
			<part node="Horn" startTime="0.1" endTime="0.2" visibility="true" />
        </animation>
    </animations>
	
	<cover>
        <coverConfigurations>
            <coverConfiguration openCoverWhileTipping="false">
                <cover openAnimation="Horn" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>
	
	<cylindered>
        <movingTools>
			<movingTool node="Horn" playSound="true"/>
        </movingTools>
	</cylindered>


    <enterable isTabbable="true" >
        <enterReferenceNode node="Hyundai_Xcient" />
        <exitPoint node="exitPoint" />

        <cameras>
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="40" translation="0 0 9" rotation="-20 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" shadowFocusBox="shadowFocusBox" />
        </cameras>

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

        <!--mirrors>
            <mirror node="mirror1" prio="1" />
            <mirror node="mirror2" prio="1" />
            <mirror node="mirror3" prio="2" />
            <mirror node="mirror4" prio="2" />
        </mirrors!-->
    </enterable>

    <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="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="318df Touring" hp="230" price="0">
                <motor torqueScale="0.6" minRpm="1000" maxRpm="6000" maxForwardSpeed="120" maxBackwardSpeed="45" brakeForce="2" lowBrakeForceScale="0.22">
                    <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>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="exhaustParticle" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.03" maxRpmScale="0.2" xzRotationsOffset="40 0" xzRotationsForward="20 80" xzRotationsBackward="20 -80" xzRotationsLeft="20 80" xzRotationsRight="20 -80" />
        </exhaustEffects>

        <sounds externalSoundFile="$data/sounds/vehicles/engine/lizard_pickup_2014/lizard_pickup_2014.xml" />

    </motorized>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>

        <steeringWheel node="steeringWheel" indoorRotation="360" outdoorRotation="25" />
	</drivable>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="400">
                    </fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="def" capacity="60"/>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="4000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <attacherJoints comboDuration="2">
        <attacherJointConfigurations>
            <attacherJointConfiguration>
                <attacherJoint node="semitrailerAttacherJoint" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 125 12">
                    <schema position="1 0" rotation="0" invertX="false" />
                    <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
                </attacherJoint>
            </attacherJointConfiguration>
        </attacherJointConfigurations>

        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <honk>
        <sound template="HONK_JD8400R" />
    </honk>

    <ai>
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="false" isMotorRunning="true"/>
        </groups>
		<default>
            <dashboard displayType="EMITTER" node="DRL" idleValue="0" intensity="2" groups="MOTOR_ACTIVE" />
        </default>
    </dashboard>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<designConfigurations>
        <designConfiguration name="POLIZEI" price="0">
            <objectChange node="POLIZEI" visibilityActive="true" />
            <objectChange node="POLIZEI1" visibilityActive="true" />
        </designConfiguration>
        <designConfiguration name="GEFAHR" price="0">
            <objectChange node="GEFAHR" visibilityActive="true" />
            <objectChange node="GEFAHR1" visibilityActive="true" />
        </designConfiguration>
		<designConfiguration name="STAU" price="0">
            <objectChange node="STAU" visibilityActive="true" />
            <objectChange node="STAU1" visibilityActive="true" />
        </designConfiguration>
		<designConfiguration name="UNFALL" price="0">
            <objectChange node="UNFALL" visibilityActive="true" />
            <objectChange node="UNFALL1" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>

    <i3dMappings>
        <i3dMapping id="Hyundai_Xcient" node="0>" />
        <i3dMapping id="wheels" node="0>0" />
        <i3dMapping id="Wheel_front_left" node="0>0|0" />
        <i3dMapping id="RotNodeL" node="0>0|0|0" />
        <i3dMapping id="Wheel_front_right" node="0>0|1" />
        <i3dMapping id="RotNodeR" node="0>0|1|0" />
        <i3dMapping id="Wheel_back_left" node="0>0|2|0" />
        <i3dMapping id="Wheel_back_right" node="0>0|3|0" />
        <i3dMapping id="steeringWheel" node="0>8|0" />
        <i3dMapping id="player_rightHand" node="0>8|0|1" />
        <i3dMapping id="player_leftHand" node="0>8|0|0" />
        <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>4" />
        <i3dMapping id="cameraRaycastNode2" node="0>4|0" />
        <i3dMapping id="cameraRaycastNode3" node="0>4|1" />
        <i3dMapping id="shadowFocusBox" node="0>18" />
		
        <i3dMapping id="Lights" node="0>14" />
		
		
        <i3dMapping id="DRL" node="0>14|0|0" />
        <i3dMapping id="Lowbeam" node="0>14|0|1" />
        <i3dMapping id="Back" node="0>14|0|2" />
        <i3dMapping id="Brake" node="0>14|0|3" />
        <i3dMapping id="Turn_Left" node="0>14|0|4" />
        <i3dMapping id="Turn_Right" node="0>14|0|5" />
        <i3dMapping id="Reverse" node="0>14|0|6" />
        <i3dMapping id="Fog" node="0>14|0|7" />
        <i3dMapping id="Highbeam" node="0>14|0|8" />
        <i3dMapping id="BL_L" node="0>14|0|9" />
        <i3dMapping id="BL_R" node="0>14|0|10" />
		
        <i3dMapping id="light_Lowbeam" node="0>14|1" />
        <i3dMapping id="light_Back" node="0>14|2" />
        <i3dMapping id="light_Brake" node="0>14|3" />
        <i3dMapping id="light_Turn_Left" node="0>14|4" />
        <i3dMapping id="light_Turn_Right" node="0>14|5" />
        <i3dMapping id="light_Reverse" node="0>14|6" />
        <i3dMapping id="light_Fog" node="0>14|7" />
        <i3dMapping id="light_Highbeam" node="0>14|8" />
		
		
		
		
		
		
        <i3dMapping id="aiCollisionTrigger" node="0>7" />
        <i3dMapping id="exitPoint" node="0>10" />
        <!--i3dMapping id="mirror1" node="0>13|4|0" />
        <i3dMapping id="mirror2" node="0>13|4|1" />
        <i3dMapping id="mirror3" node="0>13|4|2" />
        <i3dMapping id="mirror4" node="0>13|4|3" /-->
        <i3dMapping id="semitrailerAttacherJoint" node="0>13|5" />
        <i3dMapping id="exhaustParticle" node="0>5" />
        <i3dMapping id="HyundaiXcient" node="0>13|5" />
        <i3dMapping id="player_skin" node="0>16|0" />
        <i3dMapping id="player_rightFoot" node="0>16|2" />
        <i3dMapping id="player_leftFoot" node="0>16|1" />
        <!--i3dMapping id="Confics" node="0>13|6" />
        <i3dMapping id="DBS975" node="0>15|4" />
        <i3dMapping id="Ziegler" node="0>15|3" /!-->
		
		<i3dMapping id="Static_L" node="0>15|1|2" />
		<i3dMapping id="Static_R" node="0>15|2|2" />
		
		<i3dMapping id="Horn" node="0>17" />
		<i3dMapping id="Matrix" node="0>19" />
		
		<i3dMapping id="POLIZEI" node="0>19|0|0" />
		<i3dMapping id="POLIZEI1" node="0>19|1|0" />
		<i3dMapping id="GEFAHR" node="0>19|0|1" />
		<i3dMapping id="GEFAHR1" node="0>19|1|1" />
		<i3dMapping id="STAU" node="0>19|0|2" />
		<i3dMapping id="STAU1" node="0>19|1|2" />
		<i3dMapping id="UNFALL" node="0>19|0|3" />
		<i3dMapping id="UNFALL1" node="0>19|1|3" />
	</i3dMappings>
</vehicle>
