<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="TGM">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
	<storeData>
		<name>
			<en>Rosenbauer AT3 Facelift</en>
		</name>

        <specs>
			<power>300</power>
			<maxSpeed>110</maxSpeed>
		</specs>

        <functions>
			<function>$l10n_function_truck</function>
		</functions>

        <image>store/store_MercedesHLF.dds</image>

        <price>180000</price>
		<lifetime>700</lifetime>
        <brand customIcon="store/brand_Rosenbauer.dds">Rosenbauer</brand>
		<category>Fire.3Dx</category>
	</storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>store/rosenbauer_at2020.i3d</filename>
        <sounds filename="sounds/tgstimber.xml"/>
		<size width="2.5" length="8" lengthOffset="-0.1"/>
        <components>
            <component centerOfMass="0 0.2 0.26" solverIterationCount="20" mass="14300" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="TRUCK"/>
        <mapHotspot type="TRUCK"/>
    </base>
	
	<licensePlates defaultPlacement="BOTH">
        <licensePlate node="0>9" 			position="FRONT" 		preferedType="ELONGATED" placementArea="0.15 0.25 0.15 0.25"/>
		<licensePlate node="0>10"  			position="BACK"  		preferedType="SQUARISH"  placementArea="0.25 0.3 0.25 0.3"/>
	</licensePlates>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Standart" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels autoRotateBackSpeed="2.2">
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="truckFront02" isLeft="true"  hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="2.58" repr="0>0|0" driveNode="0>0|0|0" forcePointRatio="0.5" initialCompression="25" suspTravel="0.08" spring="37" damper="50" frictionScale="3" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="truckFront02" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1" restLoad="2.58" repr="0>0|1" driveNode="0>0|1|0" forcePointRatio="0.5" initialCompression="25" suspTravel="0.08" spring="37" damper="50" frictionScale="3" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="dual" isLeft="true"  hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="2.44" repr="0>0|2" forcePointRatio="0.5" initialCompression="12" suspTravel="0.11" spring="90" damper="50" frictionScale="2" yOffset="0.002"/>
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="dualConnector" isLeft="true" offset="0.06" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="dual" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0" restLoad="2.44" repr="0>0|3" forcePointRatio="0.5" initialCompression="12" suspTravel="0.11" spring="90" damper="50" frictionScale="2" yOffset="0.002"/>
                        <additionalWheel filename="$data/shared/wheels/tires/continental/contiHybridHD3/315_80R22_5.xml" configId="dualConnector" isLeft="false" offset="0.06" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
		</wheelConfigurations>
		
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="35" rotMax="35" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
	
   <lights>
        <states>
            <state lightTypes="0" />
        </states>

        <realLights>
            <low>
                <light node="0>6|1|0|0" lightTypes="0"/>
                <light node="0>6|1|0|1" lightTypes="0"/>
                <light node="0>6|1|0|2" lightTypes="0"/>
                <light node="0>6|1|0|3" lightTypes="0"/>
                <light node="0>6|1|0|0" lightTypes="3"/>
                <light node="0>6|1|1|1" lightTypes="3"/>
            </low>
            <high>
                <light node="0>6|1|0|0" lightTypes="0"/>
                <light node="0>6|1|0|1" lightTypes="0"/>
                <light node="0>6|1|0|2" lightTypes="0"/>
                <light node="0>6|1|0|3" lightTypes="0"/>
                <light node="0>6|1|1|0" lightTypes="3"/>
                <light node="0>6|1|1|1" lightTypes="3"/>
                <light node="0>6|1|3|0" lightTypes="2"/>
                <light node="0>6|1|3|1" lightTypes="2"/>			
                <light node="0>6|1|3|2" lightTypes="2"/>
                <light node="0>6|1|3|3" lightTypes="2"/>					
                <turnLightLeft node="0>6|1|2|0"/>
                <turnLightRight node="0>6|1|2|1"/>
                <turnLightLeft node="0>6|1|2|2"/>
                <turnLightRight node="0>6|1|2|3"/>
            </high>
        </realLights>

        <staticLightCompounds>
            <staticLightCompound>
                <node node="0>6|0|0" intensity="2"/>
                <node node="0>6|0|1" intensity="20"/>
                <node node="0>6|0|2" intensity="5"/>
                <node node="0>6|0|3" intensity="10"/>
                <node node="0>6|0|4" intensity="10"/>
                <node node="0>6|0|5" intensity="10"/>
                <node node="0>6|0|6" intensity="10"/>
                <node node="0>6|0|7" intensity="10"/>
                <node node="0>6|0|8" intensity="5"/>
                <node node="0>6|0|9" intensity="5"/>	
                <node node="0>6|0|10" intensity="5"/>		
                <node node="0>11|1|1|16|0" intensity="2"/>	
                <node node="0>11|1|1|17|0" intensity="2"/>						
                <node node="0>11|3|3|0" intensity="5"/>
                <node node="0>11|1|2|1|0|0" intensity="10"/>		
                <node node="0>11|3|3|3" intensity="5"/>	

                <node node="0>11|3|1|4|0|0|0" intensity="2"/>	
                <node node="0>11|3|1|4|1|0|0" intensity="2"/>	
                <node node="0>11|3|1|4|2|0|0" intensity="2"/>	
                <node node="0>11|3|1|4|3|0|0" intensity="2"/>					
            </staticLightCompound>
        </staticLightCompounds>
		
		<dashboards>
            <dashboard displayType="ROT"        valueType="turnLightLeft"  node="0>6|0|6" minRot="90 0 0" maxRot="180 0 0" doInterpolation="true" />
            <dashboard displayType="ROT"        valueType="turnLightRight" node="0>6|0|7" minRot="90 0 0" maxRot="180 0 0" doInterpolation="true" />
        </dashboards>
		
        <beaconLights>
			<beaconLight node="0>12|0" filename="Blaulicht/beaconLight15.xml" />
			<beaconLight node="0>12|1" filename="Blaulicht/beaconLight16.xml" />
			<beaconLight node="0>11|3|3|1" filename="Blaulicht/beaconLight17.xml" />
			<beaconLight node="0>11|3|3|2" filename="Blaulicht/beaconLight18.xml" />
			<beaconLight node="0>11|3|2|0|0|1" filename="Blaulicht/beaconLight19.xml" />
			<beaconLight node="0>11|3|2|0|1|1" filename="Blaulicht/beaconLight20.xml" />
			<beaconLight node="0>12|2" filename="Blaulicht/beaconLight21.xml" />			
        </beaconLights>		
    </lights>
	
	<enterable isTabbable="true" >
        <enterReferenceNode node="0>"/>
        <exitPoint node="0>3"/>

         <cameras count="2">
            <camera node="0>1|0|0" rotatable="true" rotateNode="0>1|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="40" translation="0 3 5.75" rotation="-5 180 0">
                <raycastNode node="0>1|1"/>
                <raycastNode node="0>1|2"/>
				<raycastNode node="0>1|3"/>
            </camera>
            <camera node="0>11|3|1|3|4|0" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0" hadowFocusBox="0>1|4"/>
		</cameras>
		
        <characterNode node="0>11|3|1|3|3" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>11|3|5"/>
            <target ikChain="leftFoot" targetNode="0>11|3|4"/>
            <target ikChain="rightArm" targetNode="0>11|3|1|0|0|1" poseId="narrowFingers"/>
            <target ikChain="leftArm" targetNode="0>11|3|1|0|0|0" poseId="narrowFingers"/>
        </characterNode>
    </enterable>
	
	<drivable>
		<steeringWheel node="0>11|3|1|0|0" indoorRotation="360" outdoorRotation="40"/>
    </drivable>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="250">
						<exactFillRootNode node="0>11|4|0"/>
                        <dashboard displayType="ROT" valueType="fillLevel" node="0>11|3|1|4|2|0" minRot="0" maxRot="191" rotAxis="3" doInterpolation="true" interpolationSpeed="0.1" groups="MOTOR_ACTIVE"/>						
                    </fillUnit>			
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" showOnInfoHud="false" fillTypes="air" capacity="4000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<motorized statsType="truck">
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="15" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="354" fillType="air" permanentConsumption="false" refillLitersPerSecond="477" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </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="AT3 Facelift" hp="300" price="0">
                <motor torqueScale="1.124" minRpm="850" maxRpm="3100" maxForwardSpeed="110" maxBackwardSpeed="20" brakeForce="5" lowBrakeForceScale="0.22" rotInertia="0.0015">
                    <torque rpm="1000" torque="0.9" />
                    <torque rpm="1200" torque="1" />
                    <torque rpm="1880" torque="1" />
                    <torque rpm="2500" torque="0.75" />
                    <torque rpm="3000" torque="0.63" />
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" name="$l10n_info_transmission_automatic"/>
            </motorConfiguration>
        </motorConfigurations>
		
        <motorStartDuration>3000</motorStartDuration>
		
		<dashboards>
            <dashboard displayType="ROT" valueType="speed" 	node="0>11|3|1|4|0|0" minRot="0" maxRot="203" rotAxis="3" doInterpolation="true" interpolationSpeed="0.07" 	minValueAnim="0" 	maxValueAnim="83" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ROT" valueType="rpm" 	node="0>11|3|1|4|1|0" minRot="0" maxRot="217" rotAxis="3" doInterpolation="true" interpolationSpeed="1"	minValueAnim="0" 	maxValueAnim="3500" groups="MOTOR_ACTIVE"/>
		</dashboards>		
    </motorized>
	
	<dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"  isMotorRunning="false"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true"  isMotorRunning="true"/>
			<group name="MOTOR_DISPLAY"  isMotorStarting="false" isMotorRunning="true"/>
        </groups>
		
		<default>
			<dashboard displayType="VISIBILITY" node="0>11|3|0|23"		idleValue="0"		groups="MOTOR_ACTIVE"/>
			<dashboard displayType="VISIBILITY" node="0>11|3|0|24"		idleValue="0"		groups="MOTOR_ACTIVE"/>			
			<dashboard displayType="VISIBILITY" node="0>11|3|0|25"		idleValue="0"		groups="MOTOR_ACTIVE"/>		
			<dashboard displayType="VISIBILITY" node="0>11|3|0|27"		idleValue="0"		groups="MOTOR_ACTIVE"/>		
			<dashboard displayType="VISIBILITY" node="0>11|3|1|0|0|3"	idleValue="0"		groups="MOTOR_ACTIVE"/>		
        </default>
    </dashboard>

	<ai>
        <agent width="2.05" length="5.5" height="1.85" lengthOffset="1.35" frontOffset="3.09"/>
        <collisionTrigger node="0>8" width="2.4" height="1.8"/>
    </ai>
	
	<foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0.05"/>
    </foliageBending>
	
	<dischargeable requiresTipOcclusionArea="false"/>
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<suspensions>
		<suspension node="0>11|3" weight="500" minRotation="0 0 -1" maxRotation="3 0 1"  minTranslation="0 -30 0" maxTranslation="0 30 0" suspensionParametersX="120 10" suspensionParametersZ="120 10"/>
		<suspension node="0>11|3|1|3"   weight="150" minTranslation="-0.05 -0.25 0.0" 	maxTranslation="0.05 0.25 0.0" 	suspensionParametersX="20 4" 	suspensionParametersY="5 1" 	suspensionParametersZ="20 4"/>
        <suspension useCharacterTorso="true" weight="150" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1"/>
    </suspensions>	
	
	<!--Horn-->
	<cover>
        <coverConfigurations>
            <coverConfiguration coverInputButton="IMPLEMENT_EXTRA4" openCoverWhileTipping="false">
                <cover openAnimation="Horn" fillUnitIndices="1"/>
            </coverConfiguration>
        </coverConfigurations>
    </cover>	
	
    <animations>
		<animation name="Horn">
			<part node="0>11|3|1|2" startTime="0" endTime="0.01" visibility="false"/>
            <part node="0>11|3|1|2" startTime="0.01" endTime="0.02" visibility="true"/>
        </animation>
		<animation name="HWS">
			<part node="0>12|2" startTime="0" endTime="0.01" visibility="false"/>
            <part node="0>12|2" startTime="0.01" endTime="0.02" visibility="true"/>
        </animation>	
		<animation name="Ausfahren">	
			<part node="0>11|1|2|1" startTime="0" endTime="1" startTrans="-0.316 0.218 0" endTrans="-0.316 1.35 0"/>
            <part node="0>11|1|2|0" startTime="0" endTime="0.7" startScale="1 1 1" endScale="1 4.3 1"/>	
            <part node="0>11|1|2|0|0" startTime="0" endTime="0.8" startScale="1 1 1" endScale="1 1.8 1"/>				
	
			<part node="0>11|1|2|1|0|0" startTime="0" endTime="0.01" visibility="false"/>
            <part node="0>11|1|2|1|0|0" startTime="0.01" endTime="0.02" visibility="true"/>	
			<part node="0>11|1|2|1|0|1" startTime="0" endTime="0.01" visibility="false"/>
            <part node="0>11|1|2|1|0|1" startTime="0.01" endTime="0.02" visibility="true"/>				
		</animation>		
    </animations>	
	
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts posDirectionText="Heckwarner ausschalten" negDirectionText="Heckwarner einschalten" requiresPower="false">
                    <foldingPart animationName="HWS" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>	
	
	<cylindered>
		<movingTools>
			<!--Ausfahren-->
            <movingTool node="0>11|1|2|1">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="0.1"/>
                <animation animName="Ausfahren" animSpeed="2" />
            </movingTool>
		    <!--Drehen-->
			<movingTool node="0>11|1|2">
				<controls axis="AXIS_CRANE_ARM" invertAxis="false" invertMouseAxis="true" speedFactor="2"/>
				<rotation rotSpeed="25" rotAcceleration="30" rotMax="360" rotMin="-360" rotationAxis="2"/>
			</movingTool>		
		    <!--Drehen-->
			<movingTool node="0>11|1|2|1|0">
				<controls axis="AXIS_CRANE_ARM3" invertAxis="false" invertMouseAxis="true" speedFactor="2"/>
				<rotation rotSpeed="25" rotAcceleration="30" rotMax="70" rotMin="-70" rotationAxis="3"/>
			</movingTool>
		</movingTools>
    </cylindered>	
	
    <!-- Haspeln -->
    <design2Configurations title="Haspeln">
        <design2Configuration name="keine Haspel">
            <objectChange node="0>11|2|1|0" visibilityActive="true" visibilityInactive="false" />
        </design2Configuration>
        <design2Configuration name="eine Haspel" params="1800" price="1800">
            <objectChange node="0>11|2|1|1" visibilityActive="true" visibilityInactive="false" />
        </design2Configuration>
        <design2Configuration name="zwei Haspeln" params="2200" price="3600">
            <objectChange node="0>11|2|1|2" visibilityActive="true" visibilityInactive="false" />
        </design2Configuration>
    </design2Configurations>
	
    <!-- Frontblitzer -->
    <design3Configurations title="Frontblitzer">
        <design3Configuration name="Keine">
            <objectChange node="0>11|3|2|0|0" visibilityActive="false" visibilityInactive="true" />
            <objectChange node="0>11|3|2|0|1" visibilityActive="false" visibilityInactive="true" />
        </design3Configuration>
        <design3Configuration name="2 Unten" params="1800" price="500">
            <objectChange node="0>11|3|2|0|0" visibilityActive="true" visibilityInactive="false" />
        </design3Configuration>
        <design3Configuration name="2 Oben" params="1800" price="0">
            <objectChange node="0>11|3|2|0|1" visibilityActive="true" visibilityInactive="false" />
        </design3Configuration>
        <design3Configuration name="4" params="2200" price="0">
            <objectChange node="0>11|3|2|0|0" visibilityActive="true" visibilityInactive="false" />
            <objectChange node="0>11|3|2|0|1" visibilityActive="true" visibilityInactive="false" />
        </design3Configuration>
    </design3Configurations>

    <!-- Skin Design -->
	<design4Configurations title="Design">
		<design4Configuration name="Feuerwehr" price="0">
			<material materialSlotName="UV_Tor">
                <textures diffuse="textures/Skins/FW.dds"/>
            </material>
		</design4Configuration>
		<design4Configuration name="Feuerwehr Engelskirchen" price="0">
			<material materialSlotName="UV_Tor">
                <textures diffuse="textures/Skins/FW_Engelskirchen.dds"/>
            </material>
		</design4Configuration>
	</design4Configurations>
	
</vehicle>