<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="R651FL">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Renault 651</en>
    </name>
    <description></description>
    <filename>R651.i3d</filename>
    <wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="50" rotMax="40" rotMin="-40" driveMode="2" repr="0" driveNode="0|0" radius="0.475" deltaY="0.15" suspTravel="0.2" spring="60" damper="20" mass="0.13" lateralStiffness="20" />
        <wheel rotSpeed="50" rotMax="40" rotMin="-40" driveMode="2" repr="1" driveNode="1|0" radius="0.475" deltaY="0.15" suspTravel="0.2" spring="60" damper="20" mass="0.13" lateralStiffness="20" />
        <wheel rotSpeed="0" driveMode="1" repr="2" radius="0.8" deltaY="0.18" suspTravel="0.2" spring="60" damper="20" mass="0.2" lateralStiffness="20" />
        <wheel rotSpeed="0" driveMode="1" repr="3" radius="0.8" deltaY="0.18" suspTravel="0.2" spring="60" damper="20" mass="0.2" lateralStiffness="20" />
    </wheels>
	
    <motor minRpm="200" maxRpm="300 700 1300 360" brakeForce="6" forwardGearRatio="2.5" backwardGearRatio="2.0" differentialRatio="4.0" rpmFadeOutRange="20">
        <torque rpm="300" torque="2.5"/>
        <torque rpm="800" torque="4.5"/>
        <torque rpm="900" torque="6"/>
        <torque rpm="1000" torque="9"/>
        <torque rpm="1300" torque="9"/>
    </motor>
	<accelerationSpeed maxAcceleration="0.3" deceleration="0.5" />
	
    <fuelCapacity>65</fuelCapacity>
    <fuelUsage>0.025</fuelUsage>
    <downForce>7</downForce>
    <cameras count="2">
        <camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="30" >
			<raycastNode index="0>19"/>
			<raycastNode index="0>20"/>
		</camera1>
        <camera2 index="0>4|2" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

    <tipCamera index="4|1" />

    <size width="3.5" length="5.5" lengthOffset="-0.4"/>

    <exitPoint index="7" />
    <steering index="8|0" rotationSpeed="6"/>

    <enterReferenceNode index="0>" />

    <cuttingAreas count="0">
        <!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->
    </cuttingAreas>

    <trailerAttacherJoints>
        <trailerAttacherJoint index="13" />
        <trailerAttacherJoint index="14" low="true" />
    </trailerAttacherJoints>

    <!-- Sounds -->
    <attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <motorStartSound file="Model/Sounds/Ares_Ext_Start.wav" pitchOffset="1" />
    <motorSound file="Model/Sounds/Ares_Ext_Idle.wav" pitchOffset="1" pitchScale="0.0125" pitchMax="1.4"/>
    <motorSoundRun file="Model/Sounds/Ares_Ext_1600.wav" pitchOffset="0.75" pitchScale="0.01" pitchMax="1.05" volume="0.9" />
    <motorStopSound file="Model/Sounds/Ares_Ext_Stop.wav" pitchOffset="1" />
    <aiMotorSound  file="Model/Sounds/Ares_Ext_Idle_AI.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1.0" />   

	<dynamicExhaustingSystem cap="16" maxRot="-81.5" minAlpha="0.1" maxAlpha="1.0" param="exhaustingSystem" >
		<startSequence>
			<key time="0.0"  value="0 0 0 0"/>
			<key time="0.4"  value="0 0 0 0.5"/>
			<key time="0.58" value="0 0 0 0.2"/>
			<key time="0.6"  value="0 0 0 0.2"/>
			<key time="0.75" value="0 0 0 1"/>
			<key time="0.93" value="0 0 0 1"/>
			<key time="1.0"  value="0 0 0 0.2"/>
		</startSequence>
	</dynamicExhaustingSystem>
	
	<exhaustParticleSystems count="1">
		<exhaustParticleSystem1 node="16" position="0 0 0" rotation="0 0 0"  file="Abgas/KirovetsK700A_ExhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

	<honkSound file="$dataS2/sounds/horn.wav" client="$dataS2/sounds/horn3D.wav" volume="1" radius="80" innerRadius="35" />
	
    <attacherJoints>
        <attacherJoint index="10|0|0" rotationNode="10" maxRot="-12 0 0" rotationNode2="10|0" maxRot2="8 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5">
            <bottomArm rotationNode="11" translationNode="11|0" referenceNode="11|0|0" zScale="-1" />
            <topArm rotationNode="12" translationNode="12|0" referenceNode="12|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="31|0|0" rotationNode="31" maxRot="10 0 0" rotationNode2="31|0" maxRot2="-10 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="1.5">
            <bottomArm rotationNode="32" translationNode="32|0" referenceNode="32|0|0" zScale="1" />
            <topArm rotationNode="33" translationNode="33|0" referenceNode="33|0|0" zScale="1" />
        </attacherJoint>
		<!-- frontloader -->
        <attacherJoint jointType="frontloader" index="26|1|0" allowsJointLimitMovement="false" allowsLowering="false" />
    </attacherJoints>


    <characterNode index="9" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="15" />
    <components count="1">
        <component1 centerOfMass="0 0 -0.15" solverIterationCount="10" />
    </components>



<bunkerSiloCompacter compactingScale="1" refNode="0>"/>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_arm1.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
        <mouseControl iconFilename="$dataS2/menu/mouseControlsHelp/dafs_tool.png" mouseButton="LEFT" mouseAxis="X" axis="AXIS_FRONTLOADER_TOOL" />
    </mouseControls>

    <movingTools>
        <movingTool index="26" attacherJointIndices="2" componentJointIndex="0" anchorActor="0" rotSpeed="20" rotAcceleration="80" rotMax="5" rotMin="-80" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="true" speedFactor="0.3">
            <dependentPart index="0>26|3" />
        </movingTool>
        <movingTool index="26|1" attacherJointIndices="2" anchorActor="0" rotSpeed="35" rotAcceleration="300" rotMax="125" rotMin="-25" axis="AXIS_FRONTLOADER_TOOL" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="0.3">
            <dependentPart index="0>26|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- arm cylinder -->
        <movingPart index="0>26|3" referencePoint="0>30|2" referenceFrame="0>" invertZ="true" >
            <translatingPart index="0>26|3|0" />
        </movingPart>


        <!-- main hinge -->
        <movingPart index="0>26|0" referencePoint="0>26|1|1" localReferencePoint="0>26|0|0" referenceFrame="0>26|1|1">
            <dependentPart index="0>26|0|0" />
            <dependentPart index="0>26|2" />
        </movingPart>
        <!-- front top hinge -->
        <movingPart index="0>26|0|0" referencePoint="0>26|1|1" referenceFrame="0>26|1">
        </movingPart>

        <!-- tool cylinder -->
        <movingPart index="0>26|2" referencePoint="0>26|0|0" referenceFrame="0>26">
            <translatingPart index="0>26|2|0" />
        </movingPart>
    </movingParts>
	
		     	<beaconLights>
		<beaconLight index="0>25|16|2" speed="0.016" />
	</beaconLights>
	
			<lights count="1">
         <light1 index="0>27|0" />
         </lights>
		 
		 	 		<lightsaddon lightsStayOn="true">
<light type="work" index="0>27|2" real="32|1|2" beam="32|1|1" inputName="frontlights" helptext="frontlights" stayOn="true"/>
<light type="work" index="0>27|1" real="32|1|2" beam="32|1|1" inputName="backlights" helptext="backlights" stayOn="true"/>
</lightsaddon>
</vehicle>
