<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<handTool xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/handtool.xsd">
    <storeData>
        <name>MS 261</name>
        <functions>
            <function>$l10n_function_chainsaw</function>
        </functions>
        <image>$data/firstPerson/chainsaws/stihl/store_chainsawStihl.png</image>
        <price>1000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>STIHL</brand>
        <category>chainsaws</category>
        <species>handTool</species>
        <storeIconRendering>
            <settings cameraXRot="-20" cameraYRot="40"/>
        </storeIconRendering>
    </storeData>

    <handToolType>chainsaw</handToolType>
    <filename>$data/firstPerson/chainsaws/stihl/stihlMS261.i3d</filename>

    <handNode>
        <firstPerson position="0.2 -0.25 -0.75" rotation="150 0 180" />
        <thirdPerson position="-0.16 0 0" rotation="20 180 270" />
        <thirdPersonCutting position="-0.25 -0.05 0.3" rotation="35 0 270" />
    </handNode>

    <playerWorkStylePreset>chainsawSetStihl</playerWorkStylePreset>

    <chainsaw quicktapThreshold="0.2" cutSizeY="1.7" cutSizeZ="1.7">
        <cutAnimation cutFocusOffset="0 0.6 0.1" cutFocusRotation="180 0 0" />
        <targetSelection  minCutDistance="0.5" maxCutDistance="2" cutDetectionDistance="10.0" />

        <equipment uvs="0.5 0.5" />
        <chain>
            <animationNode class="ScrollingAnimation" node="0|0|0" scrollSpeed="-14" speedFunc="getChainSpeedFactor" shaderParameterComponent="2"/>
        </chain>
        <particleSystems>
            <emitterShape node="0|0|1|0" particleType="CHAINSAW_WOOD" emitCountScale="1"/>
            <emitterShape node="0|0|1|1" particleType="CHAINSAW_DUST" emitCountScale="2"/>
        </particleSystems>
        <ringSelector file="$data/firstPerson/chainsaws/chainsawRingSelector.i3d" scaleOffset="0.3"/>

        <sounds>
            <start file="$data/sounds/tools/chainsaw/stihl/stihl_start.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="0.80" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </start>
            <stop file="$data/sounds/tools/chainsaw/stihl/stihl_stop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="0.80" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </stop>
            <idle file="$data/sounds/tools/chainsaw/stihl/stihl_idle_loop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="0.80" >
                    <!-- <speedModifier speed="0.00" percentage="0.00" /> -->
                    <!-- <speedModifier speed="1.00" percentage="1.00" /> -->
                </volume>
                <pitch indoor="1.00" outdoor="1.00" >
                    <!-- <loadModifier load="0.00" percentage="1.00" /> -->
                    <!-- <loadModifier load="1.00" percentage="1.30" /> -->
                </pitch>
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </idle>

            <cutStart file="$data/sounds/tools/chainsaw/stihl/stihl_work_start.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cutStart>
            <cutStop file="$data/sounds/tools/chainsaw/stihl/stihl_work_stop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0">
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cutStop>
            <cutLoop file="$data/sounds/tools/chainsaw/stihl/stihl_work_loop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" fadeOut="0.15" >
                <volume indoor="0.50" outdoor="1.00" >
                    <!-- <speedModifier speed="0.00" percentage="0.00" /> -->
                    <!-- <speedModifier speed="1.00" percentage="1.20" /> -->
                </volume>
                <pitch indoor="1.00" outdoor="1.00" >
                    <!-- <loadModifier load="0.00" percentage="1.00" /> -->
                    <!-- <loadModifier load="1.00" percentage="0.90" /> -->
                </pitch>
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cutLoop>

            <quickTapSounds>
                <quickTap file="$data/sounds/tools/chainsaw/stihl/stihl_quicktap_01.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0">
                    <volume indoor="0.50" outdoor="0.90" />
                    <pitch indoor="1.00" outdoor="1.00" />
                    <lowpassGain indoor="0.50" outdoor="1.00" />
                </quickTap>
                <quickTap file="$data/sounds/tools/chainsaw/stihl/stihl_quicktap_02.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0">
                    <volume indoor="0.50" outdoor="0.90" />
                    <pitch indoor="1.00" outdoor="1.00" />
                    <lowpassGain indoor="0.50" outdoor="1.00" />
                </quickTap>
                <quickTap file="$data/sounds/tools/chainsaw/stihl/stihl_quicktap_03.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0">
                    <volume indoor="0.50" outdoor="0.90" />
                    <pitch indoor="1.00" outdoor="1.00" />
                    <lowpassGain indoor="0.50" outdoor="1.00" />
                </quickTap>
            </quickTapSounds>

            <activeStart file="$data/sounds/tools/chainsaw/stihl/stihl_max_rpm_offload_start.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="0.70" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </activeStart>
            <activeStop file="$data/sounds/tools/chainsaw/stihl/stihl_max_rpm_offload_stop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="0.70" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </activeStop>
            <activeLoop file="$data/sounds/tools/chainsaw/stihl/stihl_max_rpm_offload_loop.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" fadeOut="0.15" >
                <volume indoor="0.50" outdoor="0.70" >
                    <!-- <speedModifier speed="0.00" percentage="0.00" /> -->
                    <!-- <speedModifier speed="1.00" percentage="1.20" /> -->
                </volume>
                <pitch indoor="1.00" outdoor="1.00" >
                    <!-- <loadModifier load="0.00" percentage="1.00" /> -->
                    <!-- <loadModifier load="1.00" percentage="0.90" /> -->
                </pitch>
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </activeLoop>
        </sounds>

        <branchSounds>
            <branch file="$data/sounds/tools/forestry/chainsaw_branch_01.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </branch>
            <branch file="$data/sounds/tools/forestry/chainsaw_branch_02.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </branch>
            <branch file="$data/sounds/tools/forestry/chainsaw_branch_03.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </branch>
            <branch file="$data/sounds/tools/forestry/chainsaw_branch_04.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </branch>
            <branch file="$data/sounds/tools/forestry/chainsaw_branch_05.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </branch>
        </branchSounds>

        <treeSounds>
            <cut file="$data/sounds/tools/forestry/tree_fall_01.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cut>
            <cut file="$data/sounds/tools/forestry/tree_fall_02.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cut>
            <cut file="$data/sounds/tools/forestry/tree_fall_03.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cut>
            <cut file="$data/sounds/tools/forestry/tree_fall_04.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cut>
            <cut file="$data/sounds/tools/forestry/tree_fall_05.wav" linkNode="0>" innerRadius="5.0" outerRadius="60.0" >
                <volume indoor="0.50" outdoor="1.00" />
                <pitch indoor="1.00" outdoor="1.00" />
                <lowpassGain indoor="0.50" outdoor="1.00" />
            </cut>
        </treeSounds>
    </chainsaw>
</handTool>
