<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved. dimanix</annotation>
	<filename>scania_112E.i3d</filename>
	<size width="3.5" length="7"/>
	
	<wheelConfigurations>
        <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" >
            <wheels autoRotateBackSpeed="1.5">
                <wheel rotSpeed="1" restLoad="2.0" repr="0>0" driveNode="0>0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml"  configIndex="truckFront" isLeft="true"  initialCompression="30" suspTravel="0.15" spring="30" damper="40" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>1" driveNode="0>1|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml"  configIndex="truckFront" isLeft="false" initialCompression="30" suspTravel="0.15" spring="30" damper="40" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>2" driveNode="0>2|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml"  configIndex="truckFront" isLeft="true"  initialCompression="30" suspTravel="0.15" spring="30" damper="40" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>3" driveNode="0>3|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml"  configIndex="truckFront" isLeft="false" initialCompression="30" suspTravel="0.15" spring="30" damper="40" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="0" restLoad="2.5" repr="0>4"                     forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="true" initialCompression="10" suspTravel="0.15" spring="35" damper="55" hasParticles="true" >
                    <additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
                </wheel>
                <wheel rotSpeed="0" restLoad="2.5" repr="0>5"                     forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="false"  initialCompression="10" suspTravel="0.15" spring="35" damper="55" hasParticles="true" >
                    <additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
                </wheel>
                <wheel rotSpeed="0" restLoad="2.4" repr="0>6"                     forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="true" initialCompression="10" suspTravel="0.15" spring="35" damper="55" hasParticles="true" hasTireTracks="true" >
                    <additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
                </wheel>
                <wheel rotSpeed="0" restLoad="2.4" repr="0>7"                     forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="false"  initialCompression="10" suspTravel="0.15" spring="35" damper="55" hasParticles="true" hasTireTracks="true" >
                    <additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
                </wheel>
			</wheels>
            <!-- move wheel nodes for duals wheels -->
            <objectChange node="0>0" translationActive="1.03 0.30 2.02"/>
            <objectChange node="0>1" translationActive="-1.03 0.30 2.02"/>
            <objectChange node="0>2" translationActive="1.03 0.30 -1.49"/>
            <objectChange node="0>3" translationActive="-1.03 0.30 -1.49"/>
			<objectChange node="0>4" translationActive="1.08 0.26 -2.78"/>
            <objectChange node="0>5" translationActive="-1.08 0.26 -2.78"/>
            <objectChange node="0>6" translationActive="1.08 0.26 -4.1"/>
            <objectChange node="0>7" translationActive="-1.08 0.26 -4.1"/>
				

        </wheelConfiguration>
        <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="5800" icon="$dataS2/menu/hud/configurations/config_wheel_broad.png" >
            <wheels autoRotateBackSpeed="1.5">
                <wheel rotSpeed="1" restLoad="2.0" repr="0>0" driveNode="0>0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" isLeft="true"  configIndex="manFront" initialCompression="30" suspTravel="0.20" spring="30" damper="50" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>1" driveNode="0>1|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" isLeft="false" configIndex="manFront" initialCompression="30" suspTravel="0.20" spring="30" damper="50" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>2" driveNode="0>2|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" isLeft="true"  configIndex="manFront" initialCompression="25" suspTravel="0.20" spring="30" damper="50" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="1" restLoad="2.0" repr="0>3" driveNode="0>3|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" isLeft="false" configIndex="manFront" initialCompression="25" suspTravel="0.20" spring="30" damper="50" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="0" restLoad="2.5" repr="0>4"                     				forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" isLeft="true"  configIndex="manBack"  initialCompression="10" suspTravel="0.30" spring="35" damper="65" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="2.5" repr="0>5"                     				forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" isLeft="false" configIndex="manBack"  initialCompression="10" suspTravel="0.30" spring="35" damper="65" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="2.4" repr="0>6"                     				forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" isLeft="true"  configIndex="manBack"  initialCompression="10" suspTravel="0.30" spring="35" damper="65" hasParticles="true" hasTireTracks="true" />
                <wheel rotSpeed="0" restLoad="2.4" repr="0>7"                     				forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" isLeft="false" configIndex="manBack"  initialCompression="10" suspTravel="0.30" spring="35" damper="65" hasParticles="true" hasTireTracks="true" />
			</wheels>
			
            <!-- move wheel nodes for offroad wheels -->
            <objectChange node="0>0" translationActive="0.96 0.30 2.02"/>
            <objectChange node="0>1" translationActive="-0.96 0.30 2.02"/>
            <objectChange node="0>2" translationActive="0.96 0.30 -1.49"/>
            <objectChange node="0>3" translationActive="-0.96 0.30 -1.49"/>
			<objectChange node="0>4" translationActive="0.96 0.26 -2.78"/>
            <objectChange node="0>5" translationActive="-0.96 0.26 -2.78"/>
            <objectChange node="0>6" translationActive="0.96 0.26 -4.1"/>
            <objectChange node="0>7" translationActive="-0.96 0.26 -4.1"/>	
			
        </wheelConfiguration>
    </wheelConfigurations>
	
	<rimColorConfigurations useDefaultColors="true" price="200" icon="$dataS2/menu/hud/configurations/config_rimColor.png">
        <rimColorConfiguration color="0.294 0.294 0.294 1" />
        <colorNode node="0>0" />
    </rimColorConfigurations>

	
	<ackermannSteering rotSpeed="55" rotMax="47" rotCenterWheel1="4" rotCenterWheel2="5" />
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" wheelIndex1="0" wheelIndex2="1" /> <!-- front right-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" wheelIndex1="2" wheelIndex2="3" /> <!-- front left-left -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" wheelIndex1="4" wheelIndex2="5" /> <!-- back right-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" wheelIndex1="6" wheelIndex2="7" /> <!-- back left-left -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" differentialIndex1="0" differentialIndex2="1" /><!-- front-left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" differentialIndex1="2" differentialIndex2="3" /><!-- back-left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="4" differentialIndex2="5" /><!-- front-back -->
    </differentials>
	
    <motorConfigurations>
        <motorConfiguration name="$l10n_configuration_valueDefault" price="0">
            <motor torqueScale="2.262" minRpm="1000" maxRpm="2200" maxForwardSpeed="85" maxBackwardSpeed="15" brakeForce="7" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.002" minForwardGearRatio="9.11" maxForwardGearRatio="150" minBackwardGearRatio="40" maxBackwardGearRatio="150">
                <torque normRpm="0.45" torque="0.5"/>
                <torque normRpm="0.5" torque="0.6"/>
                <torque normRpm="0.59" torque="0.7"/>
                <torque normRpm="0.72" torque="1"/>
                <torque normRpm="0.86" torque="0.88"/>
                <torque normRpm="1" torque="0.7"/>
            </motor>
        </motorConfiguration>
    </motorConfigurations>
	
    <fuelCapacity>950</fuelCapacity>
    <fuelUsage>65</fuelUsage>
    
	<cameras count="2">
        <camera1 index="0>8|0|0" rotatable="true" rotateNode="0>8|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
            <raycastNode index="0>8|2"/>
            <raycastNode index="0>8|3"/>
            <raycastNode index="0>8|4"/>
        </camera1>
        <camera2 index="0>8|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>        
    </cameras>
	
	<lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>13|0|0" decoration="0>13|0|1" lightTypes="0"/>
            <light realLight="0>13|0|8" decoration="0>13|0|7" lightTypes="2"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>13|0|0" decoration="0>13|0|1" lightTypes="0"/>
			<light realLight="0>13|0|3" 					  lightTypes="1"/>
			<light realLight="0>13|0|4" decoration="0>13|0|2" lightTypes="1"/>
			<light realLight="0>13|0|5" decoration="0>13|0|2" lightTypes="1"/>
			<light realLight="0>13|0|6" decoration="0>13|0|2" lightTypes="1"/>
			<light realLight="0>13|0|8" decoration="0>13|0|7" lightTypes="2"/>
		</high>
		
		<states>0 1 2</states>
	
	</lights>
    
	<beaconLights>
        <beaconLight index="0>18|0" speed="0.014" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
        <beaconLight index="0>18|1" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
    </beaconLights>
    <brakeLights>
        <brakeLight realLight="0>13|1|1" decoration="0>13|1|0"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft realLight="0>13|2|0|1" decoration="0>13|2|0|0"/>
        <turnLightRight realLight="0>13|2|1|1" decoration="0>13|2|1|0"/>
    </turnLights>
    <reverseLights>
        <reverseLight realLight="0>13|3|1" decoration="0>13|3|0"/>
    </reverseLights>

    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
    
	<enterReferenceNode index="0>"/>
    <exitPoint index="0>9"/>
    
	<cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.75" volume="0.6" />
	
	<attacherJoints>
        <attacherJoint index="0>19|24|9|0" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    
	<movingTools>
        
		<!-- fifth wheel -->
		<movingTool index="0>19|24|9" playSound="true">
            <controls axis="AXIS_CRANE_ARM4" invertAxis="false" mouseSpeedFactor="0.6" iconFilename="$dataS2/menu/moveControls/frontloader_tool.png" />
            <attacherJoint jointIndices="0" />
            <translation transSpeed="0.3" transAcceleration=".5" transMax="0" transMin="-1.2" translationAxis="3" />
        </movingTool>		
    </movingTools>
	
	<animations>
        <animation name="speedDisplay">
            <part node="0>20|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -185"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>20|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -250"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>20|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -86"/>
        </animation>
    </animations>
	
    <steering index="0>10|0" indoorRotation="270" outdoorRotation="37"/>
    <characterNode index="0>11|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100">
        <target ikChain="rightFoot" targetNode="0>11|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>11|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>10|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>10|0|1" setDirty="true"/>
    </characterNode>
    
	<ai>
        <trafficCollisionTrigger index="0>12"/>
    </ai>
    
	<motorStartDuration>2500</motorStartDuration>
    <motorStartSound file="$data/vehicles/steerable/americanTruck/usaEngine_start.wav"   pitchOffset="0.62"   volume="1.00"  indoorVolumeFactor="0.40"  indoorLowpassGain="0.95"/>
    <motorSound file="$data/vehicles/steerable/americanTruck/usaEngine_idle.wav"         pitchOffset="0.62"   volume="1.10"  indoorVolumeFactor="0.50"  indoorLowpassGain="0.95" pitchMax="1.15" pitchScale="0.04" />
    <motorStopSound file="$data/vehicles/steerable/man/manTGS18480_stop.wav"             pitchOffset="1.00"   volume="0.95 " indoorVolumeFactor="0.40"  indoorLowpassGain="0.95"/>
    <motorSoundRun file="$data/vehicles/steerable/man/manTGS18480_run.wav"               pitchOffset="0.55"   volume="0.70"  indoorVolumeFactor="0.65"  indoorLowpassGain="0.85" pitchMax="1.10" />
    <motorSoundLoad file="$data/vehicles/steerable/americanTruck/americanTruck_load.wav" pitchOffset="0.67"   volume="1.10"  indoorVolumeFactor="0.55"  indoorLowpassGain="0.95" pitchMax="1.60" minimalVolumeFactor="0.10"/>

    <gearboxSound file="$data/sounds/transmission/transmissionCVT_X.wav"  pitchOffset="0.65"  volume="0.15"  indoorVolumeFactor="0.47"  indoorLowpassGain="0.75" pitchMax="1.00"  volumeMax="0.52"    reverseVolumeMax="0.30"/>
    <retarderSound file="$data/sounds/transmission/retarderET2015.wav"    pitchOffset="0.48"  volume="0.10"  indoorVolumeFactor="0.80"  indoorLowpassGain="0.80" pitchMax="0.90"  volumeMax="0.50"    minSpeed="8" />

    <brakeCompressor capacity="10000" fillSpeed="200" />
    <maximalAirConsumptionPerFullStop value="4250" />
    <brakeCompressorStartSound file="$data/sounds/technicalAccessories/compressor_controller.wav" pitchOffset="1.75"  volume="1.00"   indoorVolumeFactor="0.50"   indoorLowpassGain="0.95" />
    <brakeCompressorRunSound file="$data/sounds/technicalAccessories/compressor_idle.wav"         pitchOffset="0.86"  volume="0.22"   indoorVolumeFactor="0.25"   indoorLowpassGain="0.95"    pitchMax="1.1"  />
    <brakeCompressorStopSound file="$data/sounds/technicalAccessories/brakeBig.wav"               pitchOffset="1.10"  volume="1.00"   indoorVolumeFactor="0.50"   indoorLowpassGain="0.95" />
    <compressedAirSound file="$data/sounds/technicalAccessories/brakeOld.wav"                     pitchOffset="0.60"  volume="0.70"   indoorVolumeFactor="0.90"   indoorLowpassGain="0.95" />
    <airReleaseValveSound file="$data/sounds/technicalAccessories/airValveSound.wav"              pitchOffset="1.50"  volume="0.75"   indoorVolumeFactor="0.80"   indoorLowpassGain="0.95"/>

    <attachSound file="$data/sounds/truck_attach.wav"                                             pitchOffset="1.00"  volume="1.00"   indoorVolumeFactor="0.25"   indoorLowpassGain="0.90"/>
    <hydraulicSound file="$data/sounds/hydraulicUp.wav"                                           pitchOffset="1.00"  volume="0.45"   indoorVolumeFactor="0.25"   indoorLowpassGain="0.90" />
    <honkSound file="$data/sounds/hornBig.wav"                                                    pitchOffset="0.90"  volume="1.65"   indoorVolumeFactor="0.25"   indoorLowpassGain="0.90"  radius="100" innerRadius="18.775" />
	<reverseDriveSound file="sound/reverse.wav" volume="1" />
    
	<washable dirtDuration="20" washDuration="1" workMultiplier="4"/>
    
	<exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>15|0" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.2" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
		<exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>15|1" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.4" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
		<exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>15|2" minRpmColor="0 0 0 0.05" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.08" maxRpmScale="0.6" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    
	</exhaustEffects>
    
	<components count="1">
        <component1 centerOfMass="0 0.6 -0.4" solverIterationCount="4"/>
    </components>
	
	<baseColorConfigurations useDefaultColors="true" price="1700" icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration color="1 1 1 1" />
        <colorNode node="0>19|21|4" />
		<colorNode node="0>19|21|8" />
		<colorNode node="0>19|22|0" />
		<colorNode node="0>19|22|7" />
		<colorNode node="0>19|22|17" />
		<colorNode node="0>19|22|15" />
		<colorNode node="0>19|22|28" />
		<colorNode node="0>19|22|29" />
		<colorNode node="0>19|22|22|0" />
		<colorNode node="0>19|22|23|0" />
		<colorNode node="0>19|22|24|0" />
		<colorNode node="0>19|22|25|0" />
		<colorNode node="0>19|22|26|0" />
		<colorNode node="0>19|22|27|0" />
		<colorNode node="0>19|22|30|1" />
		<colorNode node="0>19|22|31|1" />
		<colorNode node="0>19|22|32|1" />
		<colorNode node="0>19|23|0" />
		<colorNode node="0>19|23|3" />
		<colorNode node="0>19|24|4" />
	</baseColorConfigurations>
	
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
    
	<storeData>
        <name>
            <de>112Е</de>
            <en>112Е</en>
            <ru>112Е</ru>
		</name>
        <functions>
            <function>$l10n_function_scania</function>
        </functions>
        <specs>
            <power>510</power>
			<maxSpeed>85</maxSpeed>
        </specs>
        <image>store_scaniaR2_red.dds</image>
        <price>195000</price>
        <dailyUpkeep>535</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SCANIA</brand>
        <category>trucks</category>
    </storeData>
</vehicle>
