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

    <storeData>
        <name>$l10n_typeDesc_zunhammerTV585</name>
        <specs>
            <combination>TV 585</combination>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreader</function>
        </functions>
        <image>zunhammer/TV585/store_tv585Tank.png</image>
        <price>70000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ZUNHAMMER</brand>
        <category>Holmer_Guellepack</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_zunhammerTV585</typeDesc>
        <filename>zunhammer/TV585/TV585.i3d</filename>
        <speedLimit value="17" />
        <size width="5.5" length="7.5" lengthOffset="-1"/>
        <components>
            <component centerOfMass="0 0 -1" solverIterationCount="20" mass="3000" />
        </components>
        <schemaOverlay attacherJointPosition="-0.5 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="moduleJoint" jointType="holmerTerraVariant" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0">
              <objectChange node="pump" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" delayedOnAttach="false"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="TOOL_CONNECTOR_TOP_RIGHT" node="topRightPipe" length="0.5" diameter="0.14" straighteningFactor="1" isTwoPointHose="true" />
    </connectionHoses>

    <powerConsumer ptoRpm="350" neededMaxPtoPower="30" />

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="camera_02" filename="$data/shared/assets/camera_02.i3d"/>
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="workingLight12_01" lightTypes="2" filename="lights/workingLight12.xml" >
            <rotationNode name="rotationNode1" rotation="-10 0 0" />
        </sharedLight>
        <sharedLight linkNode="workingLight12_02" lightTypes="1" filename="lights/workingLight12.xml" >
            <rotationNode name="rotationNode1" rotation="10 -30 0" />
        </sharedLight>
        <sharedLight linkNode="workingLight12_03" lightTypes="1" filename="lights/workingLight12.xml" >
            <rotationNode name="rotationNode1" rotation="30 0 0" />
        </sharedLight>
        <sharedLight linkNode="workingLight12_04" lightTypes="1" filename="lights/workingLight12.xml" >
            <rotationNode name="rotationNode1" rotation="10 30 0" />
        </sharedLight>
        <sharedLight linkNode="workingLight12_05" lightTypes="1" filename="lights/workingLight12.xml" >
            <rotationNode name="rotationNode1" rotation="30 0 0" />
        </sharedLight>

        <realLights>
            <high>
                <light node="workLightBackHigh1" lightTypes="1" />
                <light node="workLightBackHigh2" lightTypes="2" />
            </high>
        </realLights>

        <beaconLights>
            <beaconLight node="beaconLight06" speed="0.015" filename="$data/shared/assets/beaconLights/lizard/beaconLight06.xml" />
        </beaconLights>
    </lights>

    <sprayer>
        <usageScales workingWidth="0" scale="1" />
    </sprayer>

    <animations>
        <animation name="moveSupport">
            <part node="supportCols"    direction="-1" startTime="0" endTime="0.3" startTrans="0 2 0" endTrans="0 1.99 0" />
            <part node="supportCols"    direction="-1" startTime="0.3" endTime="1.2" startTrans="0 1.99 0" endTrans="0 -0.7 0" />
            <part node="leftSupports"   direction="-1" startTime="0" endTime="0.3" startTrans="-1.5 0 0" endTrans="0 0 0" />
            <part node="rightSupports"  direction="-1" startTime="0" endTime="0.3" startTrans="1.5 0 0" endTrans="0 0 0" />

            <part node="supportArms"  direction="-1" startTime="0" endTime="0.9" visibility="false" />
            <part node="supportArms"  direction="-1" startTime="0.9" endTime="1.2" visibility="true" />
            <part node="supportArmParts"  direction="-1" startTime="0" endTime="0.9" visibility="false" />
            <part node="supportArmParts"  direction="-1" startTime="0.9" endTime="1.2" visibility="true" />

            <part node="supportCols"    direction="1" startTime="0.01" endTime="0.02" startTrans="0 1 0" endTrans="0 0 0" />
            <part node="supportCols"    direction="1" startTime="0.02" endTime="1.2" startTrans="0 0 0" endTrans="0 -0.7 0" />
            <part node="leftSupports"   direction="1" startTime="0" endTime="0.01" startTrans="-1.5 0 0" endTrans="-0.02 0 0" />
            <part node="rightSupports"  direction="1" startTime="0" endTime="0.01" startTrans="1.5 0 0" endTrans="0.02 0 0" />
            <part node="leftSupports"   direction="1" startTime="0.01" endTime="0.3" startTrans="-0.02 0 0" endTrans="-0.01 0 0" />
            <part node="rightSupports"  direction="1" startTime="0.01" endTime="0.3" startTrans="0.02 0 0" endTrans="0.01 0 0" />
            <part node="leftSupports"   direction="1" startTime="0.3" endTime="1.2" startTrans="-0.01 0 0" endTrans="0 0 0" />
            <part node="rightSupports"  direction="1" startTime="0.3" endTime="1.2" startTrans="0.01 0 0" endTrans="0 0 0" />

            <part node="supportArms"  direction="1" startTime="0" endTime="0.02" visibility="false" />
            <part node="supportArms"  direction="1" startTime="0.02" endTime="1.2" visibility="true" />
            <part node="supportArmParts"  direction="1" startTime="0" endTime="0.02" visibility="false" />
            <part node="supportArmParts"  direction="1" startTime="0.02" endTime="1.2" visibility="true" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
          <movingTool node="pipeRot" playSound="true">
              <controls axis="AXIS_PIPE" invertAxis="true" mouseSpeedFactor="1" iconName="PIPE_END_ROTATE" />
              <rotation rotSpeed="15" rotAcceleration="50" rotMax="155" rotMin="0" startRot="0" rotationAxis="2"/>
              <dependentMovingTool node="pipeArm01">
                    <rotationBasedLimits>
                        <limit rotation="0" rotMax="0" rotMin="0" />
                        <limit rotation="2" rotMax="3" rotMin="3" />
                        <limit rotation="45" rotMax="10" rotMin="-10" />
                        <limit rotation="90" rotMax="15" rotMin="-10" />
                        <limit rotation="155" rotMax="20" rotMin="-20" />
                    </rotationBasedLimits>
                </dependentMovingTool>
          </movingTool>
          <movingTool node="pipeArm01" playSound="true">
              <controls axis="AXIS_PIPE2" invertAxis="false" mouseSpeedFactor="1" iconName="PIPE_END_ROTATE" />
              <rotation rotSpeed="15" rotAcceleration="50" rotMax="20" rotMin="-20" startRot="0" rotationAxis="1" syncMinRotLimits="true" syncMaxRotLimits="true"/>
              <dependentPart node="pipeArm01Hydraulic" />
          </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="pipeArm01Hydraulic" referencePoint="pipeArm01HydraulicRef" referenceFrame="pipeArm01HydraulicRef" >
                <translatingPart node="pipeArm01HydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="tv585Tank_main_component1"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="slurryTank" capacity="21000" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillTrigger consumePtoPower="true"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>

        <sounds>
            <fill template="SLURRY_03" />
        </sounds>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="1000"/>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="600" fillUnitIndex="1">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
            <dischargeSound template="SLURRY_02"/>
        </dischargeNode>
    </dischargeable>

    <manureBarrel attacherJointIndex="1" />

    <turnOnVehicle>
        <activatableFillUnits>
            <activatableFillUnit index="1" />
        </activatableFillUnits>

        <sounds>
            <work template="SLURRY_03">
                <pitch indoor="0.75" outdoor="0.75" />
            </work>
        </sounds>
    </turnOnVehicle>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-4.3" maxZ="2.7 " yOffset="1.5" />
    </foliageBending>
	
	<designConfigurations>
        <designConfiguration name="Ohne Logo" price="0">
			<objectChange node="Logo01" visibilityActive="false" />
			<objectChange node="Logo02" visibilityActive="false" />
			<objectChange node="Logo03" visibilityActive="false" />
			<objectChange node="Logo04" visibilityActive="false" />
		</designConfiguration>
        <designConfiguration name="Agrartechnik NordRhein" price="1000">
			<objectChange node="Logo01" visibilityActive="true" />
			<objectChange node="Logo02" visibilityActive="false" />
			<objectChange node="Logo03" visibilityActive="false" />
			<objectChange node="Logo04" visibilityActive="false" />
		</designConfiguration>
		<designConfiguration name="LU Scheurer" price="1000">
			<objectChange node="Logo01" visibilityActive="false" />
			<objectChange node="Logo02" visibilityActive="true" />
			<objectChange node="Logo03" visibilityActive="false" />
			<objectChange node="Logo04" visibilityActive="false" />
		</designConfiguration>
		<designConfiguration name="LU Fitschen" price="1000">
			<objectChange node="Logo01" visibilityActive="false" />
			<objectChange node="Logo02" visibilityActive="false" />
			<objectChange node="Logo03" visibilityActive="true" />
			<objectChange node="Logo04" visibilityActive="false" />
		</designConfiguration>
		<designConfiguration name="LU Lausitz" price="1000">
			<objectChange node="Logo01" visibilityActive="false" />
			<objectChange node="Logo02" visibilityActive="false" />
			<objectChange node="Logo03" visibilityActive="false" />
			<objectChange node="Logo04" visibilityActive="true" />
		</designConfiguration>
	</designConfigurations>	

    <baseMaterial>
        <material name="TV585_mat" baseNode="tv585Tank_vis">
            <shaderParameter name="colorMat0" value="0.3050 0.3324 0.3324 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations useDefaultColors="false" price="0">
        <baseMaterialConfiguration color="0.3050 0.3324 0.3324 0"/>
        <baseMaterialConfiguration color="ZUNHAMMER_YELLOW1"/>
        <material name="TV585_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

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

    <i3dMappings>
        <i3dMapping id="tv585Tank_main_component1" node="0>" />
        <i3dMapping id="tv585Tank_vis" node="0>0" />
        <i3dMapping id="moduleJoint" node="0>0|0|0" />
        <i3dMapping id="supportArms" node="0>0|0|1" />
        <i3dMapping id="supportCols" node="0>0|0|2" />
        <i3dMapping id="leftSupports" node="0>0|0|2|0" />
        <i3dMapping id="rightSupports" node="0>0|0|2|1" />
        <i3dMapping id="supportArmParts" node="0>0|0|2|2" />
        <i3dMapping id="topRightPipe" node="0>0|0|3" />
        <i3dMapping id="pump" node="0>0|1" />
        <i3dMapping id="workingLight12_02" node="0>0|2|0|0" />
        <i3dMapping id="workingLight12_03" node="0>0|2|0|1" />
        <i3dMapping id="workingLight12_04" node="0>0|2|0|2" />
        <i3dMapping id="workingLight12_05" node="0>0|2|0|3" />
        <i3dMapping id="camera_02" node="0>0|2|0|4" />
        <i3dMapping id="beaconLight06" node="0>0|2|0|5" />
        <i3dMapping id="workLightBackHigh1" node="0>0|2|1|0" />
        <i3dMapping id="pipeRot" node="0>0|3|0" />
        <i3dMapping id="pipeArm01" node="0>0|3|0|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|0|0|0" />
        <i3dMapping id="pipeArm01HydraulicRef" node="0>0|3|0|0|1" />
        <i3dMapping id="workingLight12_01" node="0>0|3|0|0|2|0" />
        <i3dMapping id="workLightBackHigh2" node="0>0|3|0|0|2|0|0" />
        <i3dMapping id="pipeArm01Hydraulic" node="0>0|3|0|1" />
        <i3dMapping id="pipeArm01HydraulicPunch" node="0>0|3|0|1|0" />
        <i3dMapping id="attacherArm01_detached" node="0>0|3|1" />
        <i3dMapping id="attacherArm02_detached" node="0>0|3|2" />
        <i3dMapping id="attacherArm03_detached" node="0>0|3|3" />
        <i3dMapping id="attacherArm04_detached" node="0>0|3|4" />
        <i3dMapping id="fillTrigger" node="0>0|4" />
        <i3dMapping id="dischargeTrigger" node="0>0|5" />
        <i3dMapping id="dischargeNode" node="0>0|6" />
		<i3dMapping id="Logo01" node="0>0|7|4" />
		<i3dMapping id="Logo02" node="0>0|7|5" />
		<i3dMapping id="Logo03" node="0>0|7|6" />
		<i3dMapping id="Logo04" node="0>0|7|7" />
    </i3dMappings>
</vehicle>
