<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) EmikMODelStudio_CZ</annotation>

    <storeData>
        <name>KorbaSilaz - rám S3</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>KorbaSilaz/store_KorbaSilaz.png</image>
        <price>5900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TATRY</brand>
        <category>trailersChangingSystem</category>
        <vertexBufferMemoryUsage>1462288</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>260760</indexBufferMemoryUsage>
        <textureMemoryUsage>16952184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>KorbaSilaz/KorbaSilaz.i3d</filename>
        <size width="3.5" length="15" lengthOffset="1.1"/>
        <components>
            <component centerOfMass="0 1.4 0.3" solverIterationCount="10" mass="1100"/>
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
		<mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
                    <wheel isLeft="true" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|4|0" forcePointRatio="0.5" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.2" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|5|0" forcePointRatio="0.5" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.2" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|6|0" forcePointRatio="0.5" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.2" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="false" hasParticles="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|7|0" forcePointRatio="0.5" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.2" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0" jointType="trailerLow" lowerRotationOffset="0" upperRotationOffset="0"><!--jointType="trailerLow" -->
				<distanceToGround lower="1.1" upper="1.1"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <animations>
        <animation name="tipAnimationZadni">
            <part endRot="-45 0 0" endTime="8" node="0>0|1|0" startRot="0 0 0" startTime="0"/>
            <part endRot="21 0 0" endTime="0.25" node="0>0|1|0|0|0|7" startRot="0 0 0" startTime="0"/>
            <part endRot="50 0 0" endTime="8" node="0>0|1|0|0|0|1" startRot="0 0 0" startTime="0"/>
            <part node="0>0|1|0|0|0|4|0|0"         startTime="0.3" endTime="7"  startRot="0 0 0"  endRot="45 0 0" />
			
			<sound template="hydraulicOpen06"       startTime="0.01" endTime="4.99" direction="-1"    volumeScale="0.8" startPitchScale="0.5" endPitchScale="0.6" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicOpen02"       startTime="0.01" endTime="4.99" direction="-1"    volumeScale="1.2" startPitchScale="1.5" endPitchScale="1.6" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicClose02"      startTime="0.01" endTime="4.99" direction="1"     volumeScale="2"   pitchScale="1.2" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicClose01"      startTime="0.01" endTime="4.99" direction="1"     volumeScale="1.3" pitchScale="1.8" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="metalLowVar2"          startTime="4.99" direction="1"  volumeScale="2.5" pitchScale="1.2"/>
            <sound template="metalClose"            startTime="4.99" direction="1"  volumeScale="1.2" pitchScale="0.7"/>
            <sound template="thudVar2"              startTime="4.9"  direction="-1" volumeScale="2"   pitchScale="0.7"/>
            <sound template="hingeImp"              startTime="4.9"  direction="1"  volumeScale="0.5" pitchScale="0.8"/>
            <sound template="clackVar6"             startTime="4.9"  direction="1"  volumeScale="1.5" pitchScale="0.4"/>
            <sound template="thudVar2"              startTime="4.9"  direction="1"  volumeScale="1.5" pitchScale="0.8"/>
            <sound template="trailerCloseImpact_01" startTime="1.1"  direction="-1" volumeScale="1.3" pitchScale="0.8" />
            <sound template="cylinderPunch"         startTime="1.1"  direction="-1" volumeScale="1.0" pitchScale="1.0" />
            <sound template="hingeImp"              startTime="1.1"  direction="-1" volumeScale="0.8" pitchScale="0.8" />
            <sound template="vibratingImp"          startTime="1.1"  direction="-1" volumeScale="0.8" pitchScale="1.2" />
            <sound template="hingeImp"              startTime="0.4"  direction="1"  volumeScale="1.4" pitchScale="0.4" />
        </animation>
        <animation name="moveSupport">
            <part endTime="0.05" node="0>0|8" startTime="0" visibility="false"/>
            <part endTime="0.1" node="0>0|8" startTime="0.05" visibility="true"/>
            <part endTime="0.05" node="0>0|2" startTime="0" visibility="true"/>
            <part endTime="0.1" node="0>0|2" startTime="0.05" visibility="false"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|4" startTime="0" startTrans="-0.4 1.6 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|5" startTime="0" startTrans="0.4 1.6 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|6" startTime="0" startTrans="-0.4 1.6 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|7" startTime="0" startTrans="0.4 1.6 0"/>
			<part endTime="0.3" endTrans="0 0.0 0" node="0>0|8|1|0" startTime="0.0" startTrans="-0.382 0.709 0"/><!-- SupportCol -->
            <part endTime="0.3" endTrans="-3.317 0 0" node="0>0|8|1|0|0" startTime="0.0" startTrans="-2.617 0 0"/><!-- SupportCol2-->
			
			
			<sound template="slideOpen"    startTime="0.01" endTime="1"    direction="0"     volumeScale="2" pitchScale="2" />
            <sound template="metalClose"   startTime="0.1"  direction="-1" volumeScale="2"   pitchScale="2" />
            <sound template="hingeImp"     startTime="0.1"  direction="-1" volumeScale="0.6" pitchScale="1.2" />
            <sound template="vibratingImp" startTime="0.1"  direction="-1" volumeScale="0.8" pitchScale="1.2" />
        </animation>
    </animations>

    <cylindered>
        <movingParts>
            <movingPart node="0>0|2|0" referenceFrame="0>0|1|0|0|0|6|0" referencePoint="0>0|1|0|0|0|6|0">
                <translatingPart node="0>0|2|0|0"/>
                <translatingPart node="0>0|2|0|0|0"/>
                <translatingPart node="0>0|2|0|0|0|0"/>
            </movingPart>
            <movingPart node="0>0|2|1" referenceFrame="0>0|1|0|0|0|6|1" referencePoint="0>0|1|0|0|0|6|1">
                <translatingPart node="0>0|2|1|0"/>
                <translatingPart node="0>0|2|1|0|0"/>
                <translatingPart node="0>0|2|1|0|0|0"/>
            </movingPart>
            <movingPart node="0>0|2|2" referenceFrame="0>0|1|0|0|0|6|2" referencePoint="0>0|1|0|0|0|6|2"/>
        </movingParts>
        <movingTools>
            <movingTool node="0>0|1|0">
                <dependentPart node="0>0|2|0"/>
                <dependentPart node="0>0|2|1"/>
                <dependentPart node="0>0|2|2"/>
            </movingTool>
            <movingTool node="0>0|4" wheelIndices="1"/>
            <movingTool node="0>0|5" wheelIndices="2"/>
            <movingTool node="0>0|6" wheelIndices="3"/>
            <movingTool node="0>0|7" wheelIndices="4"/>
        </movingTools>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="28000" fillTypeCategories="SILAGETRAILER" unitTextOverride="$l10n_unit_literShort">
                        <exactFillRootNode node="0>1|0"/>
                        <autoAimTargetNode node="0>1|1" startZ="1.5" endZ="-1.5" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|1|0|0|0|5|0" fillUnitIndex="1" maxDelta="0.12" maxAllowedHeapAngle="15"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>0|1|0|0|0|2|0" width="1.0" length="4.5"/>
            </unloadInfo>
        </unloadInfos>
        <heightNodes>
            <heightNode>
                <refNode node="0>0|1|0|0|0|3|0|0"/>
                <refNode node="0>0|1|0|0|0|3|0|1"/>
                <node node="0>0|1|0|0|0|4|0|0|0"      baseScale="1 1 1" transAxis="0 1 0" orientateToWorldY="true" minHeight="0.25" transMax="0 1.5 0"/>
                <node node="0>0|1|0|0|0|4|0|0|1"     baseScale="1 0.1 1" scaleAxis="0 0.4 0" transAxis="0 0 0"/>
            </heightNode>
        </heightNodes>
    </fillVolume>
	
	<dischargeable>
        <dischargeNode node="0>0|3|0" emptySpeed="2500" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="2.3" length="0.5" zOffset="-1"/>
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|1|0|0|0|4|0|0|1" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="0>0|1|0|0|0|4|0|0|0" materialType="unloading" fadeTime="0.5" extraDistanceNode="0>0|3|0" extraDistance="0.3"/>
                </effectNode>
                <effectNode effectNode="0>0|1|0|0|0|4|0|0|2" materialType="unloadingSmoke" fadeTime="0.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <!--<dischargeable>
        <dischargeNode node="0>0|3|0" emptySpeed="2500" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
			<info length="0.5" width="1.5"/>
            <effects>
                <effectNode effectNode="0>0|1|0|0|0|4|1|0"/>
                <effectNode extraDistance="0.5" extraDistanceNode="0>0|3|0"/>
                <effectNode extraDistance="0.5" extraDistanceNode="0>0|3|0"/>
                <effectNode extraDistance="0.5" extraDistanceNode="0>0|3|0" fadeTime="0.05" materialType="unloading" materialTypeId="1"/>
            </effects>
			<effects>
                <effectNode effectClass="TipEffect" startDelay="3">
                    <effectNode effectNode="0>0|1|0|0|0|4|1|0" materialType="unloadingParticle" effectClass="ParticleEffect" emitCountScale="4"/>
                    <effectNode effectNode="0>0|1|0|0|0|4|0|0"   materialType="unloading" fadeTime="1.5" extraDistanceNode="0>0|3|0" extraDistance="0.5"/>
                </effectNode>
                <effectNode effectNode="0>0|1|0|0|0|4|0|1" materialType="unloadingSmoke" fadeTime="1.5"/>
            </effects>
        </dischargeNode>
        <dischargeableConfigurations>
            <dischargeableConfiguration>
                <dischargeNode>
                    <effects>
                        <effectNode effectNode="0>0|1|0|0|0|4|0|1" effectClass="TipEffect"/>
                    </effects>
                </dischargeNode>
                <dischargeNode>
                    <effects>
                        <effectNode effectNode="0>0|1|0|0|0|4|0|2" materialType="smoke" materialTypeId="1" fadeTime="0.1"/>
                    </effects>
                </dischargeNode>
                <dischargeNode>
                    <effects>
                        <effectNode effectNode="0>0|1|0|0|0|4|1|0" materialType="unloading" materialTypeId="1" fadeTime="0.1"/>
                    </effects>
                </dischargeNode>
                <dischargeNode>
                    <effects>
                        <effectNode materialType="unloading" materialTypeId="1" fadeTime="0.05"/>
                    </effects>
                </dischargeNode>
            </dischargeableConfiguration>
        </dischargeableConfigurations>
    </dischargeable>-->

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationZadni" speedScale="1.0" startTipTime="0.1"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <designConfigurations>
        <designConfiguration name="NastavbaL" price="400">
            <objectChange node="0>0|1|0|0|0|0|0" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>0|1|0|0|0|1" visibilityActive="true" visibilityInactive="true"/>
        </designConfiguration>
        <designConfiguration name="NastavbaP" price="400">
            <objectChange node="0>0|1|0|0|0|0|1" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="0>0|1|0|0|0|1" visibilityActive="true" visibilityInactive="true"/>
        </designConfiguration>
    </designConfigurations>

    <designColorConfigurations title="Pletivo" defaultColorIndex="1" price="50" useDefaultColors="true">
		<material materialSlotName="pletivo_color_mat" />
		<desingColorConfiguration color="0.7 0 0"/>
		<designColorConfiguration color="0.9000 0.0100 0.0050" />
	</designColorConfigurations>
	
	<designColor2Configurations title="Nástavba" price="50" useDefaultColors="true">
		<material materialSlotName="nastavba_color_mat" />
		<desingColor2Configuration color="0.0529 0.0865 0.0242" isDefault="true" />
		<desingColor2Configuration color="0.7 0 0"/>
		<designColor2Configuration color="0.9000 0.0100 0.0050" />
	</designColor2Configurations>
	
	<ai>
        <agentAttachment jointNode="0>" width="2.8" height="3" length="8.25" lengthOffset="-1.95" heightOffset="0.7"/>
    </ai>
	
	<foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-6.1" maxZ="2.1" yOffset="1.35" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    
	<baseColorConfigurations title="$l10n_configuration_baseColor" price="600" useDefaultColors="true">
        <material materialSlotName="base_color_mat" materialTemplateUseColorOnly="true" />
		<baseColorConfiguration color="0.7 0 0"/>
		<baseColorConfiguration color="0.0529 0.0865 0.0242" isDefault="true" />
        <baseColorConfiguration color="0.9000 0.0100 0.0050" price="1600"/>
    </baseColorConfigurations>
    <!--Non converted elements, might require manual conversion or are obsolete:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle>
    <baseColorConfigurations icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration icon="$dataS2/menu/hud/configurations/config_color.png"/>
        <colornode node="0>0|1|0|0|0"/>
        <colornode node="0>0|1|0|0|0|6|2|0"/>
    </baseColorConfigurations>

    <designConfigurations>
        <designConfiguration icon="$dataS2/menu/hud/configurations/config_edition.png"/>
        <designConfiguration icon="$dataS2/menu/hud/configurations/config_edition.png"/>
    </designConfigurations>

    <designColorConfigurations icon="$dataS2/menu/hud/configurations/config_color.png"/>
    <dischargeable>
        <dischargeNode>
            <effects>
                <effectNode effectNode="0>0|1|0|0|0|4|1|0" materialType="unloading" materialTypeId="1" fadeTime="0.05" extraDistanceNode="0>0|3|0" extraDistance="0.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide unloadInfoIndex="1"/>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
</vehicle>
-->
</vehicle>
