<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="baseTipper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">

    <storeData>
        <name>
			<en>Tipper Swap Body</en>
			<de>Kipper Wechselaufbau</de>
			<fi>Sora Jalkalava</fi>
        </name>
        <specs>
            <combination xmlFilename="xml/lizardspirit.xml"/>
			<combination xmlFilename="xml/kasetti.xml"/>
			<combination xmlFilename="$data/vehicles/volvo/fh16/fh16.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store_kasettilava.dds</image>
        <price>30000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>misc</category>
       <shopTranslationOffset>0 0.251 2.5</shopTranslationOffset>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>i3d/kasettilava.i3d</filename>
        <size width="2.6" length="8" height="3"/>
        <components>
            <component centerOfMass="0 -2.588 -0.96" solverIterationCount="10" mass="3000"/>
			<component centerOfMass="0 0 0.244" solverIterationCount="10" mass="20"/>
			<joint component1="1" component2="2" node="0>5|2" rotLimit="45 0 0" transLimit="0 0 0" rotLimitSpring="20.0 0 0" rotLimitDamping="40.0 0 0" enableCollision="false"/>
        </components>
        <schemaOverlay attacherJointPosition="-1 -0.5" name="IMPLEMENT"/>
    </base>
	
   <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>5|0|0" jointType="semitrailer" upperRotationOffset="0" enableCollision="true" fixedRotation="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        
		<inputAttacherJoint node="0>5|0|1" jointType="82JointX3" upperRotationOffset="0" enableCollision="true" fixedRotation="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        
		<inputAttacherJoint node="0>5|0|1" jointType="82JointTipperX2" upperRotationOffset="0" enableCollision="true" fixedRotation="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        
		<inputAttacherJoint node="0>5|0|1" jointType="82JointWreckIT" upperRotationOffset="0" enableCollision="true" fixedRotation="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
		
		<inputAttacherJoint node="0>5|0|2" jointType="MTBJoint" upperRotationOffset="0" enableCollision="true" fixedRotation="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0">
		<objectChange node="0>3|0" visibilityActive="false" visibilityInactive="true"/>
		<objectChange node="0>0|0" visibilityActive="false" visibilityInactive="true"/>
		<objectChange node="0>0|1" visibilityActive="true" visibilityInactive="false"/>
		</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.6" />
    </attachable>
	
   	<connectionHoses>
		
		<target attacherJointIndices="1" type="airDoubleRed"  node="0>4|1|0|0|0|0"> 
			<objectChange node="0>4|1|0|0|0|1" rotationActive="0 0 0" rotationInactive="-95 0 0"/>
			
		</target>
		 <target attacherJointIndices="1" type="airDoubleYellow" node="0>4|1|0|1|0|0">
			<objectChange node="0>4|1|0|1|0|1" rotationActive="0 0 0" rotationInactive="-95 0 0"/>
			
		</target>
		<target attacherJointIndices="1" type="electric" node="0>4|1|0|2|0|0">
			<objectChange node="0>4|1|0|2|0|1" rotationActive="0 0 0" rotationInactive="-90 0 0"/>
			
		</target>
		<target attacherJointIndices="1" type="electric" node="0>4|1|0|3|0|0">
			<objectChange node="0>4|1|0|3|0|1" rotationActive="0 0 0" rotationInactive="-90 0 0"/>
			
		</target>
		 <target attacherJointIndices="1" type="hydraulicIn" node="0>4|1|0|4|0">
			
			<objectChange node="0>4|1|0|4|1" visibilityActive="false" visibilityInactive="true"/>
		
		</target>
		<target attacherJointIndices="1" type="hydraulicOut" node="0>4|1|0|5|0">
			
			<objectChange node="0>4|1|0|5|1" visibilityActive="false" visibilityInactive="true"/>
		
		</target>
	</connectionHoses>

  
    <attacherJoints>
       
    
		<attacherJoint node="0>4|0|0" jointType="trailer" lowerRotLimit="30 90 100" allowsLowering="false" upperRotRotationOffset="0" allowsJointLimitMovement="false">
            <distanceToGround lower="0.57" upper="1.03" />
            <schema position="1.5 0" rotation="0" invertX="false" />
			
        </attacherJoint>
		
		<attacherJoint node="0>1|0|2|0" jointType="MTBkas">
           
		   <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
		<sounds>
		        <attach template="attachAirBrake" />
                <detach template="detachAirBrake" />
                
                </sounds>
	</attacherJoints>
	
   <foldable>
		<foldingConfigurations>
			<foldingConfiguration>
				<foldingParts startMoveDirection="0" posDirectionText="casset out" negDirectionText="casset in">
					<foldingPart animationName="kasetointi" speedScale="1"/>
					
				</foldingParts>
			</foldingConfiguration>
		</foldingConfigurations>
	</foldable> 
	
    <animations>
		<animation name="kippaus">
			<part node="0>1|0"        startTime="0.8" endTime="12"  startRot="90 0 0" endRot="40 0 0" />
					<part node="0>1|0|0"            startTime="0.6" endTime="6"   startRot="0 0 0" endRot="90 0 0" direction="1" />	
			<attacherJoint jointIndices="1 2"/>
			<part node="0>1|0|4" startTime="0.6" endTime="9.0" startRot="-90 0 0" endRot="-55 0 0" />
			<sound template="hydraulicOpen02" startTime="0.8" endTime="12" volumeScale="1.0" pitchScale="0.7"/>
			 <sound template="clackVar6"      startTime="12" direction="1" volumeScale="1.2" pitchScale="0.6"/>
			 <sound template="clackVar6"      startTime="6" direction="1" volumeScale="1.2" pitchScale="0.6"/>
			 <sound template="clackVar6"      startTime="0.6" direction="-1" volumeScale="1.2" pitchScale="0.6"/>
			 <sound template="clackVar6"      startTime="0.8" direction="-1" volumeScale="1.2" pitchScale="0.6"/>
		</animation>
		<animation name="kasetointi">
			<part endTime="6" endTrans="0 6.745 -1.297" node="0>1|0|2" startTime="0" startTrans="0 -1.771 -1.297"/>
			<sound template="hydraulicOpen02" startTime="0.8" endTime="12" volumeScale="1.0" pitchScale="0.7"/>
			 <sound template="clackVar6"             startTime="5.99" direction="1"  volumeScale="1.2" pitchScale="0.6"/>
			 <sound template="hingeMedium"           startTime="3"   volumeScale="2"   pitchScale="0.3"/>
			<attacherJoint jointIndices="1 2"/>
        </animation>
		
		<animation name="plauta">
			
			<part node="0>1|0|0"            startTime="0.6" endTime="6"   startRot="0 0 0" endRot="-90 0 0" />			
			<sound template="clackVar6"      startTime="0.6" direction="-1" volumeScale="1.2" pitchScale="0.6"/>
			<sound template="clackVar6"      startTime="6" direction="1" volumeScale="1.2" pitchScale="0.6"/>
		</animation>
		
		<animation name="moveSupport">
           <part node="0>3|0|0|0|0"		startTime="3.5"     endTime="4"    startTrans="0.003 0.045 0.874" endTrans="0.003 0.045 1.25"/>
		   <part node="0>3|0|0|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|0|0"		startTime="0"     endTime="2"    startTrans="-1.08 0 0" endTrans="0 0 0"/>
		   
		   <part node="0>3|0|1|0|0"		startTime="3.5"     endTime="4"    startTrans="0.003 0.045 0.874" endTrans="0.003 0.045 1.25"/>
		   <part node="0>3|0|1|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|0|1"		startTime="0"     endTime="2"    startTrans="1.3 0 0" endTrans="0.216 0 0"/>
           
		   <part node="0>3|0|2|0|0"		startTime="3.5"     endTime="4"    startTrans="0.003 0.045 0.874" endTrans="0.003 0.045 1.25"/>
		   <part node="0>3|0|2|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|0|2"		startTime="0"     endTime="2"    startTrans="-1.08 -5.683 0" endTrans="0 -5.683 0"/>
		   
		   <part node="0>3|0|3|0|0"		startTime="3.5"     endTime="4"    startTrans="0.003 0.045 0.874" endTrans="0.003 0.045 1.25"/>
		   <part node="0>3|0|3|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|0|3"		startTime="0"     endTime="2"    startTrans="1.3 -5.683 0" endTrans="0.216 -5.683 0"/>
		   
            <sound template="clackVar6"      startTime="1.9" direction="-1" volumeScale="1.2" pitchScale="0.6"/>
			<sound template="clackVar6"      startTime="3.9" direction="-1" volumeScale="1.2" pitchScale="0.6"/>
			
           
        </animation>
		
    </animations>				

   

    <cylindered>	
	    <movingTools>
	      
		 <movingTool node="0>1|0" playSound="true">
                <attacherJoint jointIndices="2"/>
                <dependentPart node="0>2"/>
				
            </movingTool>
			
			 <movingTool node="0>1|0|2">
				<attacherJoint jointIndices="2"/>
            </movingTool>
			
			<movingTool node="0>1|0|0"  playSound="true">
               <controls axis="AXIS_CRANE_ARM2" invertAxis="false" mouseSpeedFactor="0.5" iconName="plauta"/>
                <rotation rotSpeed="30" rotAcceleration="100" rotMax="90" rotMin="0" startRot="0" rotationAxis="1"/>
				<dependentPart node="0>1|0|6"/>
			</movingTool>	
			
			</movingTools>
		<movingParts>	
            <movingPart node="0>2" referencePoint="0>1|0|5" referenceFrame="0>">
            <translatingPart node="0>2|0"/>
            </movingPart>  
			
		
		
		
            <movingPart node="0>1|0|6" referencePoint="0>1|0|0|0" referenceFrame="0>1|0">
                        <translatingPart node="0>1|0|6|0"/>
            </movingPart>  
			
		</movingParts>
		
		 <sounds>
			<hydraulic template="hydraulicOpen02" linkNode="0>"/>
        </sounds>
	</cylindered>
	
	 <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits allowFoldingWhileFilled="false" foldMaxLimit="0" foldMinLimit="0" >
                
					<fillUnit  shopDisplayUnit="CUBICMETER" fillTypeCategories="bulk" capacity="24000" allowAILoading="true" foldMaxLimit="0" foldMinLimit="0"  >
					    
						<exactFillRootNode node="0>1|0|3|0" />
						<autoAimTargetNode node="0>1|0|3|2" startZ="2.2" endZ="-4.0" invert="false" fillUnitIndex="1" startPercentage="25"/>
					</fillUnit>
					
				</fillUnits>
	
            </fillUnitConfiguration>
			
        </fillUnitConfigurations>
    </fillUnit>
	
	<fillVolume>
		<fillVolumeConfigurations>
			<fillVolumeConfiguration>
				<volumes>
					<volume node="0>1|0|3|1" maxDelta="0.12" maxAllowedHeapAngle="15" fillUnitIndex="1" />
				</volumes>
			</fillVolumeConfiguration>
		</fillVolumeConfigurations>

		<unloadInfos>
			<unloadInfo>
				<node node="0>1|0|3|3" width="1.0" length="6" />
			</unloadInfo>            
		</unloadInfos>

		<heightNodes>
			<heightNode>
				<refNode node="0>1|0|3|4" />
				<refNode node="0>1|0|3|5" />
				<node node="0>1|0|4" baseScale="1 1 1"    transAxis="0 0 0" transMax="0 0.5 0" alignToWorldY="true" />
			</heightNode>             
		</heightNodes>
	</fillVolume>

	<trailer>
		<trailerConfigurations>
			<trailerConfiguration>
				<trailer>
					<tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1" unloadInfoIndex="1">
						<animation name="kippaus" speedScale="1.0" startTipTime="0.3" />
					</tipSide>                    
				</trailer>
			</trailerConfiguration>
		</trailerConfigurations>
	</trailer>

	<dischargeable requiresTipOcclusionArea="false">>
		<dischargeNode node="0>5|1" emptySpeed="2800" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
			<info width="2.4" length="0.5" zOffset="0.5"/>
			<effects>
				<effectNode effectClass="TipEffect">
					<effectNode effectNode="0>1|0|4|2|0" effectClass="ParticleEffect" materialType="unloadingParticle"/>
					<effectNode effectNode="0>1|0|4|1" materialType="unloading" fadeTime="0.5" extraDistanceNode="0>5|1" extraDistance="1.5" alignXAxisToWorldY="true" />
				</effectNode>
				<effectNode effectNode="0>1|0|4|0" materialType="unloadingSmoke" fadeTime="0.5" />
			</effects>
		</dischargeNode>        
	</dischargeable>
	
	<licensePlates>
        <licensePlate node="0>5|3"  position="BACK"  preferedType="ELONGATED" placementArea="0.07 0.27 0.17 0.27"/>
    </licensePlates>
	
	 <lights>
	
		<sharedLight linkNode="0>6|3" lightTypes="0" filename="$data/shared/assets/lights/lizard/rearLight79_left.xml" />
		<sharedLight linkNode="0>6|4" lightTypes="0" filename="$data/shared/assets/lights/lizard/rearLight79_right.xml" />
		
		<sharedLight linkNode="0>6|5" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker05_left.xml"/>
		<sharedLight linkNode="0>6|6" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker05_right.xml"/>
		<sharedLight linkNode="0>6|7" lightTypes="0" filename="$data/shared/assets/lights/lizard/plateNumberLight03.xml"/>
		
		<sharedLight linkNode="0>1|0|7|0|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="0>1|0|7|1|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
		<sharedLight linkNode="0>1|0|7|2|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="0>1|0|7|3|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
		<sharedLight linkNode="0>1|0|7|4|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="0>1|0|7|5|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
		<sharedLight linkNode="0>1|0|7|6|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="0>1|0|7|7|0" lightTypes="0" filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
		
		
		<sharedLight linkNode="0>6|9|1" lightTypes="2" filename="$data/shared/assets/lights/hella/hellaWorkingLight06.xml" >
            <rotationNode name="rotationNode1" rotation="-70 0 0"/>
			</sharedLight>
        <sharedLight linkNode="0>6|9|2" lightTypes="2" filename="$data/shared/assets/lights/hella/hellaWorkingLight06.xml" >
            <rotationNode name="rotationNode1" rotation="-70 0 0"/>
			</sharedLight>
		
        <states>
            <state lightTypes="0" />
			
        </states>

        <realLights>
            <low>
               
            </low>
            <high>               
                <turnLightLeft node="0>6|1|0" />
                <turnLightRight node="0>6|1|1" />
                <light node="0>6|0|0"       lightTypes="0"/>
				<light node="0>6|8"       lightTypes="0"/>
				<brakeLight node="0>6|0|0" />
				<light node="0>6|9|0"          lightTypes="2"/>
				<reverseLight node="0>6|2|0"/>            
            </high>
        </realLights>
		
		<beaconLights>
            <beaconLight realLight="0>6|10|0|3" realLightRange ="2">
			<staticLight node="0>6|10|0|0" intensity="6" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="15" maxDistance="15" maxIntensity="40"/>
            </staticLight>
            <staticLight node="0>6|10|0|1" intensity="1" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="10" maxDistance="15" maxIntensity="20"/>
            </staticLight>
            <staticLight node="0>6|10|0|2" intensity="50" multiBlink="true" multiBlinkParameters="3 3 60 0" minDistance="10">
                <intensityScale minDistance="10" minIntensity="50" maxDistance="30" maxIntensity="500"/>
            </staticLight>			
           
            <device mode="DOUBLE_BLINK_TRIPLE_WAIT" rpm="100" numLEDScale="1" brightnessScale="1" />
			</beaconLight>
			
			<beaconLight realLight="0>6|11|0|3" realLightRange ="2">
			<staticLight node="0>6|11|0|0" intensity="6" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="15" maxDistance="15" maxIntensity="40"/>
            </staticLight>
            <staticLight node="0>6|11|0|1" intensity="1" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="10" maxDistance="15" maxIntensity="20"/>
            </staticLight>
            <staticLight node="0>6|11|0|2" intensity="50" multiBlink="true" multiBlinkParameters="3 3 60 0" minDistance="10">
                <intensityScale minDistance="10" minIntensity="50" maxDistance="30" maxIntensity="500"/>
            </staticLight>			
            
            <device mode="DOUBLE_BLINK_TRIPLE_WAIT" rpm="100" numLEDScale="1" brightnessScale="1" />
			</beaconLight>
        </beaconLights>
		
    </lights>
	
	<designColorConfigurations useDefaultColors="true" defaultColorIndex="12" title="$l10n_configuration_chassisColor">
        

        <material materialSlotName="lava"/>
        
    </designColorConfigurations>

    <designColor2Configurations useDefaultColors="true" defaultColorIndex="5" title="$l10n_configuration_designColor">
        

        <material materialSlotName="runko"/>
        
    </designColor2Configurations>

    
	
	
    <ai supportsAIJobs="false">
    <agentAttachment/>
    </ai>

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

</vehicle>
