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

    <storeData>
        <name><en>Front Hydraulic</en>
        <de>Fronthydraulik</de></name>
        <functions>
            <function>$l10n_function_attachable_hydraulics</function>
        </functions>
        <rotation>0</rotation>
        <image>store/store_Fronthydraulik.dds</image>
        <price>1500</price>
        <lifetime>600</lifetime>
        <brand>BAAS</brand>
        <category>misc</category>
        <shopHeight>1</shopHeight>        
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_weight</typeDesc>
        <filename>i3d/Fronthydraulik.i3d</filename>
        <size width="1.2" length="0.8" height="0.8" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="150" />
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
    </base>
    
    <attachable>
        <inputAttacherJoints>
                <inputAttacherJoint node="attacherJoint" jointType="K_GR_3" hardAttach="true" lowerRotationOffset="0" lowerRotLimitScale="0 0 0" needsLowering="false" upperRotationOffset="3">
                    <distanceToGround lower="0" upper="1.5"/>
                    <objectChange node="0>1" visibilityActive="false" visibilityInactive="true" translationActive="0 0.412 -0.108" translationInactive="0 -0.04 -0.224"  rotationActive="-40 0 0" rotationInactive="0 0 0"/>
                    <objectChange node="0>0|4" visibilityActive="true" visibilityInactive="false"/>
                </inputAttacherJoint>
            </inputAttacherJoints>
    </attachable>
    
    
    <attacherJoints comboDuration="2">
         <attacherJoint node="attacherJointFront" upperRotationOffset="-0.16" moveTime="2.81" comboTime="1">
            <distanceToGround lower="0.247" upper="0.80"/>
            <rotationNode node="attacherJointFrontRot" upperRotation="-45 0 0" lowerRotation="23 0 0"/>
            <rotationNode2 node="attacherJointFrontRot2"/>
            <bottomArm rotationNode="attacherJointFrontArmBottom" translationNode="attacherJointFrontArmBottomLink" referenceNode="referencePointFrontBottom" zScale="1" categoryRange="2" defaultCategory="2" ballVisibility="false"/>
            <topArm baseNode="attacherJointFrontArmTop" filename="$data/shared/assets/upperLinks/walterscheidSO_65_560.xml" zScale="-1" materialTemplateName="SHARED_BLACK1" />
            <objectChange node="attacherJointFrontArmTop" visibilityActive="true" visibilityInactive="false"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach template="attach01" linkNode="0>"/>
        </sounds>
    </attacherJoints>

    <powerTakeOffs>
        <output attacherJointIndices="1" skipToInputAttacherIndex="1"/>
    </powerTakeOffs>
    
    <connectionHoses>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="rightPipe_frontConnector" type="TOOL_CONNECTOR_TOP_RIGHT" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="bottomPipe01_frontConnector" type="TOOL_CONNECTOR_BOTTOM_01" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="bottomPipe02_frontConnector" type="TOOL_CONNECTOR_BOTTOM_02" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="bottomPipe03_frontConnector" type="TOOL_CONNECTOR_BOTTOM_03" length="1" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="bottomPipe04_frontConnector" type="TOOL_CONNECTOR_BOTTOM_04" length="0.001" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="hydraulic05In" type="hydraulicIn" length="0" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="hydraulic05Out" type="hydraulicOut" length="0" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="hydraulic06In" type="hydraulicIn" length="0" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="hydraulic06Out" type="hydraulicOut" length="0" isTwoPointHose="true"/>
        <skipNode attacherJointIndex="1" inputAttacherJointIndex="1" node="electricFront" type="electric" length="0" isTwoPointHose="true"/>
    </connectionHoses>
    
    <cylindered>
        

        <movingParts>
             <movingPart node="attcherFrontCylinder" referencePoint="attcherFrontCylinder_ref" referenceFrame="refFrame1" isActiveDirty="true" maxUpdateDistance="150" playSound="false">
                <translatingPart node="attacherFrontCylinder1Punch"/>
            </movingPart>
            <movingPart node="hoseTop" referencePoint="fixPoint1_hosetop" referenceFrame="refFrame2_hose" isActiveDirty="true" maxUpdateDistance="150" scaleZ="true" playSound="false"/>
            <movingPart node="hoseBottom" referencePoint="fixPoint2_hosebottom" referenceFrame="refFrame3_hose" isActiveDirty="true" maxUpdateDistance="150" scaleZ="true" playSound="false"/>
        </movingParts>
        
    </cylindered>
    
    <tensionBeltObject>
        <meshNodes>
            <meshNode node="tensionBeltMesh"/>
        </meshNodes>
    </tensionBeltObject>
    
    <dynamicMount triggerNode="dynamicMountTrigger" triggerForceAcceleration="6" additionalMountDistance="0.55" jointTransY="0.06" jointLimitToRotY="true"/>

    <foliageBending>
        <bendingNode minX="-0.5" maxX="0.5" minZ="-0.5" maxZ="0.3" yOffset="0.1" />
    </foliageBending>
    
    <interactiveControl>
         <interactiveControlConfigurations title="$l10n_actionIC_Animation">
            <interactiveControlConfiguration name="$l10n_actionIC_IC">
                <interactiveControls>
                <outdoorTrigger node="0>0|11" />
                    <interactiveControl posText="$l10n_actionIC_ATTACH" negText="$l10n_actionIC_DETACH">
                        <clickPoint node="0>0|10"  size="0.05"  type="OUTDOOR" iconType="ATTACHERJOINT"/>
                        <function name="ATTACHERJOINTS_ATTACH_DETACH"> 
                            <attacherJoint indices="1"/>
                        </function>
                    </interactiveControl>
                </interactiveControls>
            </interactiveControlConfiguration>
            </interactiveControlConfigurations>
    </interactiveControl>
    
    <ai>
        <agentAttachment width="0.85" height="1.0" length="0.6" lengthOffset="-0.1"/>
    </ai>
    
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="dynamicMountTrigger" node="0>1|2" />
        <i3dMapping id="tensionBeltMesh" node="0>1|0" />
        <i3dMapping id="attacherJoint" node="0>0|7" />
        <i3dMapping id="attacherJointFront" node="0>0|0|0|0" />
        <i3dMapping id="attacherJointFrontRot" node="0>0|0" />
        <i3dMapping id="attacherJointFrontRot2" node="0>0|0|0" />
        <i3dMapping id="attacherJointFrontArmBottom" node="0>0|1" />
        <i3dMapping id="attacherJointFrontArmBottomLink" node="0>0|1|0" />
        <i3dMapping id="referencePointFrontBottom" node="0>0|1|0|0" />
        <i3dMapping id="attacherJointFrontArmTop" node="0>0|2" />
        <i3dMapping id="attcherFrontCylinder" node="0>0|3" />
        <i3dMapping id="attacherFrontCylinder1Punch" node="0>0|3|0" />
        <i3dMapping id="attcherFrontCylinder_ref" node="0>0|1|0|1" />
        <i3dMapping id="refFrame1" node="0>0|9|12" />
        <i3dMapping id="hoseTop" node="0>0|5" />
        <i3dMapping id="hoseBottom" node="0>0|6" />
        <i3dMapping id="fixPoint2_hosebottom" node="0>0|3|3" />
        <i3dMapping id="fixPoint1_hosetop" node="0>0|3|2" />
        <i3dMapping id="refFrame3_hose" node="0>0|9|13" />
        <i3dMapping id="refFrame2_hose" node="0>0|9|14" />
        <i3dMapping id="electricFront" node="0>0|9|0|0" />
        <i3dMapping id="electricFrontCover" node="0>0|9|0|1" />
        <i3dMapping id="hydraulic05In" node="0>0|9|1|0" />
        <i3dMapping id="hydraulic05InCover" node="0>0|9|1|1" />
        <i3dMapping id="hydraulic05Out" node="0>0|9|2|0" />
        <i3dMapping id="hydraulic05OutCover" node="0>0|9|2|1" />
        <i3dMapping id="hydraulic06In" node="0>0|9|3|0" />
        <i3dMapping id="hydraulic06InCover" node="0>0|9|3|1" />
        <i3dMapping id="hydraulic06Out" node="0>0|9|4|0" />
        <i3dMapping id="hydraulic06OutCover" node="0>0|9|4|1" />
        <i3dMapping id="ptoFront" node="0>0|8" />
        <i3dMapping id="rightPipe_frontConnector" node="0>0|9|7" />
        <i3dMapping id="bottomPipe01_frontConnector" node="0>0|9|8" />
        <i3dMapping id="bottomPipe02_frontConnector" node="0>0|9|9" />
        <i3dMapping id="bottomPipe03_frontConnector" node="0>0|9|10" />
        <i3dMapping id="bottomPipe04_frontConnector" node="0>0|9|11" />
    </i3dMappings>

</vehicle>
