﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="logGrab" 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_wheelLoaderLogFork</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderLogFork</function>
        </functions>
        <image>$data/vehicles/magsi/wheelLoaderLogFork/store_magsiWheelLoaderLogFork.png</image>
        <price>5500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAGSI</brand>
        <category>wheelLoaderTools</category>
        <shopHeight>2.5</shopHeight>
        <vertexBufferMemoryUsage>187648</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>35328</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_wheelLoaderTool</typeDesc>
        <filename>$data/vehicles/magsi/wheelLoaderLogFork/wheelLoaderLogFork.i3d</filename>
        <size width="3" length="2.5"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="500" />
            <component solverIterationCount="10" mass="350" />
            <joint component1="1" component2="2" node="grabJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="500 0 0" rotLimitDamping="60 0 0" rotLimitForceLimit="80 -1 -1" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader" />
        </inputAttacherJoints>
    </attachable>

    <logGrab jointNode="0>" jointRoot="0>">
        <trigger node="dynamicMountTrigger" />
        <grab componentJoint="1" axis="3" rotationOffsetThreshold="10" rotationOffsetTime="1000"/>
    </logGrab>

    <cylindered>
        <movingTools>
            <movingTool node="grabJoint" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.25" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="45" rotAcceleration="250" rotMax="0" rotMin="-125" />
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="grab" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabRef" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="100">
                <dependentPart node="hydraulicGrab" />
            </movingPart>
            <movingPart node="hydraulicGrab" referencePoint="hydraulicGrabRef" referenceFrame="hydraulicGrabRefFrame" >
                <translatingPart node="hydraulicGrabPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.6" volumeScale="2"   linkNode="grabJoint" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"  nodes="grabJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.9" volumeScale="1.4" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="grabJoint"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.5" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="grabJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.6" volumeScale="1.7" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="grabJoint"/>
            <actionSound template="sheetImp02"            pitchScale="0.8" volumeScale="2"   linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="grabJoint"/>
        </sounds>
    </cylindered>

    <ai>
        <agentAttachment width="1.8" height="1.8" length="1.8" lengthOffset="0.15"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1" maxX="1" minZ="-0.55" maxZ="-0.1" yOffset="0.03" />
    </foliageBending>

    <baseMaterial>
        <material name="wheelLoaderLogFork_mat" baseNode="wheelLoaderLogFork_vis">
            <shaderParameter name="colorMat0" value="MAGSI_BLACK1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="wheelLoaderLogFork_main_component1" node="0>" />
        <i3dMapping id="wheelLoaderLogFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="grabJoint" node="0>0|1" />
        <i3dMapping id="grab" node="0>0|2" />
        <i3dMapping id="hydraulicGrabRef" node="0>0|2|0" />
        <i3dMapping id="hydraulicGrab" node="0>0|3" />
        <i3dMapping id="hydraulicGrabPunch" node="0>0|3|0" />
        <i3dMapping id="hydraulicGrabRefFrame" node="0>0|4" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|6" />
        <i3dMapping id="wheelLoaderLogFork_grab_component2" node="1>" />
        <i3dMapping id="grabRef" node="1>0" />
    </i3dMappings>
</vehicle>
