﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implementDynamicMountAttacher" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_frontloaderPalletFork</name>
        <specs>
            <combination filterCategory="skidSteerVehicles"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>$data/vehicles/paladin/palletFork/store_palletFork.png</image>
        <price>800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PALADIN</brand>
        <category>skidSteerTools</category>
        <shopTranslationOffset>0 -0.005 0</shopTranslationOffset>
        <shopRotationOffset>0.726 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>80640</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>12800</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>$data/vehicles/paladin/palletFork/palletFork.i3d</filename>
        <size width="1.7" length="1.6" lengthOffset="0.15"/>
        <supportsPickUp>false</supportsPickUp>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="skidSteer" />
        </inputAttacherJoints>
    </attachable>

    <cylindered>
        <movingTools>
            <movingTool node="forkLeft">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X" />
                <dependentMovingTool node="forkRight" speedScale="-1"/>
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="-0.1" transMax="0.220"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="-0.220" transMax="0.1"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.6" volumeScale="2" linkNode="forkLeft" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG " nodes="forkLeft"/>
            <actionSound template="clackVar6"   pitchScale="1"   volumeScale="1" linkNode="forkLeft" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="forkLeft"/>
            <actionSound template="clackVar6"   pitchScale="0.8" volumeScale="1" linkNode="forkLeft" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="forkLeft"/>
        </sounds>
    </cylindered>

    <dynamicMountAttacher node="jointNode">
        <mountCollisionMask node="forkLeftColBack" collisionMask="134225920" />
        <mountCollisionMask node="forkRightColBack" collisionMask="134225920" />
    </dynamicMountAttacher>

    <ai>
        <agentAttachment width="1.3" height="1.0" length="1.4" lengthOffset="0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.6" maxX="0.6" minZ="-0.55" maxZ="-0.3" yOffset="0.025" />
        <bendingNode minX="-0.08" maxX="0.08" minZ="-0.4" maxZ="0.8" yOffset="0.015" node="forkLeftColBack" />
        <bendingNode minX="-0.08" maxX="0.08" minZ="-0.4" maxZ="0.8" yOffset="0.015" node="forkRightColBack" />
    </foliageBending>

    <baseMaterial>
        <material name="palletFork_mat" baseNode="paladinPalletFork_vis">
            <shaderParameter name="colorMat0" value="PALADIN_GREY"/>
        </material>
        <material name="palletForkTransparent_alpha_mat" baseNode="alphaPart">
            <shaderParameter name="colorMat0" value="PALADIN_GREY"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations useDefaultColors="false">
        <baseMaterialConfiguration name="$l10n_ui_colorGrey" color="PALADIN_GREY"/>
        <baseMaterialConfiguration name="$l10n_ui_colorRed" color="PALADIN_RED" price="100"/>
        <material name="palletFork_mat" shaderParameter="colorMat0" />
        <material name="palletForkTransparent_alpha_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="paladinPalletFork_main_component1" node="0>" />
        <i3dMapping id="paladinPalletFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="jointNode" node="0>0|1" />
        <i3dMapping id="forkLeft" node="0>0|2|0|0" />
        <i3dMapping id="forkRightColBack" node="0>0|2|0|0|0" />
        <i3dMapping id="forkRight" node="0>0|2|1|0" />
        <i3dMapping id="forkLeftColBack" node="0>0|2|1|0|0" />
        <i3dMapping id="alphaPart" node="0>0|3" />
    </i3dMappings>
</vehicle>
