<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Atego">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <typeDesc>Atego GBA</typeDesc>
    
	<storeData>
        <name>Mercedes OSP Piecki</name>
        <rotation>0</rotation>
        <image>store.dds</image>
        <price>85775</price>
        <dailyUpkeep>125</dailyUpkeep>
        <lifetime>600</lifetime>
		<brand>MERCEDESBENZ</brand>
        <category>misc</category>
        <specs>
            <power>440</power>
 		</specs>
		<functions>
             <function>Samochód straży pożarnej.</function>
		</functions>
	</storeData>
	
	<filename>AtegoGBA.i3d</filename>

    <size width="3.5" length="7"/>

    <wheels autoRotateBackSpeed="1.8">
        <wheel rotSpeed="1" restLoad="08.8" repr="0>0" forcePointRatio="0.2" driveNode="0>0" radius="0.545" width="0.42" initialCompression="50" suspTravel="0.2" spring="30" damper="20"                       maxLatStiffness="40" maxLatStiffnessLoad="3" mass="0.4" hasTireTracks="true" tireTrackAtlasIndex="4" hasParticles="true" tireType="street" />
        <wheel rotSpeed="1" restLoad="08.8" repr="0>1" forcePointRatio="0.2" driveNode="0>1" radius="0.545" width="0.42" initialCompression="50" suspTravel="0.2" spring="30" damper="20"                       maxLatStiffness="40" maxLatStiffnessLoad="3" mass="0.4" hasTireTracks="true" tireTrackAtlasIndex="4" hasParticles="true" tireType="street" />
        <wheel rotSpeed="0" restLoad="16.0" repr="0>2" forcePointRatio="0.3"                 radius="0.545" width="0.84" initialCompression="50" suspTravel="0.1" spring="85" damper="65" maxLongStiffness="20" maxLatStiffness="60" maxLatStiffnessLoad="3" mass="0.8" hasTireTracks="true" tireTrackAtlasIndex="4" hasParticles="true" tireType="street" />
        <wheel rotSpeed="0" restLoad="16.0" repr="0>3" forcePointRatio="0.3"                 radius="0.545" width="0.84" initialCompression="50" suspTravel="0.1" spring="85" damper="65" maxLongStiffness="20" maxLatStiffness="60" maxLatStiffnessLoad="3" mass="0.8" hasTireTracks="true" tireTrackAtlasIndex="4" hasParticles="true" tireType="street" />
    </wheels>

    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="2" rotCenterWheel2="3" />

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <!--motor torqueScale="1.949" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="10" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="13.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130"-->
    <motor torqueScale="2.349" minRpm="1000" maxRpm="3175" maxBackwardSpeed="15" brakeForce="10" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="13.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <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.8"/>
        <torque normRpm="1" torque="0.7"/>
    </motor>

    <fuelCapacity>1210</fuelCapacity>
    <fuelUsage>88</fuelUsage>

    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="35">
            <raycastNode index="0>6"/>
            <raycastNode index="0>7"/>
            <raycastNode index="0>8"/>
        </camera1>
        <camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>
    
	<lights>
        <low>
            <light realLight="0>15|1" decoration="0>15|0" lightTypes="0 2"/>
			<light realLight="0>15|2"                     lightTypes="0 2"/>
			<light realLight="0>30|1" decoration="0>30|0" lightTypes="1"/>
		</low>
        <high>
            <light realLight="0>15|1" decoration="0>15|0" lightTypes="0 2"/>
			<light realLight="0>15|2"                     lightTypes="0 2"/>
			<light realLight="0>30|1" decoration="0>30|0" lightTypes="1"/>
		</high>
    </lights>
	
	<brakeLights>
        <brakeLight realLight="0>15|2" decoration="0>16" />
    </brakeLights>

	<beaconLights>
        <beaconLight index="0>32|1" speed="0.012" filename="koguciki/beaconLight03.i3d"/>
		<beaconLight index="0>32|2" speed="0.012" filename="koguciki/beaconLight03.i3d"/>
		<beaconLight index="0>32|3" speed="0.012" filename="koguciki/beaconLight03.i3d"/>
    </beaconLights>
	
    <turnLights>
        <turnLightLeft  realLight="0>17|2" decoration="0>17|0" />
        <turnLightRight realLight="0>17|3" decoration="0>17|1" />
    </turnLights>

    <reverseLights>
        <reverseLight realLight="0>19|1" decoration="0>19|0" />
		<reverseLight realLight="0>17|2" decoration="0>17|0" />
        <reverseLight realLight="0>17|3" decoration="0>17|1" />
    </reverseLights>
	
	<LightAddon drlAllwaysOn="true">
        <strobe decoration="0>24|0" realLight="0>24|8" isBeacon="false" name="BL" sequence="100 20 100" invert="false"/>
		<strobe decoration="0>24|1" realLight="0>24|7" isBeacon="false" name="BL" sequence="20 100 20" invert="false"/>
        <strobe decoration="0>24|2"                    isBeacon="false" name="BL" sequence="20 100 20" invert="false"/>
        <strobe decoration="0>24|3"                    isBeacon="false" name="BL" sequence="100 20 100" invert="false"/>
		<strobe decoration="0>24|4" realLight="0>24|9" isBeacon="false" name="BL" sequence="100 20 100" invert="false"/>
		<strobe decoration="0>24|5" realLight="0>24|10" isBeacon="false" name="BL" sequence="20 100 20" invert="false"/>
        <strobe decoration="0>24|6" realLight="0>24|11" isBeacon="false" name="BL" sequence="100 50 100" invert="false"/>
    </LightAddon>
    
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>9"/>

    <steering index="0>10|0" indoorRotation="360" outdoorRotation="37" />

    <characterNode index="0>12|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" rightArmIKChainId="rightArm" spineRotation="180 0 100" >
        <ikChains>
            <ikChain id="rightFoot" target="0>12|1" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true" >
                <node index="0|1" />
                <node index="0|1|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|1|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|1|0|0|0" />
            </ikChain>
            <ikChain id="leftFoot" target="0>12|2" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|2"     />
                <node index="0|2|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|2|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|2|0|0|0" />
            </ikChain>
            <ikChain id="rightArm" target="0>10|0|0" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|1" />
                <node index="0|0|0|1|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|1|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|1|0|0|0" />
                <rotationNode index="0|0|0|1|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
            <ikChain id="leftArm" target="0>10|0|1" targetOffset="-0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|2" />
                <node index="0|0|0|2|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|2|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|2|0|0|0" />
                <rotationNode index="0|0|0|2|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|2|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
        </ikChains>
    </characterNode>
    
	<attacherJoints>
        <attacherJoint index="0>31|0" jointType="trailerLow" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false">
		   <schema position="1 0" rotation="0" invertX="false" />
		</attacherJoint>   
		<attacherJoint index="0>31|0" jointType="trailer" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false" >
		   <schema position="1 0" rotation="0" invertX="false" />
		</attacherJoint>   
    </attacherJoints>
	
	<motorStartDuration>2500</motorStartDuration>
    <motorStartSound file="$data/vehicles/steerable/man/manTGS18480_start.wav" pitchOffset="1.00"  volume="1.10"  indoorVolumeFactor="0.56"  indoorLowpassGain="0.95"/>
    <motorSound file="$data/vehicles/steerable/man/manTGS18480_idle.wav"       pitchOffset="1.00"  volume="1.10"  indoorVolumeFactor="0.56"  indoorLowpassGain="0.95" pitchMax="1.55" volumeMin="0.42" volumeMinSpeed="20" />
    <motorStopSound file="$data/vehicles/steerable/man/manTGS18480_stop.wav"   pitchOffset="1.00"  volume="1.10 " indoorVolumeFactor="0.56"  indoorLowpassGain="0.95"/>

    <motorSoundRun file="$data/vehicles/steerable/man/manTGS18480_run.wav"     pitchOffset="0.70"  volume="0.72"  indoorVolumeFactor="0.51"  indoorLowpassGain="0.85" pitchMax="1.15" />
    <motorSoundLoad file="$data/sounds/engine/loadHP150.wav"                   pitchOffset="0.58"  volume="1.20"  indoorVolumeFactor="0.46"  indoorLowpassGain="0.95" pitchMax="1.22" minimalVolumeFactor="0.20"/>

    <gearboxSound file="$data/sounds/transmission/transmissionFS15.wav"        pitchOffset="0.60"  volume="0.30"  indoorVolumeFactor="0.65"  indoorLowpassGain="0.75" pitchMax="0.90"  volumeMax="0.70" reverseVolumeMax="0.20"/>
    <retarderSound file="$data/sounds/transmission/transmissionCVT_X.wav"      pitchOffset="0.58"  volume="0.22"  indoorVolumeFactor="0.65"  indoorLowpassGain="0.80" pitchMax="1.75"  volumeMax="0.37"    minSpeed="3.0" />
    <reverseDriveSound file="$data/sounds/reverseDrivingBeep.wav"   pitchOffset="0.95" volume="1.40" indoorVolumeFactor="0.55" indoorLowpassGain="0.75"/>

    <brakeCompressor capacity="10000" fillSpeed="950" />
    <maximalAirConsumptionPerFullStop value="3400" />
    <brakeCompressorStartSound file="$data/sounds/technicalAccessories/compressor_controller.wav" pitchOffset="1.00" volume="0.65" indoorVolumeFactor="0.60" indoorLowpassGain="0.95" />
    <brakeCompressorRunSound file="$data/sounds/technicalAccessories/compressor_idle.wav"         pitchOffset="0.86" volume="0.18" indoorVolumeFactor="0.20" indoorLowpassGain="0.95"    pitchMax="1.1"  />
    <brakeCompressorStopSound file="$data/sounds/technicalAccessories/pressure_regulator.wav"     pitchOffset="1.00" volume="0.75" indoorVolumeFactor="0.46" indoorLowpassGain="0.95" />
    <compressedAirSound file="$data/sounds/technicalAccessories/brakeSmall.wav"                   pitchOffset="1.00" volume="0.75" indoorVolumeFactor="0.30" indoorLowpassGain="0.95" />
    <airReleaseValveSound        file="$data/sounds/technicalAccessories/regulator_valve.wav"     pitchOffset="0.96" volume="1.05" indoorVolumeFactor="0.50" indoorLowpassGain="0.95"/>

    <attachSound file="$data/sounds/truck_attach.wav"                                             pitchOffset="1.10"  volume="1.00"   indoorVolumeFactor="0.30"   indoorLowpassGain="0.90"/>
    <hydraulicSound file="$data/sounds/hydraulicUp.wav"                                           pitchOffset="1.00"  volume="0.45"   indoorVolumeFactor="0.55"   indoorLowpassGain="0.90" />
    <honkSound file="$data/sounds/hornBig.wav"                                                    pitchOffset="0.94"  volume="1.55"   indoorVolumeFactor="0.25"   indoorLowpassGain="0.90"  radius="100" innerRadius="18.775" />


    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0.65 0" solverIterationCount="10" />
    </components>
    
	<i3dAnims>		
			<anim rootnode="0>22" clipname="Horn_P" inputBinding="Horn" helptext="Horn" helpTextOn="Horn Ein" helpTextOff="Horn Aus" speed="1" inside="true" outside="false" maxDist="1.8"/>		
	</i3dAnims>
	
	<schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0" />

	
</vehicle>
