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

    <storeData>
        <name>THW - B3nny</name>
        <specs>
            <power>150</power>
            <maxSpeed>192</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>Store_Sprinter_2014.png</image>
        <price>47990</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MERCEDES</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>Pol_Sprinter.i3d</filename>
        <size width="2.5" length="5"/>
        <components count="1">
            <component centerOfMass="0 0.6 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="wheelFrontLeft"  driveNode="wheelRotLeft" radius="0.34" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="14" 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="wheelRotRight" radius="0.34" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="14" damper="3" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="wheelRearLeft"   radius="0.34" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="14" damper="3" frictionScale="2.4" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.6" repr="wheelRearRight"  radius="0.34" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="14" damper="3" frictionScale="2.4" />
                        <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" />
        </states>

        <realLights>
            <low>
                <light node="light_Back"		lightTypes="0"/>
                <light node="light_Stand_H"		lightTypes="0"/>
                <light node="light_Lowbeam_H"	lightTypes="1"/>
                <light node="light_XENON"		lightTypes="1"/>
            </low>
            <high>
                <light node="light_Back"		lightTypes="0"/>
                <light node="light_Stand_H"		lightTypes="0"/>
                <light node="light_Lowbeam_H"	lightTypes="1"/>
                <light node="light_XENON"		lightTypes="1"/>
                <brakeLight node="light_Brake" />
                <turnLightLeft node="light_Turn_Left" />
                <turnLightRight node="light_Turn_Right" />
                <reverseLight node="light_Reverse" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="Lowbeam_H" intensity="25" lightTypes="1" />
            <defaultLight shaderNode="Lowbeam_X" intensity="100" lightTypes="1" />
            <defaultLight shaderNode="Back" intensity="50" lightTypes="0" />
            <defaultLight shaderNode="DRL_H" intensity="25" lightTypes="0" />
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="Brake" intensity="200" lightTypes="0" />
        </brakeLights>

        <turnLights>
            <turnLightLeft shaderNode="Turn_Left" intensity="50" />
            <turnLightLeft shaderNode="Turn_Left_H" intensity="50" />
            <turnLightLeft shaderNode="Turn_Left_X" intensity="50" />
            <turnLightLeft shaderNode="TLLA" intensity="25" />
            <turnLightRight shaderNode="Turn_Right" intensity="50" />
            <turnLightRight shaderNode="Turn_Right_H" intensity="50" />
            <turnLightRight shaderNode="Turn_Right_X" intensity="50" />
            <turnLightRight shaderNode="TLRA" intensity="25" />
        </turnLights>
		
        <reverseLights>
            <reverseLight shaderNode="Reverse" intensity="25" />
        </reverseLights>

        <sounds>
            <switchLight template="SWITCH_01"  />
            <turnLight template="SWITCH_TURNLIGHT"  />
        </sounds>
    </lights>
	
	<lightExtension>
		<strobeLights> <!-- Note for other mods: Maximum 20 Real Strobe lights should be used. -->
			<strobeLight linkNode="Beacon1" filename="scripts/strobeLightL.xml" sequence="200" invert="false" />
			<strobeLight linkNode="Beacon2" filename="scripts/strobeLightR.xml" sequence="200" invert="true" />
			<strobeLight linkNode="Beacon3" filename="scripts/strobeLightRoof.xml" sequence="45 45 162" invert="true" />
			<strobeLight linkNode="Beacon4" filename="scripts/FBK2.0_Frontblitz.xml" sequence="50 20 50 200" invert="true" />
			<strobeLight linkNode="Beacon5" filename="scripts/FBK2.0_Frontblitz.xml" sequence="50 20 50 200" invert="true" />
			
			<strobeLight linkNode="blau1" filename="scripts/strobeLightL.xml" sequence="200" invert="false" />
			<strobeLight linkNode="blau2" filename="scripts/strobeLightR.xml" sequence="200" invert="true" />
			<strobeLight linkNode="blau3" filename="scripts/strobeLightL.xml" sequence="200" invert="true" />
			<strobeLight linkNode="blau4" filename="scripts/strobeLightR.xml" sequence="200" invert="false" />
			
			<strobeLight linkNode="orange1" filename="scripts/strobeLightLo.xml" sequence="200" invert="false" />
			<strobeLight linkNode="orange2" filename="scripts/strobeLightRo.xml" sequence="200" invert="true" />
			<strobeLight linkNode="orange3" filename="scripts/strobeLightLo.xml" sequence="200" invert="true" />
			<strobeLight linkNode="orange4" filename="scripts/strobeLightRo.xml" sequence="200" invert="false" />
		</strobeLights>
	</lightExtension>
<!--realLightNode="0>3|10"--> 
    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="false" isMotorRunning="true"/>
        </groups>
        <default>
            <dashboard displayType="EMITTER" node="DRL_X" idleValue="0" intensity="4" groups="MOTOR_ACTIVE" />
        </default>
    </dashboard>

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

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

    <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" >
                    </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="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="313 CDI" hp="150" price="0">
                <motor torqueScale="0.6" minRpm="1000" maxRpm="6000" maxForwardSpeed="192" 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="exhaustParticleLeft" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.02" maxRpmScale="0.25" />
        </exhaustEffects>
		
        <sounds externalSoundFile="$data/sounds/vehicles/engine/lizard_pickup_2014/lizard_pickup_2014.xml" />
    </motorized>

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

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

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

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<foldable>
        <foldingParts>
            <foldingPart animationName="backDoor" speedScale="10" />
        </foldingParts>
    </foldable>

    <animations>
        <animation name="backDoor">
			<part node="blau" startTime="0.2" endTime="0.4" startTrans="0 0 0" endTrans="0 -5000000 0 " />
			<part node="orange" startTime="0.2" endTime="0.4" startTrans="0 -5000000 0" endTrans="0 0 0 " />
        </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>
        <movingTools>
            <movingTool node="Diffusor" playSound="true"/>
        </movingTools>
	</cylindered>
	
    <designConfigurations>
        <designConfiguration name="Polizei NRW" price="0">
            <objectChange node="Sprinter_vis_Polizei" visibilityActive="true" />
            <objectChange node="Polizei" visibilityActive="true" />
            <objectChange node="Horner" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>
	
	
	<vehicleTypeConfigurations>
		<vehicleTypeConfiguration name="Halogen" price="0" vehicleType="sprintpol">
			<objectChange node="Halogen" visibilityActive="true"/>
        </vehicleTypeConfiguration>
		<vehicleTypeConfiguration name="Xenon" price="0" vehicleType="sprintpol">
			<objectChange node="Xenon" visibilityActive="true"/>
        </vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
	
	<baseMaterial>
        <material name="Sprinter_mat" baseNode="Sprinter_vis">
            <shaderParameter name="colorMat0" value="0.8 0.8 0.8 "/>
        </material>
    </baseMaterial>
	
    <baseMaterialConfigurations price="500" useDefaultColors="true" defaultColorIndex="1">
		<baseMaterialConfiguration name="Blue matt metallic"  color="0 0.2 0.8" material="18"/>
		<baseMaterialConfiguration name="Performace green"  color="0.008 0.024 0.008" material="9"/>
		<baseMaterialConfiguration name="Sunset Orange"  color="0.2 0.035 0" material="32"/>
		<baseMaterialConfiguration name="Aventurinrot metallic"  color="0.15 0.005 0.01" material="9"/>
		<baseMaterialConfiguration name="Brilliantweiß"  color="1 1 1" material="32"/>
		<baseMaterialConfiguration name="Frozen Bluestone metallic"  color="1 1 1" material="9"/>
		<baseMaterialConfiguration name="Pure metal Silber"  color="0.2 0.2 0.2" material="32"/>
		<baseMaterialConfiguration name="Saphierschwaz metallic"  color="0.1 0.1 0.1" material="9"/>
		<baseMaterialConfiguration name="Almandinbraun metallic"  color="0.12 0.08 0.08" material="9"/>
		<baseMaterialConfiguration name="Carbonschwarz metallic"  color="0.04 0.04 0.05" material="9"/>
		<baseMaterialConfiguration name="Golf Gold metallic matt"  color="0.702 0.538 0.078" material="18"/>
		<material name="Sprinter_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <i3dMappings>
        <i3dMapping id="Sprinter" node="0>" />
        <i3dMapping id="wheels" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelRotLeft" node="0>0|0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|0" />
        <i3dMapping id="wheelRotRight" node="0>0|1|0|0" />
        <i3dMapping id="wheelRearLeft" node="0>0|2|0" />
        <i3dMapping id="wheelRearRight" node="0>0|3|0" />
        <i3dMapping id="lights" node="0>1" />
		
        <i3dMapping id="Back" node="0>1|0|0" />
        <i3dMapping id="Brake" node="0>1|0|1" />
        <i3dMapping id="Turn_Left" node="0>1|0|2" />
        <i3dMapping id="Turn_Right" node="0>1|0|3" />
        <i3dMapping id="Reverse" node="0>1|0|4" />
        <i3dMapping id="light_Back" node="0>1|1" />
        <i3dMapping id="light_Brake" node="0>1|2" />
        <i3dMapping id="light_Turn_Left" node="0>1|3" />
        <i3dMapping id="light_Turn_Right" node="0>1|4" />
        <i3dMapping id="light_Reverse" node="0>1|5" />
		
		
        <i3dMapping id="outdoorCameraTarget" node="0>2|0" />
        <i3dMapping id="outdoorCamera1" node="0>2|0|0" />
        <i3dMapping id="indoorCamera1" node="0>2|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>2|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>2|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>2|4" />
        <i3dMapping id="shadowFocusBox" node="0>2|5" />
        <i3dMapping id="steeringWheel" node="0>3|0" />
        <i3dMapping id="leftArm" node="0>3|0|0" />
        <i3dMapping id="rightArm" node="0>3|0|1" />
        <i3dMapping id="player_skin" node="0>4|0" />
        <i3dMapping id="player_rightFoot" node="0>4|1" />
        <i3dMapping id="player_leftFoot" node="0>4|2" />
        <i3dMapping id="exitPoint" node="0>5" />
        <i3dMapping id="mirror01" node="0>6|0" />
        <i3dMapping id="mirror02" node="0>6|1" />
        <i3dMapping id="mirror03" node="0>6|2" />
        <i3dMapping id="exhaustParticleLeft" node="0>7" />
        <i3dMapping id="aiCollisionTrigger" node="0>8" />
		
		
        <i3dMapping id="Body_Color" node="0>9|1|0" />
        <i3dMapping id="Sprinter_vis" node="0>9|1|0|0" />
        <i3dMapping id="Sprinter_vis_Polizei" node="0>9|1|1" />
        <i3dMapping id="Sprinter_vis_FW" node="0>9|1|2" />
        <i3dMapping id="Antenne" node="0>9|1|3" />
        <i3dMapping id="Sprinter_vis_Mein_Skin_1" node="0>9|1|4" />
        <i3dMapping id="Sprinter_vis_Mein_Skin_2" node="0>9|1|5" />
        <i3dMapping id="Sprinter_vis_Mein_Skin_3" node="0>9|1|6" />
        <i3dMapping id="Sprinter_vis_Mein_Skin_4" node="0>9|1|7" />
        <i3dMapping id="Sprinter_vis_Mein_Skin_5" node="0>9|1|8" />
		
        <i3dMapping id="Halogen" node="0>9|2" />
        <i3dMapping id="DRL_H" node="0>9|2|1|0" />
        <i3dMapping id="Lowbeam_H" node="0>9|2|1|1" />
        <i3dMapping id="Turn_Left_H" node="0>9|2|1|2" />
        <i3dMapping id="Turn_Right_H" node="0>9|2|1|3" />
        <i3dMapping id="light_Stand_H" node="0>9|2|1|4" />
        <i3dMapping id="light_Lowbeam_H" node="0>9|2|1|5" />
		
		
        <i3dMapping id="Xenon" node="0>9|3" />
        <i3dMapping id="DRL_X" node="0>9|3|1|0" />
        <i3dMapping id="Lowbeam_X" node="0>9|3|1|1" />
        <i3dMapping id="Turn_Left_X" node="0>9|3|1|2" />
        <i3dMapping id="Turn_Right_X" node="0>9|3|1|3" />
        <i3dMapping id="light_XENON" node="0>9|3|1|4" />
        <i3dMapping id="TLLA" node="0>9|3|1|5" />
        <i3dMapping id="TLRA" node="0>9|3|1|6" />
		
        <i3dMapping id="Polizei" node="0>10|0" />
        <i3dMapping id="Beacon1" node="0>10|0|2" />
        <i3dMapping id="Beacon2" node="0>10|0|3" />
        <i3dMapping id="Beacon3" node="0>10|0|4" />
        <i3dMapping id="Beacon4" node="0>10|0|5" />
        <i3dMapping id="Beacon5" node="0>10|0|6" />
		
        <i3dMapping id="Strom" node="0>10|1" />
        <i3dMapping id="blau" node="0>10|1|3" />
        <i3dMapping id="blau1" node="0>10|1|3|0" />
        <i3dMapping id="blau2" node="0>10|1|3|1" />
        <i3dMapping id="blau3" node="0>10|1|3|2" />
        <i3dMapping id="blau4" node="0>10|1|3|3" />
		
        <i3dMapping id="orange" node="0>10|1|4" />
        <i3dMapping id="orange1" node="0>10|1|4|0" />
        <i3dMapping id="orange2" node="0>10|1|4|1" />		
        <i3dMapping id="orange3" node="0>10|1|4|2" />
        <i3dMapping id="orange4" node="0>10|1|4|3" />

        <i3dMapping id="Horner" node="0>10|2" />
        <i3dMapping id="Horn" node="0>10|2|0" />
        <i3dMapping id="Horn_Rettung_AT" node="0>10|2|0|0" />
		
    </i3dMappings>
</vehicle>
