<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fendt724vario">
	<annotation>Copyright (C) (CC BY-NC-ND 3.0) GIANTS Software GmbH & SamN, All Rights Reserved.</annotation>
    <name>
        <en>Fendt 724 Vario by SamN</en>
        <de>Fendt 724 Vario by SamN</de>
    </name>

    <description>Fendt 724 Vario</description>
    <filename>fendt724vario.i3d</filename>

    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="65" rotMax="35" rotMin="-35" driveMode="2" repr="0" driveNode="0|0" radius="0.83" deltaY="0.1" suspTravel="0.1" spring="180" damper="0" mass="0.55" />
        <wheel rotSpeed="65" rotMax="35" rotMin="-35" driveMode="2" repr="1" driveNode="1|0" radius="0.83" deltaY="0.1" suspTravel="0.1" spring="180" damper="0" mass="0.55" />
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="1" deltaY="0.1" suspTravel="0.1" spring="180" damper="0" mass="0.75" />
        <wheel rotSpeed="0" driveMode="1" repr="3" radius="1" deltaY="0.1" suspTravel="0.1" spring="180" damper="0" mass="0.75" />
    </wheels>

    <motor minRpm="300" maxRpm="500 900 2400 400" brakeForce="20" forwardGearRatio="2.5" backwardGearRatio="2.1" differentialRatio="3.6" rpmFadeOutRange="50">
        <torque rpm="500" torque="10.4"/>
        <torque rpm="900" torque="13.1"/>
        <torque rpm="1200" torque="17"/>
        <torque rpm="1750" torque="18"/>
        <torque rpm="2400" torque="22"/>
    </motor>

    <accelerationSpeed maxAcceleration="0.3" deceleration="0.5" />
    <fuelCapacity>400</fuelCapacity>
    <fuelUsage>0.004</fuelUsage>
    <downForce>20</downForce>

    <cab rotNode="0>9" springStiffness="2"/>
	
    <cameras count="3">
        <camera1 index="10|0|0" rotatable="true" rotateNode="10|0" limit="true" rotMinX="-1.4" rotMaxX="1.5" transMin="3" transMax="40" />
        <camera2 index="9|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
	<camera3 index="10|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

    <steering index="9|2|0" rotationSpeed="8"/>

    <passengers count="1">
	<passenger1 index="0>9|6" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" nicknameRenderNode="0>11|6" characterNode="0>9|12"/>
    </passengers>

    <steering index="9|2" rotationSpeed="6"/>
    <enterReferenceNode index="0>" />
    <exitPoint index="11|3" />
    <size width="3.5" length="5.5" lengthOffset="-0.4"/>
    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="11|0" widthIndex="11|1" heightIndex="11|2" losing="true"/-->
    </cuttingAreas>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="13|0" shaft="0>11|5" />
        <trailerAttacherJoint index="13|1" low="true" shaft="0>11|5" />
        <trailerAttacherJoint index="13|2" shaft="0>11|7" />
    </trailerAttacherJoints>

    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="sounds/start.wav" pitchOffset="1" volume="1" />
    <motorSound file="sounds/idle.wav" pitchOffset="1" pitchScale="0.01" pitchMax="1.65" volume="1" />
    <motorSoundRun file="sounds/run.wav" pitchOffset="1" pitchScale="0.01" pitchMax="1.8" volume="1" />
    <motorStopSound file="sounds/stop.wav" pitchOffset="1" />
    <aiMotorSound  file="sounds/run2.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1" />
    <honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" volume="1" radius="50" innerRadius="20" />

    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>11|4" file="$data/vehicles/particleSystems/exhaustParticleSystemBig.i3d" />
    </exhaustParticleSystems>

    <attacherJoints>
        <attacherJoint index="14|0|0" rotationNode="14" maxRot="-14 0 0" rotationNode2="14|0" maxRot2="9 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5" shaft="0>11|5">
            <bottomArm rotationNode="15" translationNode="15|0" referenceNode="15|0|0" zScale="-1" />
            <topArm rotationNode="16" translationNode="16|0" referenceNode="16|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="17|0|0" rotationNode="17" maxRot="10 0 0" rotationNode2="17|0" maxRot2="-7 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="1.5" shaft="0>11|7">
            <bottomArm rotationNode="18" translationNode="18|0" referenceNode="18|0|0" zScale="1" />
            <topArm rotationNode="19" translationNode="19|0" referenceNode="19|0|0" zScale="1" />
        </attacherJoint>
    </attacherJoints>

    <characterNode index="9|5" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="12|0" />

	<controlPanels count="2" >
		<controlPanel1 index="0>9|7|1|0" />
		<controlPanel2 index="0>9|7|1|1" />
	</controlPanels>

	<interactiveComponents>
		<windows count="3">
			<window1 name="backWindow"  mark="0>9|3|1|0|0" size="0.1" index="0>9|3|1|0" speedScale="1" clip="backwindowClipsource" />
			<window2 name="leftDoor"    mark="0>9|3|0|0|0" size="0.1" index="0>9|3|0|0" speedScale="1" clip="leftDoorClipsource" />
			<window3 name="frontLinks"    mark="0>9|7|0" size="0.1" index="0>18|1|0" speedScale="1" clip="frontLinksClipsource" />
		</windows>
		<buttons count="7">
			<button1 name="frontwork" mark="0>9|7|2" size="0.02" event="toggleFrontWorklights"/>
			<button2 name="rearwork" mark="0>9|7|3" size="0.02" event="toggleBackWorklights"/>
			<button3 name="frontLights" mark="0>9|7|4" size="0.02" event="toggleFrontlights"/>
			<button4 name="BEL3RIGHT" mark="0>9|7|5" size="0.02" event="toggleRightIndicator"/>
			<button5 name="BEL3LEFT" mark="0>9|7|6" size="0.02" event="toggleLeftIndicator"/>
			<button6 name="beaconLights" mark="0>9|7|7" size="0.02" event="toggleBeaconLights"/>
			<button7 name="BEL3WARN" mark="0>9|7|8" size="0.02" event="toggleWarningLights"/>
		</buttons>
	</interactiveComponents>

        <lights count="1">
            <light1 index="7|0|0" />
        </lights>

	<lightCoronas>
		<lightCorona index="0>7|0|2" />
		<lightCorona index="0>9|4|7|1" />
	</lightCoronas>


	<lightsaddon lightsStayOn="true" blinkSpeed="0.35">
		<light type="highbeam" index="0>7|1|0" real="0>7|1|2" beam="0>7|1|1" />
		<light type="highbeam" index="0>9|4|9|1" />
		<light type="work" index="0>9|4|8|2" real="0>9|4|8|0" beam="0>9|4|8|1" inputName="frontwork" stayOn="true"/>
		<light type="work" index="0>7|2|1" inputName="frontwork" stayOn="true"/>
		<light type="work" index="0>9|4|6|2" real="0>9|4|6|0" beam="0>9|4|6|1" inputName="rearwork" stayOn="true"/>
		<light type="dirLeft" index="0>9|4|1" />
		<light type="dirRight" index="0>9|4|0" />
		<light type="reverse" index="0>9|4|4" />
		<light type="brake" index="0>9|4|5" />
		<flashers soundfile="sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.4" autoreturn="true" tolerance="0.9"/>
	</lightsaddon>

    <beaconLights>
		<beaconLight index="9|4|2" speed="0.019" />
		<beaconLight index="9|4|3" speed="0.02" />
		<beaconLight index="9|4|10" speed="0" />
    </beaconLights>

    
    <components count="1">
        <component1 centerOfMass="0 -0.0025 0.8" solverIterationCount="10" />
    </components>

</vehicle>
