<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="Kehrmaschine">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved. & Bauhof Weber</annotation>
		
	<storeData>
        <name>Feuerwehr Kehrmaschine</name>
        <functions>
            <function>$l10n_function_roller</function>
        </functions>
        <specs>
            <power>35</power>
			<workingWidth>3.0</workingWidth>
        </specs>
        <image>Textures/Bauhofweber_FW.dds</image>
        <price>21000</price>
        <dailyUpkeep>0</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>Bauhof-Weber</category>
    </storeData>	
	
    <typeDesc>Kehrmaschine</typeDesc>
    <filename>Kehrmaschine_FW.i3d</filename>

	<numberplates interfacePath="FS17_numberPlatesSpecialization/textures/">
		<plate index="0>9" />
		<plate index="1>11" />
	</numberplates>	
	
    <size width="3" length="4"/>
	<speedLimit value="9" />
    <wheelConfigurations>
        <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
            <wheels autoRotateBackSpeed="1">
                <wheel rotSpeed="0" restLoad="0.2" repr="0>0" driveNode="0>0|0"  forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/280_55R16.xml" configIndex="car1" isLeft="true"  initialCompression="39" suspTravel="0.05"  spring="60" damper="2" frictionScale="3" hasTireTracks="false" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="0.2" repr="0>1" driveNode="0>1|0"  forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/280_55R16.xml" configIndex="car1" isLeft="false" initialCompression="39" suspTravel="0.05"  spring="60" damper="2" frictionScale="3" hasTireTracks="false" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="0.4" repr="1>0" driveNode="1>0|0"  forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/280_55R16.xml" configIndex="car1" isLeft="true"  initialCompression="34" suspTravel="0.05" spring="50" damper="2" frictionScale="3" hasTireTracks="false" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="0.4" repr="1>1" driveNode="1>1|0"  forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/280_55R16.xml" configIndex="car1" isLeft="false" initialCompression="34" suspTravel="0.05" spring="50" damper="2" frictionScale="3" hasTireTracks="false" hasParticles="true" />
            </wheels>
        </wheelConfiguration>
    </wheelConfigurations>
	 <articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="45" rotMax="33" rotMin="-33" >
    </articulatedAxis>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1"/>
        <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1"/>
        <!-- front-back -->
    </differentials>
	    
	<ackermannSteering rotSpeed="55" rotMax="15" rotCenter="0 0" />

	<motorConfigurations>
        <motorConfiguration name="$l10n_man_standardMotor" price="0" maxSpeed="25">
			<motor torqueScale="0.598" minRpm="10" maxRpm="1860" maxForwardSpeed="25" maxBackwardSpeed="10" brakeForce="0.6" lowBrakeForceScale="0.3" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.7" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
				<torque normRpm="0.45" torque="0.9"/>
				<torque normRpm="0.5" torque="0.97"/>
				<torque normRpm="0.59" torque="1"/>
				<torque normRpm="0.72" torque="1"/>
				<torque normRpm="0.86" torque="0.88"/>
				<torque normRpm="1" torque="0.72"/>
			</motor>
		</motorConfiguration>
	</motorConfigurations>    
	
    <fuelCapacity>90</fuelCapacity>
	
    <cameras count="2">
        <camera1 index="1>2|0|0" rotatable="true" rotateNode="1>2|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3" transMax="25">
            <raycastNode index="1>2|2"/>
            <raycastNode index="1>2|3"/>
        </camera1>
        <camera2 index="1>2|1" rotatable="true" limit="true" rotMinX="-1.25" rotMaxX="1.25" transMin="0" transMax="0" isInside="true"/>
    </cameras>
	
	 <beaconLights>
        <beaconLight index="1>3|0|0" speed="0.015" filename="Sonnstiges/Beacon_Blau/Beacon_Blau.i3d" />
    </beaconLights>
    <lights>
        <low>
            <light realLight="1>3|1|1"    decoration="1>3|1|0"   lightTypes="0 1"/>
			<light realLight="0>4|1"      decoration="0>4|0"     lightTypes="0 1"/>
			<light realLight="0>10|3|0|4" decoration="0>10|3|0"  lightTypes="0 1"/>
			<light realLight="1>3|4|1"    decoration="1>3|4|0"   lightTypes="0 1"/>
        </low>
        <high>
             <light realLight="1>3|1|1"    decoration="1>3|1|0"   lightTypes="0 1"/>
			 <light realLight="0>4|1"      decoration="0>4|0"     lightTypes="0 1"/>
			 <light realLight="0>10|3|0|4" decoration="0>10|3|0"  lightTypes="0 1"/>
			 <light realLight="1>3|1|1|1"  decoration="1>3|1|0|5" lightTypes="0 1"/>
			 <light realLight="1>3|1|1|2"  decoration="1>3|1|0|6" lightTypes="0 1"/>
			 <light realLight="1>3|4|1"    decoration="1>3|4|0"   lightTypes="0 1"/>
        </high>
        <states>
            <state lightTypes="0"/>
			<state lightTypes="0 1"/>
        </states>
    </lights>
	
	<brakeLights>
        <brakeLight realLight="0>2|1" decoration="0>2|0" />
        <brakeLight realLight="0>10|0|0|2" decoration="0>10|0|0" />
    </brakeLights>

    <turnLights>
        <turnLightLeft  realLight="0>7|0|1"    decoration="0>7|0|0" />
		<turnLightLeft  realLight="1>3|2|0|1"  decoration="1>3|2|0|0" />
		<turnLightLeft  realLight="0>10|1|0|2" decoration="0>10|1|0" />
		<turnLightLeft  realLight="1>3|3|0|2"  decoration="1>3|3|0" />
        <turnLightRight realLight="0>7|1|1"    decoration="0>7|1|0" />
		<turnLightRight realLight="1>3|2|1|1"  decoration="1>3|2|1|0" />
		<turnLightRight realLight="0>10|1|1|2" decoration="0>10|1|1" />
		<turnLightRight realLight="1>3|3|1|2"  decoration="1>3|3|1" />
    </turnLights>
	
	<LightAddon>
	    <strobe decoration="1>3|0|1|1|0|0"		realLight="1>3|0|1|1|0|1" 	isBeacon="true" sequence="50 50 150 50" 	invert="true"/>
		<strobe decoration="0>11|5|1"			realLight="0>11|5|2" 		isBeacon="true" sequence="-100 500 -100 -100 50 25" 	invert="false"/>
		<strobe decoration="0>11|4|1"			realLight="0>11|4|2" 		isBeacon="true" sequence="25 50 -100 -100 500 -100" 	invert="true"/>
		<strobe decoration="0>11|3|1"			realLight="0>11|3|2" 		isBeacon="true" sequence="25 50 -100 -100 500 -100" 	invert="true"/>
		<strobe decoration="0>11|2|1"			realLight="0>11|2|2" 		isBeacon="true" sequence="25 50 -100 -100 500 -100" 	invert="true"/>
		<strobe decoration="0>11|0|1"			realLight="0>11|0|2" 		isBeacon="true" sequence="-100 500 -100 -100 50 25" 	invert="false"/>
		<strobe decoration="0>11|1|1"			realLight="0>11|1|2" 		isBeacon="true" sequence="25 50 -100 -100 500 -100" 	invert="true"/>
    </LightAddon>
	
	<reverseLights>
        <reverseLight realLight="0>3|1" decoration="0>3|0" />
        <reverseLight realLight="0>10|2|2" decoration="0>10|2" />
    </reverseLights>
	
	<steering index="1>5|0" indoorRotation="360" outdoorRotation="70" />
	
    <enterReferenceNode index="1>"/>
	
    <exitPoint index="1>4"/>
	
    <mowerStartSound file="Sounds\Kehrmaschine_mowerstart.wav" pitchOffset="1"/>
    <cylinderedHydraulicSound file="Sounds\hydraulicUp.wav"  pitchOffset="0.8" volume="0.5" indoorVolumeFactor="0.75" />
    <motorStartSound file="Sounds\Kehrmaschine_start.wav" pitchOffset="0.9"/>
    <motorSound file="Sounds\Kehrmaschine_idle.wav" pitchOffset="0.9" pitchScale="0.02" pitchMax="1.3" radius="35" innerRadius="25"/>
    <motorSoundRun file="Sounds\Kehrmaschine_run.wav" pitchOffset="0.25" pitchScale="0.045" pitchMax="1.05" volume="1"/>
    <motorStopSound file="Sounds\Kehrmaschine_stop.wav" pitchOffset="0.95"/>
    <honkSound file="Sounds\horn.wav" volume="1" innerRadius="35" radius="80"/>
	
	<attacherJoints>
		<attacherJoint index="1>12" jointType="telehandler" rootNode="0>" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
    </attacherJoints>

	<exhaustEffects>
        <exhaustEffect index="0>8" 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.05" maxRpmScale="0.5" xzRotationsOffset="40 0" xzRotationsForward="-20 0" xzRotationsBackward="100 0" xzRotationsLeft="0 -100" xzRotationsRight="0 100" />
    </exhaustEffects>
	
	<characterNode index="1>6|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation="180 0 100" >
        <target ikChain="rightFoot" targetNode="1>6|2" />
        <target ikChain="leftFoot"  targetNode="1>6|1" />
        <target ikChain="rightArm"  targetNode="1>5|0|1" setDirty="true"/>
        <target ikChain="leftArm"   targetNode="1>5|0|0" setDirty="true" />
    </characterNode>
	
	<workAreas>
        <workArea startIndex="1>9|0|0|0|2|1|0" widthIndex="1>9|0|0|0|2|1|1" heightIndex="1>9|0|0|0|2|1|2" refNodeIndex="0" type="roller" disableBackwards="false"/>
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="1>9|0|0|0|2|0" threshold="0.3" chargeValue="1" />
    </groundReferenceNodes>
	 
	<turnOnVehicle>
        <turnedAnimation name="turnOn" turnOnSpeedScale="1" turnOffSpeedScale="-1" />
        <startSound         file="$data/sounds/strawBlower_start.wav" pitchOffset="1" volume3D="0.65" innerRadius="10" radius="40" />
        <turnedOnSound      file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1" volume3D="0.65" innerRadius="10" radius="40" />
        <turnedOnStopSound  file="$data/sounds/strawBlower_stop.wav" pitchOffset="1" volume3D="0.65" innerRadius="10" radius="40" />
    </turnOnVehicle>
	
	<turnedOnRotationNodes>
        <turnedOnRotationNode index="1>9|0|0|0|0|0" rotAxis="2" type="turnOn" rotSpeed="1200" turnOnFadeTime="5" turnOffFadeTime="3" />
		<turnedOnRotationNode index="1>9|0|0|0|1|0" rotAxis="2" type="turnOn" rotSpeed="1200" turnOnFadeTime="5" turnOffFadeTime="3" />
    </turnedOnRotationNodes>
	
	 <foldingParts startMoveDirection="1" turnOnFoldMaxLimit="0.1" turnOnFoldMinLimit="0" turnOffOnFold="true" >
        <foldingPart animationName="folding" speedScale="0.7" />
    </foldingParts>
	
	<animations>
		<animation name="folding">
            <part node="1>9|0|0|0"       	startTime="0" 		endTime="1" 	startTrans="0 0 0.5"      endTrans="0 0 0.19" />
			<part node="1>9|0|0"     		startTime="1"   	endTime="2"   	startRot="0 0 0" 		endRot="-18 0 0"/>
        </animation>
        <animation name="turnOn">
            <part node="1>10" startTime="0" endTime="1" startTrans="0 -0.5 2.25" endTrans="0 0 2.25" />
        </animation>
    </animations>
	
	<movingTools>
		<!---Kransäule-->
		<movingTool index="1>9|0|0" playSound="true">
			<controls l10nName="label_crane" axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="1.4" iconFilename="$dataS2/menu/moveControls/crane_arm1_rotY.png"/>
			<rotation rotSpeed="28" rotAcceleration="170" rotMax="10" rotMin="-18" rotationAxis="1"  />
				</movingTool>
	</movingTools>
    <ai>
        <trafficCollisionTrigger index="1>7"/>
    </ai>
	
	<designConfigurations>
        <designConfiguration name="Standart Rundumleuchte" price="0" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="1>3|0|0" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="LED Rundumleuchte" price="150" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="1>3|0|1" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>
	
	<lightsConfigurations>
        <lightsConfiguration name="Standard Scheinwerfer" price="0">
            <objectChange node="0>10"     visibilityActive="true"  visibilityInactive="false"/>
            <objectChange node="0>2"      visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="0>4"      visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="0>7"      visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="1>3|1"    visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="1>3|2"    visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="1>3|3"    visibilityActive="true"  visibilityInactive="false"/>
			<objectChange node="1>3|4"    visibilityActive="true"  visibilityInactive="false"/>
			<objectChange node="0>11"     visibilityActive="false" visibilityInactive="true"/>
        </lightsConfiguration>
		
        <lightsConfiguration name="LED Scheinwerfer" price="1500">
		    <objectChange node="0>10"     visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="0>2"      visibilityActive="true"  visibilityInactive="false"/>
            <objectChange node="0>4"      visibilityActive="true"  visibilityInactive="false"/>
            <objectChange node="0>7"      visibilityActive="true"  visibilityInactive="false"/>
            <objectChange node="1>3|1"    visibilityActive="true"  visibilityInactive="false"/>
            <objectChange node="1>3|2"    visibilityActive="true"  visibilityInactive="false"/>
			<objectChange node="1>3|3"    visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="1>3|4"    visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="0>11"     visibilityActive="true"  visibilityInactive="false"/>
        </lightsConfiguration>
    </lightsConfigurations>
	
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
	
    <components count="2">
        <component1 centerOfMass="0 0.06 0" solverIterationCount="20" />
        <component2 centerOfMass="0 0.06 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>6" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>
	
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
    
</vehicle>
