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

    <storeData>
        <name>MAN DLK Feuerwehr Troisdorf</name>
        <specs>
            <power>520</power>
            <maxSpeed>192</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_truck</function>
        </functions>
        <image>Store_DLK.dds</image>
        <price>130000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAN</brand>
        <category>trucks</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>DLK.i3d</filename>
        <size width="3.5" length="7" lengthOffset="-0.2"/>
       <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 rotSpeed="1"  restLoad="2.4" repr="Wheel_front_left"  driveNode="RotNodeL" radius="0.54" width="0.3" forcePointRatio="0.2" initialCompression="35" suspTravel="0.23" spring="28" damper="40" frictionScale="2" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="1"  restLoad="2.4" repr="Wheel_front_right"  driveNode="RotNodeR" radius="0.54" width="0.3" forcePointRatio="0.2" initialCompression="35" suspTravel="0.23" spring="28" damper="40" frictionScale="2" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics rotSpeed="0"  restLoad="1.6" repr="Wheel_back_left" radius="0.54" width="0.5" forcePointRatio="0.3" initialCompression="15" suspTravel="0.22"  spring="42" damper="50" frictionScale="1.9" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true" >
                        <physics rotSpeed="0"  restLoad="1.6" repr="Wheel_back_right" radius="0.54" width="0.5" forcePointRatio="0.3" initialCompression="15" suspTravel="0.22"  spring="42" damper="50" frictionScale="1.9" />
                        <tire tireTrackAtlasIndex="1" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

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

    <lights>
        <!--sharedLight linkNode="Reverse01"	filename="Worklight/hellaWorkingLightOval_01.xml" /-->
        <states>
             <state lightTypes="0" />
             <state lightTypes="0 1" />
             <state lightTypes="0 1 2" />
        </states>

        <realLights>
            <low>
                <light node="Lowbeam_LED"		        lightTypes="0 1" />
                <light node="Highbeam_LED"	            lightTypes="1" />
                <light node="Arbeitslicht_Light"	    lightTypes="2" />
                <light node="Backlight"			        lightTypes="0 1" />
            </low>
            <high>
                <light node="Lowbeam_LED"		        lightTypes="0 1" />
                <light node="Highbeam_LED"	            lightTypes="1" />
				<light node="Arbeitslicht_Light"	    lightTypes="2" />
                <light node="Backlight"			        lightTypes="0 1" />
				
                <brakeLight node="BrakelightR" />
                <turnLightLeft node="Turnlight_Left" />
                <turnLightRight node="Turnlight_Right" />
                <reverseLight node="Reverse_light" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="Abblendlicht" lightTypes="0"/>
            <defaultLight shaderNode="Fernlicht" lightTypes="1"/>
            <defaultLight shaderNode="Arbeitslicht" lightTypes="2"/>
            <defaultLight shaderNode="BacklightH" intensity="10" lightTypes="0 1"/>
        </defaultLights>

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

        <brakeLights>
            <brakeLight shaderNode="Brakelight" intensity="40" />
        </brakeLights>
	   
        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
		
	    <beaconLights>
            <beaconLight node="beaconLightLeft"  speed="0.015" filename="beaconLight01.xml"/>
            <beaconLight node="beaconLightRight" speed="0.019" filename="beaconLight01.xml"/>
        </beaconLights>
    </lights>

	 <foldable>
        <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02" turnOnFoldDirection="-1">
            <foldingPart animationName="folding" speedScale="1" />
        </foldingParts>
    </foldable>
	
	<cover>
        <coverConfigurations>
            <coverConfiguration openCoverWhileTipping="false">
                <cover openAnimation="Horn" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <enterable isTabbable="true" >
        <enterReferenceNode node="DLK" />
        <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>
    </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="DLK" hp="500" 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="9.5" maxForwardGearRatio="22" minBackwardGearRatio="20" maxBackwardGearRatio="70" />
            </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>

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

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

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="false" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
	<foldable>
        <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02" turnOnFoldDirection="-1">
            <foldingPart animationName="folding" speedScale="1" />
        </foldingParts>
    </foldable>
	
	<animations>
		<animation name="folding">
			<part node="StuetzeLV1"   startTime="1" endTime="2" startTrans="1 0 0" endTrans="0 0 0" />	
			<part node="StuetzeLV2"   startTime="0" endTime="1" startTrans="0 -0.442 0" endTrans="0 0 0" />	
			<part node="StuetzeLH1"   startTime="1" endTime="2" startTrans="1 0 0" endTrans="0 0 0" />	
			<part node="StuetzeLH2"   startTime="0" endTime="1" startTrans="0 -0.442 0" endTrans="0 0 0" />	
			<part node="StuetzeRV1"   startTime="1" endTime="2" startTrans="-1 0 0" endTrans="0 0 0" />	
			<part node="StuetzeRV2"   startTime="0" endTime="1" startTrans="0 -0.442 0" endTrans="0 0 0" />	
			<part node="StuetzeRH1"   startTime="1" endTime="2" startTrans="-1 0 0" endTrans="0 0 0" />	
			<part node="StuetzeRH2"   startTime="0" endTime="1" startTrans="0 -0.442 0" endTrans="0 0 0" />	
			<part node="StuetzeBlinker_L" startTime="0" endTime="0.1" visibility="true" />
			<part node="StuetzeBlinker_R" startTime="0" endTime="0.1" visibility="true" />
			<part node="StuetzeBlinker_L" startTime="0.1" endTime="0.2" visibility="false" />	
			<part node="StuetzeBlinker_R" startTime="0.1" endTime="0.2" visibility="false" />	
			<part node="Haube" startTime="0.1" endTime="0.2" visibility="false" />	
			<part node="Haube" startTime="0.1" endTime="0.2" visibility="true" />	
        </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>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
<cylindered>
	<movingTools>
	<zTranslationNodes>
                    <zTranslationNode node="Leiter4" />
                    <zTranslationNode node="Leiter5" />
        </zTranslationNodes>
				
       <movingTool node="Leiter1" playSound="false" >
                <controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="1.0" />
                <rotation rotSpeed="25" rotAcceleration="120" rotMax="360" rotMin="-360" startRot="0" rotationAxis="2"/>
        </movingTool>
		
		<movingTool node="Leiter2" playSound="false" >
                <controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="1.0" />
                <rotation rotSpeed="25" rotAcceleration="120" rotMax="0" rotMin="-75" startRot="0" rotationAxis="1"/>
        </movingTool>
		
		<movingTool node="Leiter8">
		    <controls axis="AXIS_CRANE_TOOL2" invertAxis="false" mouseSpeedFactor="1" />
            <rotation rotSpeed="25" rotAcceleration="120" rotMax="165" rotMin="0" startRot="0" rotationAxis="1" />
		</movingTool>
			
		<movingTool node="Leiter4" playSound="false">
                <controls axis="AXIS_CRANE_ARM3" invertAxis="false" mouseSpeedFactor="1" iconName="CRANE_ARM2_TRANSLATE" />
                <translation transSpeed="1" transAcceleration="10" transMax="9" transMin="0" startTrans="0" translationAxis="3" />
                <dependentMovingTool node="Leiter4" speedScale="1" />
				<dependentMovingTool node="Leiter5" speedScale="1" />
        </movingTool>
		
	    <movingTool node="Leiter5" playSound="false">
                <translation transSpeed="1" transAcceleration="10" transMax="9" transMin="0" startTrans="0" translationAxis="3" />
        </movingTool>
	</movingTools>
</cylindered>
	
    <i3dMappings>
        <i3dMapping id="DLK" 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" />
        <i3dMapping id="Wheel_back_right" node="0>0|3" />
        <i3dMapping id="steeringWheel" node="0>3|0" />
        <i3dMapping id="player_rightHand" node="0>3|0|1" />
        <i3dMapping id="player_leftHand" node="0>3|0|0" />
        <i3dMapping id="outdoorCameraTarget" node="0>8|0" />
        <i3dMapping id="outdoorCamera1" node="0>8|0|0" />
        <i3dMapping id="indoorCamera1" node="0>8|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>8|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>8|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>8|4" />
        <i3dMapping id="shadowFocusBox" node="0>8|5" />
		
        <i3dMapping id="Lights" node="0>4" />
        <i3dMapping id="Abblendlicht" node="0>4|0|6" />
        <i3dMapping id="Fernlicht" node="0>4|0|7" />
        <i3dMapping id="Highbeam_LED" node="0>4|7" />
        <i3dMapping id="BacklightH" node="0>4|0|4" />
        <i3dMapping id="Brakelight" node="0>4|0|5" />	
        <i3dMapping id="Turn_Left" node="0>4|0|2" />	
        <i3dMapping id="Turn_Right" node="0>4|0|1" />		
        <!--i3dMapping id="Reverse01" node="0>3|0|8" /-->	
        <i3dMapping id="Lowbeam_LED" node="0>4|1" />	
        <i3dMapping id="Backlight" node="0>4|2" />	
        <i3dMapping id="BrakelightR" node="0>4|3" />	
        <i3dMapping id="Turnlight_Left" node="0>4|6" />	
        <i3dMapping id="Turnlight_Right" node="0>4|4" />	
        <i3dMapping id="Reverse_light" node="0>4|5" />	
        <i3dMapping id="Reverse" node="0>4|0|3" />		
        <i3dMapping id="Arbeitslicht" node="0>4|0|0" />
        <i3dMapping id="Arbeitslicht_Light" node="0>4|8" />
		
        <i3dMapping id="beaconLightLeft" node="0>10|0" />		
        <i3dMapping id="beaconLightRight" node="0>10|1" />		
		
        <i3dMapping id="aiCollisionTrigger" node="0>5|0" />
        <i3dMapping id="exitPoint" node="0>6" />
        <!--i3dMapping id="semitrailerAttacherJoint" node="0>13|5" /!-->
        <i3dMapping id="exhaustParticle" node="0>7" />
        <i3dMapping id="player_skin" node="0>12|0" />
        <i3dMapping id="player_rightFoot" node="0>12|2" />
        <i3dMapping id="player_leftFoot" node="0>12|1" />
		
        <i3dMapping id="StuetzeLV1" node="0>1|1|1|0" />
        <i3dMapping id="StuetzeLH1" node="0>1|1|1|1" />
		<i3dMapping id="StuetzeRV1" node="0>1|1|0|0" />
        <i3dMapping id="StuetzeRH1" node="0>1|1|0|1" />
		<i3dMapping id="StuetzeLV2" node="0>1|1|1|0|0" />
        <i3dMapping id="StuetzeLH2" node="0>1|1|1|1|0" />
		<i3dMapping id="StuetzeRV2" node="0>1|1|0|0|0" />
        <i3dMapping id="StuetzeRH2" node="0>1|1|0|1|0" />
        <i3dMapping id="StuetzeBlinker_L" node="0>1|1|1|1|1" />
        <i3dMapping id="StuetzeBlinker_R" node="0>1|1|0|1|1" />
        <i3dMapping id="Haube" node="0>1|2|3" />
		
        <i3dMapping id="Horn" node="0>11" />
		
		<i3dMapping id="Leiter1" node="0>1|2" />
		<i3dMapping id="Leiter2" node="0>1|2|0" />
		<i3dMapping id="Leiter3" node="0>1|2|0|0" />
		<i3dMapping id="Leiter4" node="0>1|2|0|0|0" />
		<i3dMapping id="Leiter5" node="0>1|2|0|0|0|0" />
		<i3dMapping id="Leiter8" node="0>1|2|0|0|0|0|0|0|1" />
	</i3dMappings>
</vehicle>