<?xml version="1.0" encoding="utf-8" ?>
<Ragdoll
  type="tigerthresher"
  minscale="0.8" maxscale="1.2"
  canentersubmarine="false"
  canwalk="False"
  texture="Content/Characters/Legacytigerthresher/Legacytigerthresher.png">

  <collider radius="50" height="185"/>

  <!-- head -->
  <limb id = "0" radius="12" height="100" type="Head" steerforce="1.0">
    <sprite sourcerect="371,15,66,136" depth="0.02" origin ="0.5,0.5"/>
    <!--
    <deformablesprite sourcerect="371,15,66,136" depth="0.02" origin ="0.5,0.5" subdivisions="15,15">
      <spritedeformation type="noise" resolution="15,15" frequency="10" amplitude="0.05" changespeed="10" blendmode="add"/>
    </deformablesprite>    
    -->
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="371,15,66,136" origin ="0.5,0.5"/>
  </limb>

  <!-- lower yaw -->
  <limb id = "1" width="16" height="103">
    <deformablesprite sourcerect="391,169,28,110" depth="0.025" origin="0.5,0.5" subdivisions="15,15">
      <spritedeformation type="noise" resolution="15,15" frequency="10" amplitude="0.05" changespeed="10" blendmode="add"/>
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="391,169,28,110" origin="0.5,0.5"/>
    <attack range="300" damagerange="150" duration="0.5" structuredamage="20" structuresoundtype="StructureSlash"
            force="80" torque="80" targetforce="-50" severlimbsprobability="0.8">
      <Affliction identifier="bitewounds" strength="15"/>
      <Affliction identifier="bleeding" strength="50"/>
    </attack>
  </limb>

  <!-- body front -->
  <limb id = "2" radius="50" height="185" type="Torso" steerforce="0.1">
    <deformablesprite sourcerect="251,0,113,285" depth="0.016" origin="0.6,0.5" subdivisions="5,15">
      <spritedeformation type="bendjoint" resolution="5,15" multiplier="1.0" axis="y" start="true" control="false" end="true" />
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="251,0,113,285" origin="0.6,0.5"/>
  </limb>

  <!-- body rear -->
  <limb id = "3" radius="40" height="175" type="Tail">
    <deformablesprite sourcerect="0,180,125,261" depth="0.015" origin="0.6,0.5" subdivisions="10,10">
      <spritedeformation type="bendjoint" resolution="10,10" multiplier="1.0" axis="y" start="true" control="false" end="true" />
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="0,180,125,261" origin="0.6,0.5"/>
  </limb>

  <!-- tail -->
  <limb id = "4" radius="17" height="135" type="Tail">
    <deformablesprite sourcerect="0,0,87,172" depth="0.02" origin="0.35,0.5" subdivisions="5,10">
      <spritedeformation type="bendjoint" resolution="5,10" multiplier="1.0" axis="y" start="false" control="false" end="true" />
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="0,0,87,172" origin="0.35,0.5"/>
  </limb>

  <!-- tail tip -->
  <limb id = "5" radius="15" height="170" type="Tail">
    <deformablesprite sourcerect="150,222,48,211" depth="0.021" origin="0.35,0.5" subdivisions="5,10">
      <spritedeformation type="bendjoint" resolution="5,10" multiplier="1.0" axis="y" start="false" end="true" control="false"/>
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="150,222,48,211" origin="0.35,0.5"/>
  </limb>

  <!-- front fins -->
  <limb id = "6" width="50" height="200">
    <deformablesprite sourcerect="120,5,90,205" depth="0.008" origin="0.7,0.5" subdivisions="15,15">
      <spritedeformation type="noise" resolution="15,15" frequency="10" amplitude="0.05" changespeed="10" blendmode="add"/>
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="120,5,90,205" origin="0.7,0.5"/>
  </limb>

  <!-- back fins -->
  <limb id = "7" width="25" height="100">
    <deformablesprite sourcerect="387,304,38,128" depth="0.01" origin="0.7,0.5" subdivisions="15,15">
      <spritedeformation type="noise" resolution="15,15" frequency="10" amplitude="0.05" changespeed="10" blendmode="add"/>
    </deformablesprite>-
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="387,304,38,128" origin="0.7,0.5"/>
  </limb>

  <!-- long "fins" -->
  <limb id = "8" width="10" height="270" ignorecollisions="true">
    <deformablesprite sourcerect="217,10,26,275" depth="0.01" origin="0.5,0.5" subdivisions="15,15">
      <spritedeformation type="noise" resolution="15,15" frequency="10" amplitude="0.05" changespeed="10" blendmode="add"/>
    </deformablesprite>
    <damagedsprite texture="Content/Characters/Legacytigerthresher/damagedtigerthresher.png" sourcerect="217,10,26,275" origin="0.5,0.5"/>
  </limb>

  <!-- body to head -->
  <joint limb1="0" limb1anchor="-22,-63" limb2="2" limb2anchor="-46,80" lowerlimit="-10" upperlimit="10"/>

  <!-- body to lower yaw -->
  <joint limb1="1" limb1anchor="0,-39" limb2="2" limb2anchor="11,115" lowerlimit="-10" upperlimit="30"/>
  <!-- body front to body rear -->
  <joint limb1="2" limb1anchor="-12,-100" limb2="3" limb2anchor="0,90" lowerlimit="-10" upperlimit="30"/>

  <!-- body rear to tail -->
  <joint limb1="3" limb1anchor="-7,-113" limb2="4" limb2anchor="8,80" lowerlimit="-30" upperlimit="30"/>
  <!-- tail to tail tip -->
  <joint limb1="4" limb1anchor="0,-71" limb2="5" limb2anchor="4,95" lowerlimit="-10" upperlimit="30"/>

  <!-- body to front fin -->
  <joint limb1="2" limb1anchor="4,13" limb2="6" limb2anchor="6,89" lowerlimit="-50" upperlimit="0"/>

  <!-- body to back fin -->
  <joint limb1="3" limb1anchor="11,60" limb2="7" limb2anchor="-2,57" lowerlimit="-50" upperlimit="0"/>

  <!-- body to long -->
  <joint limb1="3" limb1anchor="-3,-45" limb2="8" limb2anchor="-8,132" lowerlimit="-30" upperlimit="0"/>

</Ragdoll>