<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="casePatriot">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
		<en>Case Patriot 3230</en>
		<de>Case Patriot 3230</de>
	</name>
    <typeDesc>$l10n_TypeDesc_Sprayer</typeDesc>
    <filename>Patriot_3230.i3d</filename>

    <size width="3.5" length="8"/>
	
	<powerConsumer ptoRpm="450" neededPtoPower="10"/>
    <speedLimit value="28" />
	
    <wheels autoRotateBackSpeed="1.5">
        <wheel rotSpeed="30" rotMax="30" rotMin="-30" driveMode="2" repr="0" driveNode="0>0|0" 	radius="0.9" deltaY="0.0" suspTravel="0.1" spring="80" damper="40" mass="0.128" hasTyreTracks="true"/>
        <wheel rotSpeed="30" rotMax="30" rotMin="-30" driveMode="2" repr="1" driveNode="0>1|0" 	radius="0.9" deltaY="0.0" suspTravel="0.1" spring="80" damper="40" mass="0.128" hasTyreTracks="true"/>
        <wheel rotSpeed="0" driveMode="1" repr="2" driveNode="2" radius="0.9" deltaY="0.0" suspTravel="0.1" spring="80" damper="40" mass="0.195" hasTyreTracks="true" />
        <wheel rotSpeed="0" driveMode="1" repr="3" driveNode="3" radius="0.9" deltaY="0.0" suspTravel="0.1" spring="80" damper="40" mass="0.195" hasTyreTracks="true"/>
    </wheels>
	
	<differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>
	
	<motor torqueScale="0.9638" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="10" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="16" 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>
    
    <fuelCapacity>454</fuelCapacity>
    <fuelUsage>15</fuelUsage>
    <downForce>7</downForce>

    <cameras count="2">
        <camera1 index="4|0|0" rotatable="true" rotateNode="4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" >
			<raycastNode index="0>18"/>
			<raycastNode index="0>19"/>
		</camera1>		
        <camera2 index="0>4|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

    <lights count="2">
        <light realLight="0>5|0" fakeLight="0>7" decoration="0>6|0" lightType="0"/>
		<light realLight="0>5|1" fakeLight="0>7|0" decoration="0>6|3" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>6|1" />
	</brakeLights>
	
	<turnSignals>
        <turnSignalLeft index="0>6|2|0" />
        <turnSignalRight index="0>6|2|1" />
    </turnSignals>
	
	<beaconLights>
        <beaconLight index="0>8|0" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d" />
        <beaconLight index="0>8|1" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d" />
	</beaconLights>
	
	<steering index="0>21|0" indoorRotation="540" outdoorRotation="50" />
	

    <enterReferenceNode index="0>"/>
    <exitPoint index="11" />
	
	<motorStartDuration>1800</motorStartDuration>
    <attachSound file="$data/vehicles/shared/attach.wav" pitchOffset="1" />
    <motorSoundRun file="sounds/amazonePantera_drive.wav" pitchOffset="0.25" pitchScale="0.045" pitchMax="1.05" volume="0.5" />
    <compressedAirSound file="$data/vehicles/shared/compressedAir.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1.5"/>
    <spraySound file="sounds/amazonePantera_pump.wav" pitchOffset="1" volume="1.5"/>
	<fillSound file="$data/maps/sounds/refuel.wav" pitchOffset="1.0" volume="1.0" volume3D="1.0" innerRadius="10" radius="40" linkNode="0>14|1"/>
    <motorStartSound file="sounds/amazonePantera_start.wav" pitchOffset="0.65" />
    <motorSound file="sounds/amazonePantera_idle.wav" pitchOffset="0.65" pitchScale="0.0325" pitchMax="1" volume="1" radius="50" innerRadius="20"/>
    <motorStopSound file="sounds/amazonePantera_stop.wav" pitchOffset="0.9" />
	<honkSound file="$data/vehicles/shared/horn.wav" volume="1" radius="80" innerRadius="35" />
	<cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
	
    <exhaustParticleSystems count="1">
        <exhaustParticleSystem1 node="0>12" file="particleSystems/exhaustParticleSystem.i3d" />
    </exhaustParticleSystems>

	<honkSound file="$data/vehicles/shared/horn.wav" client="$data/vehicles/shared/horn.wav" volume="1" radius="50" innerRadius="20" />
	
    <!--characterNode index="0>9" cameraMinDistance="1.5" /-->

    <workAreas>
        <workArea startIndex="0>16|2|3|0|0|1|0" 		widthIndex="0>16|2|2|0|0|1|1" 		heightIndex="0>16|2|3|0|0|1|2" type="sprayer" disableBackwards="false"/>
    </workAreas>
	
	<aiLeftMarker index="0>16|2|3|0|0|1|1" />
    <aiRightMarker index="0>16|2|2|0|0|1|0" />
    <aiBackMarker index="0>16|2|5|2" />

    <foldingParts startMoveDirection="1">
        <foldingPart componentJointIndex="0" anchorActor="0" animationClip="BarraPrimariaDireitaSource" rootNode="0>16|2|2" speedScale="1" />
        <foldingPart componentJointIndex="0" anchorActor="0" animationClip="BarraPrimariaEsquerdaSource" rootNode="0>16|2|3" speedScale="1" />
    </foldingParts>

    <sprayUsages>
        <sprayUsage fillType="fertilizer" litersPerSecond="7" />
    </sprayUsages>
	
    <fillTypes fillTypes="fertilizer"/>
    <capacity>3028</capacity>
	<fillLitersPerSecond>200</fillLitersPerSecond>

    <sprayParticleSystem file="particleSystems/sprayParticleSystem.i3d" />

    <sprayValves>
		<!-- barra central -->
        <sprayValve index="0>16|2|4|0" />
        <sprayValve index="0>16|2|4|1" />
        <sprayValve index="0>16|2|4|2" />
        <sprayValve index="0>16|2|4|3" />
        <sprayValve index="0>16|2|4|4" />
        <sprayValve index="0>16|2|4|5" />
        <sprayValve index="0>16|2|4|6" />
		<!-- barra direita -->
        <sprayValve index="0>16|2|2|1|0" />
        <sprayValve index="0>16|2|2|1|1" />
        <sprayValve index="0>16|2|2|1|2" />
        <sprayValve index="0>16|2|2|1|3" />
        <sprayValve index="0>16|2|2|1|4" />
        <sprayValve index="0>16|2|2|1|5" />
        <sprayValve index="0>16|2|2|1|6" />
        <sprayValve index="0>16|2|2|1|7" />
        <sprayValve index="0>16|2|2|1|8" />
        <sprayValve index="0>16|2|2|1|9" />
        <sprayValve index="0>16|2|2|1|10" />
        <sprayValve index="0>16|2|2|0|1|0" />
        <sprayValve index="0>16|2|2|0|1|1" />
        <sprayValve index="0>16|2|2|0|1|2" />
        <sprayValve index="0>16|2|2|0|1|3" />
        <sprayValve index="0>16|2|2|0|1|4" />
        <sprayValve index="0>16|2|2|0|1|5" />
        <sprayValve index="0>16|2|2|0|0|0|0" />
        <sprayValve index="0>16|2|2|0|0|0|1" />
        <sprayValve index="0>16|2|2|0|0|0|2" />
        <sprayValve index="0>16|2|2|0|0|0|3" />
		<!-- barra esquerda -->
        <sprayValve index="0>16|2|3|1|0" />
        <sprayValve index="0>16|2|3|1|1" />
        <sprayValve index="0>16|2|3|1|2" />
        <sprayValve index="0>16|2|3|1|3" />
        <sprayValve index="0>16|2|3|1|4" />
        <sprayValve index="0>16|2|3|1|5" />
        <sprayValve index="0>16|2|3|1|6" />
        <sprayValve index="0>16|2|3|1|7" />
        <sprayValve index="0>16|2|3|1|8" />
        <sprayValve index="0>16|2|3|1|9" />
        <sprayValve index="0>16|2|3|1|10" />
        <sprayValve index="0>16|2|3|0|1|0" />
        <sprayValve index="0>16|2|3|0|1|1" />
        <sprayValve index="0>16|2|3|0|1|2" />
        <sprayValve index="0>16|2|3|0|1|3" />
        <sprayValve index="0>16|2|3|0|1|4" />
        <sprayValve index="0>16|2|3|0|1|5" />
        <sprayValve index="0>16|2|3|0|0|0|0" />
        <sprayValve index="0>16|2|3|0|0|0|1" />
        <sprayValve index="0>16|2|3|0|0|0|2" />
        <sprayValve index="0>16|2|3|0|0|0|3" />
    </sprayValves>

	<characterNode index="0>9|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 108" >
        <ikChains>
            <ikChain id="rightFoot" target="0>9|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>9|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>21|0|1" 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>21|0|2" 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>
	
    <aiTrafficCollisionTrigger index="13" />

	<components count="1">
        <component1 centerOfMass="0 0 0" solverIterationCount="35" />
        <joint component1="0" component2="0" index="0>0" 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>
