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

    <storeData>
        <name>
			<en>HKL26 Hooklift Swap Body</en>
			<de>HKL26 Hakenlift Wechselaufbau</de>
			<fi>HKL26 Koukkulaite Jalkalava</fi>
        </name>
        <specs>
            <combination xmlFilename="xml/lizardspirit.xml"/>
			<combination xmlFilename="xml/hklcontainer.xml"/>
			<combination xmlFilename="$data/vehicles/volvo/fh16/fh16.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_hookLift</function>
        </functions>
        <image>store_LIZARDhkl26.dds</image>
        <price>40000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>misc</category>
       
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_hookLiftTrailer</typeDesc>
        <filename>i3d/hooklift.i3d</filename>
        <size width="2.6" length="8"/>
        <components>
            <component centerOfMass="0 1.09 -1.113" solverIterationCount="10" mass="3000"/>
        </components>
        <schemaOverlay attacherJointPosition="-1 -0.5" name="IMPLEMENT"/>
    </base>
	
   <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>5|1|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">
        <objectChange node="0>5|6" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|2" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|6" translationActive="0 0.713 -6.506"/>
		<objectChange node="0>5|2" translationActive="0 0.4 -8.64"/>
		</inputAttacherJoint>
		<inputAttacherJoint node="0>5|1|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">
        <objectChange node="0>5|6" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|2" visibilityActive="true" visibilityInactive="false"/>
		</inputAttacherJoint>
		<inputAttacherJoint node="0>5|1|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">
        <objectChange node="0>5|6" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|2" visibilityActive="true" visibilityInactive="false"/>
		</inputAttacherJoint>
		<inputAttacherJoint node="0>5|1|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">
		<objectChange node="0>5|6" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|2" visibilityActive="true" visibilityInactive="false"/>
		</inputAttacherJoint>
		<inputAttacherJoint node="0>5|1|2" jointType="MTBJointL" 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>5|6" visibilityActive="true" visibilityInactive="false"/>
		<objectChange node="0>5|2" visibilityActive="true" visibilityInactive="false"/>
		</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.6" />
    </attachable>
	
   <connectionHoses>
		
		<target attacherJointIndices="2" type="airDoubleRed"  node="0>5|2|0|0|0|0"> 
			<objectChange node="0>5|2|0|0|0|1" rotationActive="0 0 0" rotationInactive="-95 0 0"/>
			
		</target>
		 <target attacherJointIndices="2" type="airDoubleYellow" node="0>5|2|0|1|0|0">
			<objectChange node="0>5|2|0|1|0|1" rotationActive="0 0 0" rotationInactive="-95 0 0"/>
			
		</target>
		<target attacherJointIndices="2" type="electric" node="0>5|2|0|2|0|0">
			<objectChange node="0>5|2|0|2|0|1" rotationActive="0 0 0" rotationInactive="-90 0 0"/>
			
		</target>
		<target attacherJointIndices="2" type="electric" node="0>5|2|0|3|0|0">
			<objectChange node="0>5|2|0|3|0|1" rotationActive="0 0 0" rotationInactive="-90 0 0"/>
			
		</target>
		
	</connectionHoses>

    <attacherJoints>
		
		<attacherJoint node="0>2|0|0|0|0|0" jointType="hookLift" lowerRotLimit="0 40 80" upperRotLimit="0 40 80" allowsLowering="false" enableCollision="true">
            <schema position="0.3 0.3" rotation="0" invertX="false"/>
        </attacherJoint>
		
	  <attacherJoint node="0>5|6|0" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" comboTime="0">
                     <distanceToGround lower="0.60" upper="1.19" />
                    <schema position="1.5 0" rotation="0" invertX="false" />
                   
                </attacherJoint>
		
        <sounds>
		        <attach template="attachAirBrake" />
                <detach template="detachAirBrake" />
                
                </sounds>
    </attacherJoints>
	
   <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="-1" dynamicMountMaxLimit="0" turnOnFoldDirection="1">
                    <foldingPart animationName="unfoldHand" speedScale="1.0" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
    <animations>
        <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.245 0" endTrans="0 -0.245 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.245 0" endTrans="0.216 -0.245 0"/>
           
		   <part node="0>3|1|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|1|0|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|1|0"		startTime="0"     endTime="2"    startTrans="-1.08 -0.245 0" endTrans="0 -0.245 0"/>
		   
		   <part node="0>3|1|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|1|1|0"		    startTime="2"     endTime="3"   startRot="0 90 0"   endRot="0 0 0"/>
           <part node="0>3|1|1"		startTime="0"     endTime="2"    startTrans="1.3 -0.245 0" endTrans="0.216 -0.245 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>
        <animation name="unfoldHand">
			<part node="0>2|0|0"		startTime="0"     endTime="2"    startTrans="0 0 1.45" endTrans="0 0 -0.2"/>
			<part node="0>2|0"		startTime="2"     endTime="10"   startRot="0 0 0"   endRot="-110 0 0"/>
			<part node="0>2|0|0|0|0"	startTime="2"     endTime="4.51" startRot="0 0 0"   endRot="20 0 0"/>
			<part node="0>2|0|0|0|0"	startTime="4.51"  endTime="10"   startRot="20 0 0"  endRot="143 0 0"/>
			<part node="0>2|0|0"		startTime="9"     endTime="9.5"    startTrans="0 0 -0.2" endTrans="0 0 0" direction="1"/>
            <part node="0>2|0|0"		startTime="8"     endTime="9"    startTrans="0 0 -0.2" endTrans="0 0 0" direction="-1"/>
            <sound template="clackVar2"     startTime="4.51" direction="0"   volumeScale="1.0" pitchScale="1.7"/>
            <sound template="metalOpen"     startTime="2" direction="0"   volumeScale="2.5" pitchScale="0.4"/>
            <sound template="metalOpen"     startTime="2" direction="1"   volumeScale="2.0" pitchScale="0.8"/>
            <sound template="metalClose"    startTime="5"    direction="1"   volumeScale="3.0" pitchScale="0.3"/>
            <sound template="metalOpen"     startTime="5"    direction="-1"  volumeScale="2.5" pitchScale="0.5"/>
            <sound template="metalClose"    startTime="5"  direction="-1"  volumeScale="2.0" pitchScale="1.1"/>
			<sound template="metalLowVar2"  startTime="0.1"  direction="-1"  volumeScale="4.0" pitchScale="0.9"/>
            <sound template="clackVar2"     startTime="2"    direction="-1"  volumeScale="1.5" pitchScale="0.5"/>
            <sound template="cylinderPunch" startTime="0.1"  direction="0"/>
            <sound template="clackVar6"     startTime="9.99" direction="-1"  volumeScale="0.7" pitchScale="0.3"/>
            <sound template="metalOpen"     startTime="0.7"  direction="1"   volumeScale="3.5" pitchScale="0.6"/>
            <sound template="metalLowVar2"  startTime="9.99" direction="1"   volumeScale="4.0" pitchScale="0.9"/>
            <sound template="metalOpen"     startTime="9.99" direction="1"   volumeScale="1.5" pitchScale="0.4"/>
            <sound template="cylinderPunch" startTime="9.99" direction="1"/>
           
        </animation>
        <animation name="unloading">
			<part node="0>2" startTime="0" endTime="10"  startRot="0 0 0"  endRot="-35 0 0"/>
        </animation>
    </animations>

   <hookLiftTrailer>
        <jointLimits refAnimation="unfoldHand">
            <key time="0" rotLimit="0 0 180"/>
            <key time="0.15" rotLimit="0 40 180"/>
            <key time="0.25" rotLimit="0 40 180"/>
            <key time="0.60" rotLimit="0 40 180"/>
            <key time="1" rotLimit="0 40 180"/>
        </jointLimits>
        <unloadingAnimation name="unloading" speed="1" reverseSpeed="-2"/>
        <texts unloadContainer="load_container" loadContainer="unload_container" unloadArm="load_arm" loadArm="unload_arm"/>
    </hookLiftTrailer>

    <cylindered>
        <movingParts>
            <movingPart node="0>4|0" referencePoint="0>2|0|1" referenceFrame="0>">
            <translatingPart node="0>4|0|0"/>
            </movingPart>  
            
        </movingParts>
        <movingTools>
		
		    <movingTool node="0>2|0" playSound="true" foldMinLimit="1" foldMaxLimit="1">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="0.5" iconName="CRANE_ARM1_ROTATE_X"/>
                <rotation rotSpeed="8.1" rotAcceleration="90" rotMax="-110" rotMin="-140" rotationAxis="1"/>
                <dependentPart node="0>4|0"/>
                <attacherJoint jointIndices="1"/>
            </movingTool>
		
            <movingTool node="0>2" playSound="true">
                <attacherJoint jointIndices="1"/>
                <dependentPart node="0>4|0"/>
            </movingTool>
			
			<movingTool node="0>5|6" playSound="true">
                <attacherJoint jointIndices="2"/>
                
            </movingTool>
            
            <movingTool node="0>2|0|0" playSound="true">
                <attacherJoint jointIndices="1"/>
            </movingTool>
			
            <movingTool node="0>2|0|0|0" playSound="true">
                <attacherJoint jointIndices="1"/>
            </movingTool>
			
            <movingTool node="0>5|1" playSound="true">
                <attacherJoint jointIndices="1"/>
            </movingTool>
        </movingTools>
		
        <sounds>
            <hydraulic template="hydraulicOpen02"/>
           
            
        </sounds>	

		
    </cylindered>
	
	 <lights>
		<!-- takavalot -->
		
		<sharedLight linkNode="0>7|0|0" lightTypes="2" filename="$data/shared/assets/lights/hella/hellaWorkingLight06.xml" >
            <rotationNode name="rotationNode1" rotation="-70 0 0"/>
			</sharedLight>
        <sharedLight linkNode="0>7|0|1" lightTypes="2" filename="$data/shared/assets/lights/hella/hellaWorkingLight06.xml" >
            <rotationNode name="rotationNode1" rotation="-70 0 0"/>
			</sharedLight>
	    <sharedLight linkNode="0>7|0|2" lightTypes="2" filename="$data/shared/assets/lights/hella/hellaWorkingLight06.xml" >
            <rotationNode name="rotationNode1" rotation="-70 0 0"/>
			</sharedLight>
	    <sharedLight linkNode="0>7|0|3" 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>
            <light node="0>7|0|4"          lightTypes="2" />
			<light node="0>7|0|5"          lightTypes="2" />
            </high>
        </realLights>
       <beaconLights>
             <beaconLight realLight="0>7|1|3" realLightRange ="2">
			<staticLight node="0>7|1|0" intensity="6" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="15" maxDistance="15" maxIntensity="40"/>
            </staticLight>
            <staticLight node="0>7|1|1" intensity="1" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="10" maxDistance="15" maxIntensity="20"/>
            </staticLight>
            <staticLight node="0>7|1|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>7|2|3" realLightRange ="2">
			<staticLight node="0>7|2|0" intensity="6" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="15" maxDistance="15" maxIntensity="40"/>
            </staticLight>
            <staticLight node="0>7|2|1" intensity="1" multiBlink="true" multiBlinkParameters="3 3 60 0">
                <intensityScale minDistance="3" minIntensity="10" maxDistance="15" maxIntensity="20"/>
            </staticLight>
            <staticLight node="0>7|2|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>
	
   <ai supportsAIJobs="false">
    <agentAttachment/>
    </ai>

  
<designColorConfigurations useDefaultColors="true" defaultColorIndex="12" title="$l10n_configuration_chassisColor">
        

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

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

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

</vehicle>
