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

    <storeData>
        <name>7745</name>
        <specs>
            <power>75</power>
            <maxSpeed>30</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>Store.dds</image>
        <price>20000</price>
        <dailyUpkeep>15</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZETOR</brand>
        <category>tractorsS</category>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>zeko7745.i3d</filename>
        <size width="2" length="4" lengthOffset="0.2"/>
		
		 <components>
            <component centerOfMass="0 0.5 -0.2" solverIterationCount="20" mass="2500"/>
            <component centerOfMass="0 -0.1 0" solverIterationCount="20" mass="1100"/>
			<joint component1="1" component2="2" node="0>0|2"  rotLimit="0 0 10"  breakable="false"/>
        </components>
		
        <schemaOverlay attacherJointPosition="0.5 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
		
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.2">
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.0" repr="1>0|1|0" driveNode="1>0|1|0|0|0" forcePointRatio="0.5" initialCompression="25" suspTravel="0.16" spring="21" damper="40" radius="0.55" width="0.24" mass="0.119" tireType="mud" frictionScale="1.60" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.0" repr="1>0|0|0" driveNode="1>0|0|0|0|0" forcePointRatio="0.5" initialCompression="25" suspTravel="0.16" spring="21" damper="40" radius="0.55" width="0.24" mass="0.119" tireType="mud" frictionScale="1.60" maxLongStiffness="8" maxLatStiffness="100" maxLatStiffnessLoad="2"/>
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.9" repr="0>0|1" forcePointRatio="0.5" initialCompression="20" suspTravel="0.42" spring="27" damper="40" yOffset="0.03" radius="0.713" width="0.54" mass="0.202" tireType="mud" frictionScale="1.60" maxLongStiffness="9" maxLatStiffness="110" maxLatStiffnessLoad="2"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.9" repr="0>0|0" forcePointRatio="0.5" initialCompression="20" suspTravel="0.42" spring="27" damper="40" yOffset="0.03" radius="0.713" width="0.54" mass="0.202" tireType="mud" frictionScale="1.60" maxLongStiffness="9" maxLatStiffness="110" maxLatStiffnessLoad="2"/>
                    </wheel>
                    <foliageBendingModifier index="1" minX="-1.1" maxX="1.1"/>
                    <foliageBendingModifier index="2" minX="-1.15" maxX="1.15"/>
                </wheels>
                <size width="DELETED" length="DELETED"/>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="37" 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>2|0|0"       lightTypes="0" excludedLightTypes="0" />
                <light node="0>2|0|3"    lightTypes="0" />
            </low>
            <high>
			    <light node="0>2|0|0"       lightTypes="0" excludedLightTypes="0" />
                <light node="0>2|0|3"    lightTypes="0" />
                <light node="0>2|0|1"        lightTypes="2" />
                <light node="0>2|0|2"    lightTypes="2" />
				<light node="0>2|1|0|0"    lightTypes="1" />
				<light node="0>2|1|0|1"    lightTypes="1" />
                <brakeLight node="0>2|2|0" />
                <turnLightLeft node="0>2|3|0|1" />
                <turnLightRight node="0>2|3|1|1" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="0>2|6" lightTypes="0" />
            <defaultLight shaderNode="0>2|7" lightTypes="0" />
            <defaultLight shaderNode="0>2|8" lightTypes="2" />
            <defaultLight shaderNode="0>2|9" lightTypes="2" />			
            <defaultLight shaderNode="0>2|10"        lightTypes="1" />
            <defaultLight shaderNode="0>2|11"        lightTypes="1" />			
            <defaultLight shaderNode="0>2|12|0" lightTypes="0" />
            <defaultLight shaderNode="0>2|13|0" lightTypes="0" />			
        </defaultLights>

        <brakeLights>
            <brakeLight shaderNode="0>2|12|1" />
            <brakeLight shaderNode="0>2|13|1" />		
        </brakeLights>

        <turnLights>
            <turnLightLeft shaderNode="0>2|13|2" />
            <turnLightRight shaderNode="0>2|12|2" />	
        </turnLights>

        <beaconLights>
            <beaconLight node="0>2|5|0" filename="$data/shared/assets/beaconLights/lizard/beaconLight01.xml" />
			<beaconLight node="0>2|5|1" filename="$data/shared/assets/beaconLights/lizard/beaconLight01.xml" />
        </beaconLights>

        <sounds>
            <switchLight template="SWITCH_01"  />
            <turnLight template="SWITCH_TURNLIGHT"  />
        </sounds>
	</lights>
	
	 <honk>
        <sound template="HONK_FENDT511C"  />
    </honk>
	
	<motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="40"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
                <consumer fillUnitIndex="2" usage="200" fillType="air" permanentConsumption="false" refillLitersPerSecond="250" refillCapacityPercentage="0.5" /> <!-- usage per second at full brake power -->
            </consumerConfiguration>
        </consumerConfigurations>

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

        <motorConfigurations>
            <motorConfiguration name="75" hp="75" price="0">
                <motor torqueScale="0.401" minRpm="850" maxRpm="2200" maxForwardSpeed="30" maxBackwardSpeed="10" brakeForce="2.5" lowBrakeForceScale="0.22" rotInertia="0.004">
                    <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>
                <transmission minForwardGearRatio="19.6" maxForwardGearRatio="250" minBackwardGearRatio="55" maxBackwardGearRatio="250"/>
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="0>8|0" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0 0 0 3" minRpmScale="0.05" maxRpmScale="0.5" xzRotationsOffset="150 0" xzRotationsForward="50 0" xzRotationsBackward="-100 0" xzRotationsLeft="-50 -150" xzRotationsRight="-50 150" />
        </exhaustEffects>
		
		<sounds externalSoundFile="Sound/zvuk.xml" />

        <motorStartDuration>2000</motorStartDuration>

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

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

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

    </enterable>
	
	<powerTakeOffs>
        <output attacherJointIndices="1 2 3" outputNode="0>5|2|0" />
    </powerTakeOffs>
	
	<drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" linkNode="0>" />
        </sounds>

        <steeringWheel node="0>4|0" indoorRotation="540" outdoorRotation="35" />
		
    </drivable>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="70">
					  </fillUnit>  
                    <fillUnit unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air" capacity="2000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>


    <attacherJoints comboDuration="0">
        <attacherJoint node="0>5|0|0|0|0" lowerRotationOffset="-1.5" upperRotationOffset="-1.5" moveTime="2.5" comboTime="1">
            <distanceToGround lower="0.36" upper="1.07" />
            <rotationNode node="0>5|0|0" lowerRotation="-11 0 0" upperRotation="30 0 0" />
            <rotationNode2 node="0>5|0|0|0" />
            <bottomArm rotationNode="0>5|0|1" translationNode="0>5|0|1|0" referenceNode="0>5|0|1|0|0" zScale="-1" startRotation="-10 0 0" />
            <topArm baseNode="0>5|0|2" filename="$data/shared/assets/upperLinks/walterscheid01.i3d" zScale="-1" color="FENDT_GREY1" />
            <schema position="1 0" rotation="0" invertX="false" />
			<objectChange node="0>5|1|0" visibilityActive="false" visibilityInactive="true" />
            <objectChange node="0>5|1|1" visibilityActive="false" visibilityInactive="true" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|0|0" jointType="trailer" lowerRotLimit="20 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <distanceToGround lower="0.44" upper="1.02" />
            <transNode node="0>5|1|0" minY="0.713" maxY="0.945" height="0.3"/>
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|1" jointType="trailerLow" lowerRotLimit="20 60 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false" />
			<objectChange node="0>5|0|1" rotationActive="35 0 0"  rotationInactive="-17 0 0" />
            <objectChange node="0>5|1|0" visibilityActive="false"  visibilityInactive="true" />
        </attacherJoint>
		
        <attacherJoint node="0>5|1|2" jointType="trailer" lowerRotLimit="20 65 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
            <schema position="1 0" rotation="0" invertX="true" />
        </attacherJoint>
		
		<attacherJoint node="0>13|8|8" jointType="trailer" lowerRotLimit="20 65 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
            <schema position="1 0" rotation="0" invertX="true" />
        </attacherJoint>
		
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints> 

    <frontloaderConfigurations>
        <frontloaderConfiguration name="$l10n_ui_no" price="0" >
            <objectChange node="0>13|1|0|1" visibilityActive="false" />
        </frontloaderConfiguration>
        <frontloaderConfiguration name="$l10n_ui_yes" price="1500" >
            <objectChange node="0>13|1|0|1" visibilityActive="true" visibilityInactive="false"/>
            <attacherJoint node="0>13|1|0|0" jointType="attachableFrontloader" lowerTransLimit="0 0 0" lowerRotLimit="0 0 0" moveTime="2" >
                <rotationNode upperRotation="0 0 0" lowerRotation="0 0 0"/>
                <schema position="1 0.4" rotation="0" invertX="true" />
            </attacherJoint>
        </frontloaderConfiguration>
    </frontloaderConfigurations>	
	
	<animations>
		<animation name="leftDoor">
            <part node="0>13|3|2"   startTime="0" endTime="2" startRot="0 0 0" endRot="0 -97 0" />
        </animation>
		<animation name="rightDoor">
            <part node="0>13|3|3"   startTime="0" endTime="2" startRot="0 0 0" endRot="0 97 0" />
        </animation>
		<animation name="zadnje">
            <part node="0>13|11"   startTime="0" endTime="2" startRot="0 0 0" endRot="40 0 0" />
        </animation>
		<animation name="krovPoklopac">
            <part node="0>13|4"   startTime="0" endTime="2" startRot="91 0 0" endRot="110 0 0" />
        </animation>
    </animations>
	
	<interactiveComponents>
        <windows>
            <window name="door"   mark="0>13|3|2|1" size="0.2" animName="leftDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
            <window name="rightDoor"   mark="0>13|3|3|0" size="0.2" animName="rightDoor" onMessage="ic_component_open" offMessage="ic_component_close"/>
            <window name="zadnje"   mark="0>13|11|0|1" size="0.2" animName="zadnje" onMessage="ic_component_open" offMessage="ic_component_close"/>
            <window name="krovPoklopac"   mark="0>13|13" size="0.2" animName="krovPoklopac" onMessage="ic_component_open" offMessage="ic_component_close"/>			
        </windows> 
    </interactiveComponents>
   
    <cylindered>
    <movingTools>
        <!-- attacher joint back bottom-->
        <movingTool node="0>5|0|1">
            <dependentPart node="0>9|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- back -->
        <movingPart node="0>9|0" referencePoint="0>5|0|1|0|1" localReferencePoint="0>9|0|0" referenceFrame="0>5|0|1|0">
            <dependentPart node="0>9|0|0|0" />
            <dependentPart node="0>9|0|0|1" />
            <dependentPart node="0>9|1" />
            <dependentPart node="0>9|2" />
        </movingPart>
        <movingPart node="0>9|0|0|0" referencePoint="0>5|0|1|0|1|0" referenceFrame="0>5|0|1|0|1|0">
            <translatingPart node="0>9|0|0|0|0" />
        </movingPart>
        <movingPart node="0>9|0|0|1" referencePoint="0>5|0|1|0|1|1" referenceFrame="0>5|0|1|0|1|1">
            <translatingPart node="0>9|0|0|1|0" />
        </movingPart>
        <movingPart node="0>9|1" referencePoint="0>5|0|1|0|2" referenceFrame="0>5|0|1|0|2" scaleZ="true"/>
        <movingPart node="0>9|2" referencePoint="0>5|0|1|0|3" referenceFrame="0>5|0|1|0|3" scaleZ="true"/>
        
        <movingPart node="1>0|0|0|0|2" referencePoint="0>5|3" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true"/>
        
        <movingPart node="1>0|1|0|0|1" referencePoint="1>0|0|0|0|1" referenceFrame="1>0|0|0" scaleZ="true" playSound="false" isActiveDirty="true"/>
    </movingParts>
	
	<sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
		
	</cylindered>
	
	<designConfigurations>
        <designConfiguration name="Standard" price="0">
            <objectChange node="0>13|8" visibilityActive="false"/>
			<objectChange node="0>13|8|8" visibilityActive="false"/>
        </designConfiguration>
		<designConfiguration name="Forest" price="1000">
            <objectChange node="0>13|8" visibilityActive="true"/>
			<objectChange node="0>13|8|8" visibilityActive="true"/>
        </designConfiguration>
    </designConfigurations>
	
	<foliageBending>
        <bendingNode minX="-1.1" maxX="1.1" minZ="-0.45" maxZ="2.15" yOffset="0.6" />
        <bendingNode minX="-1.1" maxX="1.1" minZ="-2.3" maxZ="-0.45" yOffset="0.6" />
        <bendingNode minX="-0.4" maxX="0.4" minZ="2.1" maxZ="2.35" yOffset="0.6" />
    </foliageBending>
	
	<ai>
        <collisionTrigger node="0>7|0" />
    </ai>

</vehicle>