<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>PRAGA V3S</name>
        <specs>
            <power>73</power>
            <maxSpeed>60</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_truck</function>
        </functions>
        <image>store.dds</image>
        <price>13000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PRAGA</brand>
        <category>trucks</category>
        <shopTranslationOffset>0 0.04 0</shopTranslationOffset>
        <shopRotationOffset>-0.3 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3984248</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>678444</indexBufferMemoryUsage>
        <textureMemoryUsage>30410616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_truck</typeDesc>
        <filename>Praga.i3d</filename>
        <size width="3.5" length="7" lengthOffset="-0.2"/>
        <components>
            <component centerOfMass="0 1.07 -0.31" solverIterationCount="40" mass="7438"/>
		</components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>

	<baseColorConfigurations price="3000" useDefaultColors="true" defaultColorIndex="0">
		<baseColorConfiguration color="1 1 1 1"/>
		<baseColorConfiguration color="0.8 0.8 0.8 8"/>
		<baseColorConfiguration color="0.1 0.1 0.1 1"/>
		<baseColorConfiguration color="0.139 0.186 0.028 1"/>
        <colorNode node="0>0|0|1" />
        <colorNode node="0>1|0" />
	    <colorNode node="0>1|1" />
    </baseColorConfigurations>

    <designConfigurations>
        <designConfiguration name="Nic" price="0">
            <objectChange node="0>0|0|0|3" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|0|0|4" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|1" visibilityActive="false"  visibilityInactive="true" />
        </designConfiguration>
		<designConfiguration name="Bedna" price="50">
            <objectChange node="0>0|0|0|3" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|0|0|4" visibilityActive="true"  visibilityInactive="false" />
			<objectChange node="0>0|1" visibilityActive="false"  visibilityInactive="true" />
        </designConfiguration>
        <designConfiguration name="Kolo" price="100" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>0|0|0|3" visibilityActive="true" visibilityInactive="false"/>
 			<objectChange node="0>0|1" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|0|0|4" visibilityActive="false"  visibilityInactive="true" />
        </designConfiguration>
		<designConfiguration name="Bedna + Kolo" price="150" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>0|0|0|3" visibilityActive="true" visibilityInactive="false"/>
 			<objectChange node="0>0|0|0|4" visibilityActive="true"  visibilityInactive="false" />
			<objectChange node="0>0|1" visibilityActive="false"  visibilityInactive="true" />
        </designConfiguration>
		<designConfiguration name="Jerab" price="150" icon="$dataS2/menu/hud/configurations/config_edition.png">
            <objectChange node="0>0|0|0|3" visibilityActive="false"  visibilityInactive="true" />
 			<objectChange node="0>0|0|0|4" visibilityActive="false"  visibilityInactive="true" />
			<objectChange node="0>0|1" visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
    </designConfigurations>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="LIZARD">
                <wheels autoRotateBackSpeed="1">
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1"  restLoad="0.5" repr="0>12|1"  driveNode="0>12|1|1" width="0.2" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23" spring="28" damper="40" frictionScale="2" />
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="1"  restLoad="0.5" repr="0>12|2" driveNode="0>12|2|1" width="0.2" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23" spring="28" damper="40" frictionScale="2" />
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0"  restLoad="0.5" repr="0>11|3" width="0.4" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23"  spring="42" damper="40" frictionScale="1.9" />
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0"  restLoad="0.5" repr="0>11|1" width="0.4" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23"  spring="42" damper="40" frictionScale="1.9" />
                    </wheel>
					<wheel isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0"  restLoad="0.5" repr="0>11|2" width="0.4" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23"  spring="42" damper="40" frictionScale="1.9" />
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics rotSpeed="0"  restLoad="0.5" repr="0>11|4" width="0.4" radius="0.55" forcePointRatio="0.5" initialCompression="35" suspTravel="0.23"  spring="42" damper="40" frictionScale="1.9" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4" />
        </ackermannSteeringConfigurations>

    </wheels>


    <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
        </states>

        <realLights>
            <low>
                <light node="0>5|1|0"         lightTypes="0 1" excludedLightTypes="2 3" />
                <light node="0>5|1|1"           lightTypes="3" />
            </low>
            <high>
                <light node="0>5|1|2"        lightTypes="0 1" excludedLightTypes="2 3" />
                <light node="0>5|1|3"          lightTypes="3"/>
                <light node="0>5|2|0"       lightTypes="0"/>
                <brakeLight node="0>5|2|0" />
                <turnLightLeft node="0>5|3|0" />
                <turnLightRight node="0>5|3|1" />

            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>5|0|0" lightTypes="0 3"/>
            <defaultLight shaderNode="0>5|0|1" lightTypes="0 3"/>
            <defaultLight shaderNode="0>5|0|2|0" lightTypes="0"/>
            <defaultLight shaderNode="0>5|0|3|0" lightTypes="0"/>
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="0>5|0|2|2" />
            <turnLightLeft shaderNode="0>5|0|4|0" />
            <turnLightRight shaderNode="0>5|0|3|2" />
            <turnLightRight shaderNode="0>5|0|5|0" />
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="0>5|0|2|1" />
            <brakeLight shaderNode="0>5|0|3|1" />
        </brakeLights>

        <sounds>
            <switchLight template="SWITCH_01" linkNode="0>" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
        </sounds>
    </lights>

	<attacherJoints>   
		<attacherJoint node="0>8" jointType="semitrailer" lowerRotLimit="0 0 0" upperRotLimit="0 0 0" lowerRotationOffset="0" upperRotationOffset="0" lowerTransLimit="0 0 0" rotLimitSpring="100000 100000 100000" rotLimitDamping="10000 10000 10000" transLimitSpring="100000 100000 100000" transLimitDamping="10000 10000 10000" allowsJointLimitMovement="false" allowsLowering="false" enableCollision="false">   
			<schema position="0.35 0.25" rotation="0" invertX="false"/>    
		</attacherJoint>
                <attacherJoint node="0>9" jointType="trailer" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false" >
                    <schema position="1 0" rotation="0" invertX="false" />
                    <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
                </attacherJoint>
				<attacherJoint node="0>9" jointType="trailerLow" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false" >
                    <schema position="1 0" rotation="0" invertX="false" />
                    <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
                </attacherJoint>
         <attacherJoint dynamicHoseIndice="0" jointType="frontloader" node="0>0|1|0|0|0|0|0|1|0|0|0|0" lowerRotLimit="0 0 70" nodeVisual="0>0|1|0|0|0|0|0|1|0|3" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="75000 75000 75000" rotLimitDamping="50 50 50" transLimitSpring="75000 75000 75000" transLimitDamping="50 50 50" >
            <schema position="0 0.4" rotation="0" invertX="true" />
        </attacherJoint>
		
     </attacherJoints>  

    <enterable isTabbable="true" >
        <enterReferenceNode node="0>" />
        <exitPoint node="0>6" />

        <cameras>
            <camera node="0>4|0|0" rotatable="true" rotateNode="0>4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4.5" transMax="40" translation="0 0 9" rotation="-20 180 0">
                <raycastNode node="0>4|2"/>
                <raycastNode node="0>4|3"/>
                <raycastNode node="0>4|4"/>
            </camera>
            <camera node="0>4|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0.4" shadowFocusBox="0>4|5" />
        </cameras>

        <characterNode node="0>1|5|0" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="rightFoot" targetNode="0>1|5|1" />
            <target ikChain="leftFoot"  targetNode="0>1|5|2" />
            <target ikChain="rightArm"  targetNode="0>1|4|0|1" />
            <target ikChain="leftArm"   targetNode="0>1|4|0|2" />
        </characterNode>

    </enterable>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="150" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="3.5" fillType="def" /> <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="3" usage="300" fillType="air" permanentConsumption="false" refillLitersPerSecond="350" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.5" wheelIndex1="1" wheelIndex2="2" /> <!-- front 1-2 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.7" wheelIndex1="3" wheelIndex2="4" /> <!-- back 3-4 -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.5" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="Praga V3S" hp="73" price="0">
                <motor torqueScale="2.394" minRpm="850" maxRpm="2200" maxForwardSpeed="60" maxBackwardSpeed="15" brakeForce="4" lowBrakeForceScale="0.22" rotInertia="0.004788">
                    <torque rpm="850" torque="0.9"/>
                    <torque rpm="1000" torque="1"/>
                    <torque rpm="1450" torque="1"/>
                    <torque rpm="1900" torque="0.75"/>
                    <torque rpm="2200" torque="0.63"/>
                    <torque rpm="2500" torque="0.2"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200" />
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="0>1|2" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.03" maxRpmScale="0.2" xzRotationsOffset="40 0" xzRotationsForward="20 80" xzRotationsBackward="20 -80" xzRotationsLeft="20 80" xzRotationsRight="20 -80" />
        </exhaustEffects>

        <sounds externalSoundFile="PragaZvuky.xml" />

        <dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm" animName="rpmDisplay" minValueAnim="0" maxValueAnim="2000" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="86" groups="MOTOR_ACTIVE"/>
        </dashboards>

    </motorized>


	<cylindered>
    <movingTools>

			<movingTool node="0>0|1|0">
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE"/>
                <rotation rotSpeed="40" rotAcceleration="40" rotMax="180" rotMin="-180" startRot="90" rotationAxis="1"/>
				<dependentPart node="0>0|1|0|0|0" />
				<dependentPart node="0>0|1|0|0|0|0" />
				<dependentPart node="0>0|1|0|0|1" />
				<dependentPart node="0>0|1|0|0|0|2" />
				<dependentPart node="0>0|1|0|0|0|0|0|1"/>
				<attacherJoint jointIndices="3"/>
            </movingTool>
            <movingTool node="0>0|1|0|0|0">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE"/>
                <rotation rotSpeed="40" rotAcceleration="40" rotMax="40" rotMin="-40" startRot="-39.712" rotationAxis="1"/>
				<dependentPart node="0>0|1|0|0|1" />
				<dependentPart node="0>0|1|0|0|0|2" />
				<dependentPart node="0>0|1|0|0|0|0|0|1"/>
				<attacherJoint jointIndices="3"/>
            </movingTool>	
			<movingTool node="0>0|1|0|0|0|0">
                <controls axis="AXIS_CRANE_ARM3" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE"/>
                <rotation rotSpeed="40" rotAcceleration="40" rotMax="0" rotMin="-139.534" startRot="-139.534" rotationAxis="1"/>
				<dependentPart node="0>0|1|0|0|1" />
				<dependentPart node="0>0|1|0|0|0|2" />
				<dependentPart node="0>0|1|0|0|0|0|0" />
				<dependentPart node="0>0|1|0|0|0|0|0|1"/>
				<attacherJoint jointIndices="3"/>
            </movingTool>	
			<movingTool node="0>0|1|0|0|0|0|0">
                <controls axis="AXIS_CRANE_ARM4" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE"/>
               <translation transSpeed="0.9" transAcceleration="8" transMax="-0.1" transMin="-1.4" translationAxis="3" />
			   <attacherJoint jointIndices="3"/>
            </movingTool>	
			<movingTool node="0>0|1|0|0|0|0|0|0">
                <controls axis="AXIS_CRANE_ARM5" invertAxis="false" mouseSpeedFactor="1.2" iconName="FRONTLOADER_ARM_ROTATE"/>
                <rotation rotSpeed="150" rotAcceleration="80" rotMax="180" rotMin="-180" startRot="0" rotationAxis="2"/>
				<attacherJoint jointIndices="3"/>
				<dependentPart node="0>0|1|0|0|0|0" />
				<dependentPart node="0>0|1|0|0|0" />
				<dependentPart node="0>0|1|0|0|0|0|0|1"/>
            </movingTool>	
			
        </movingTools>
		
	<movingParts>

			<movingPart node="0>0|1|0|0|0|0|0|1" referencePoint="0>0|1|3" referenceFrame="0>0|1|3">
				<rotatingPart node="0>0|1|0|0|0|0|0|1"/>
			</movingPart>

            <movingPart node="0>0|1|0|0|1" referencePoint="0>0|1|0|0|0|1" referenceFrame="0>0|1|0|0|0|1" >
                <translatingPart node="0>0|1|0|0|1|0" />
            </movingPart>
			<movingPart node="0>0|1|0|0|0|2" referencePoint="0>0|1|0|0|0|0|1" referenceFrame="0>0|1|0|0|0|0|1" >
                <translatingPart node="0>0|1|0|0|0|2|0" />
            </movingPart>
			

    </movingParts>
	</cylindered>

    <animations>
        <animation name="speedDisplay">
            <part node="0>0|0|0|5|0" startTime="0" endTime="1" startRot="0 0 178.833" endRot="0 0 69.712"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>0|0|0|5|1" startTime="0" endTime="4" startRot="0 0 179.88" endRot="0 0 18.019"/>
            <!--part node="0>18|4" startTime="0.1" endTime="0.3" startRot="1.527 -4.56 3.956" endRot="3.961 -2.728 -32.992"/>
            <part node="0>18|3|0|0|0|0" startTime="0" endTime="4" startRot="0 0 0" endRot="0 0 -73"/-->
        </animation>
        <animation name="fuelDisplay">
            <part node="0>0|0|0|5|2" startTime="0" endTime="1" startRot="0 0 -173.684" endRot="0 0 98.042"/>
        </animation>
    </animations>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>

        <steeringWheel node="0>1|4|0" indoorRotation="360" outdoorRotation="25" />
    </drivable>

	 <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>
    </dashboard>
	
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="400">
					<dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
					</fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="def" capacity="60"/>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="4000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <honk>
        <sound template="HONK_TRUCK" linkNode="0>" />
    </honk>

	<connectionHoses>
		<target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>0|1|0|0|0|0|3"/>
        <target attacherJointIndices="1 2 3" type="hydraulicIn" node="0>0|1|0|0|0|0|4"/>
    </connectionHoses>

    <ai>
        <collisionTrigger node="0>7|0" />
    </ai>

    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-3.15" maxZ="3.1" yOffset="0.5" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="-3.5" maxZ="-3.05" yOffset="0.4" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

</vehicle>