<?xml version="1.0" encoding="utf-8"?>
<!-- 
  ↓↓↓ Unique per-player sound system ↓↓↓ 
  This system allows for each player to hear sonar pings differently by playing the sound locally for each player in the radius.
  A different ping will be played depending on the player's circumstances e.g. In/out of water, distance, sonar protection.
  -->
<Afflictions>
  <Affliction identifier="sonarsoundsshuttle" maxstrength="100" showiconthreshold="1000">
    <!-- Distance: Far. -->
    <Effect minstrength="0" maxstrength="25">
      <!-- Apply air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirFarShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterFarShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitFarShuttle" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttle" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Medium. -->
    <Effect minstrength="25" maxstrength="50">
      <!-- Apply air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirFarShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterMediumShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitMediumShuttle" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttle" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Close. -->
    <Effect minstrength="50" maxstrength="75">
      <!-- Apply air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirMediumShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterCloseShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitCloseShuttle" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttle" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Very Close. -->
    <Effect minstrength="75" maxstrength="100">
      <!-- Apply air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional sonarsoundsshuttle="gt 95" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="false" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirCloseShuttle" strength="1" />
      </StatusEffect>
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional sonarsoundsshuttle="lteq 95" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="false" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirMediumShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterVeryCloseShuttle" strength="1" />
      </StatusEffect>
      <!-- Apply suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitVeryCloseShuttle" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttle" amount="1000" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Air pings. -->
  <Affliction identifier="sonarPingAirCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirCloseShuttle1.ogg" volume="0.65" />
        <sound file="%ModDir%/Sounds/sonarPingAirCloseShuttle2.ogg" volume="0.65" />
        <Affliction identifier="sonarTailAirCloseShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingAirMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirMediumShuttle1.ogg" volume="0.65" />
        <sound file="%ModDir%/Sounds/sonarPingAirMediumShuttle2.ogg" volume="0.65" />
        <Affliction identifier="sonarTailAirMediumShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingAirFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirFarShuttle1.ogg" volume="0.7" />
        <sound file="%ModDir%/Sounds/sonarPingAirFarShuttle2.ogg" volume="0.7" />
        <Affliction identifier="sonarTailAirFarShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Water pings. -->
  <Affliction identifier="sonarPingWaterVeryCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterVeryCloseShuttle1.ogg" volume="0.3" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterVeryCloseShuttle2.ogg" volume="0.3" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterVeryCloseShuttle3.ogg" volume="0.3" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterVeryCloseShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterVeryCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterCloseShuttle1.ogg" volume="0.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterCloseShuttle2.ogg" volume="0.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterCloseShuttle3.ogg" volume="0.5" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterCloseShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle1.ogg" volume="0.6" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle2.ogg" volume="0.6" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle3.ogg" volume="0.6" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterMediumShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle1.ogg" volume="1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle2.ogg" volume="1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle3.ogg" volume="1" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterFarShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Suit pings. -->
  <Affliction identifier="sonarPingSuitVeryCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitVeryCloseShuttle1.ogg" volume="1.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitVeryCloseShuttle2.ogg" volume="1.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitVeryCloseShuttle3.ogg" volume="1.9" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitVeryCloseShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitVeryCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitCloseShuttle1.ogg" volume="1.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitCloseShuttle2.ogg" volume="1.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitCloseShuttle3.ogg" volume="1.5" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitCloseShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle1.ogg" volume="1.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle2.ogg" volume="1.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle3.ogg" volume="1.8" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitMediumShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle1.ogg" volume="0.4" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle2.ogg" volume="0.4" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle3.ogg" volume="0.4" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitFarShuttle" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- 
    The afflictions below only play sounds. Specifically, the last 2 seconds, or "Tail", of a ping. 
    Each sound is set to play after a delay of 2 seconds. This is to allow the first half of the sound, the "Ping", to be played first.
       
    Why is it necessary to split the sounds into two parts? 
    For 3 reasons.
    1. Active sonar pings every 2.0 seconds (hard-coded).
    2. Our ping sounds are longer than 2.0 seconds (3.99 seconds). 
    3. After a Status Effect plays a sound, it can only play it again once it's finished; in other words, the sounds don't stack.

    So, if you play a 4-second sound every 2 seconds, it won't work. Instead, it will play a 4-second sound every 4 seconds, missing every 2nd ping.
    An exception to this rule is sounds played within item tags, but unfortunately, because we're using an explosion to apply sounds to players, 
    it takes us outside the <Sonar> tag, and we're forced to devise our own solution for playing 4-second sounds in a 2-second interval.
       
    The solution is cutting the 4-second sounds in half to fit the 2.0-second ping interval. This means we're playing two different 2-second sounds every 2.0 seconds.
    To prevent them playing on top of each other, add a 2-second delay on the 2nd sound, so it plays at the end of the first sound, creating a seamless 4-second sound being played every 2.0 seconds.
    
    It should be noted that achieving this technique with sounds longer than 4.0 seconds would require cutting it into additional pieces.
    For example, a 6-second sound would require three 2-second sounds to be played at once, one with a 2-second delay, and one with a 4-second delay.
  -->
  <!-- Air tails. -->
  <Affliction identifier="sonarTailAirCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirCloseShuttle1.ogg" volume="0.65" />
        <sound file="%ModDir%/Sounds/sonarTailAirCloseShuttle2.ogg" volume="0.65" />
        <ReduceAffliction identifier="sonarTailAirCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailAirMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirMediumShuttle1.ogg" volume="0.65" />
        <sound file="%ModDir%/Sounds/sonarTailAirMediumShuttle2.ogg" volume="0.65" />
        <ReduceAffliction identifier="sonarTailAirMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailAirFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirFarShuttle1.ogg" volume="0.7" />
        <sound file="%ModDir%/Sounds/sonarTailAirFarShuttle2.ogg" volume="0.7" />
        <ReduceAffliction identifier="sonarTailAirFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Water tails. -->
  <Affliction identifier="sonarTailWaterVeryCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryCloseShuttle1.ogg" volume="0.30" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryCloseShuttle2.ogg" volume="0.30" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryCloseShuttle3.ogg" volume="0.30" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryClose1.ogg" volume="0.30" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryClose2.ogg" volume="0.30" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterVeryClose3.ogg" volume="0.30" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterVeryCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterCloseShuttle1.ogg" volume="0.50" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterCloseShuttle2.ogg" volume="0.50" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterCloseShuttle3.ogg" volume="0.50" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterClose1.ogg" volume="0.50" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterClose2.ogg" volume="0.50" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle1.ogg" volume="0.60" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle2.ogg" volume="0.60" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle3.ogg" volume="0.60" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle1.ogg" volume="1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle2.ogg" volume="1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle3.ogg" volume="1" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Suit tails. -->
  <Affliction identifier="sonarTailSuitVeryCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitVeryCloseShuttle1.ogg" volume="1.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitVeryCloseShuttle2.ogg" volume="1.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitVeryCloseShuttle3.ogg" volume="1.9" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitVeryCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitCloseShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitCloseShuttle1.ogg" volume="1.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitCloseShuttle2.ogg" volume="1.5" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitCloseShuttle3.ogg" volume="1.5" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitCloseShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitMediumShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle1.ogg" volume="1.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle2.ogg" volume="1.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle3.ogg" volume="1.8" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitMediumShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitFarShuttle" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle1.ogg" volume="0.4" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle2.ogg" volume="0.4" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle3.ogg" volume="0.4" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitFarShuttle" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarsoundsshuttledirectional" maxstrength="100" showiconthreshold="1000">
    <!-- Distance: Far. -->
    <Effect minstrength="0" maxstrength="25">
      <!-- Apply directional air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirFarShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterFarShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitFarShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttledirectional" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Medium. -->
    <Effect minstrength="25" maxstrength="50">
      <!-- Apply directional air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirFarShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterMediumShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitMediumShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttledirectional" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Close. -->
    <Effect minstrength="50" maxstrength="75">
      <!-- Apply directional air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional InWater="false" />
        <Conditional serversidelua="lteq 0" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirMediumShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterCloseShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitCloseShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttledirectional" amount="1000" />
      </StatusEffect>
    </Effect>
    <!-- Distance: Very Close. -->
    <Effect minstrength="75" maxstrength="100">
      <!-- Apply directional air sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional sonarsoundsdirectional="gt 95" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="false" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirCloseShuttleDirectional" strength="1" />
      </StatusEffect>
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional sonarsoundsdirectional="lteq 95" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="false" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingAirMediumShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional water sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="! sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingWaterVeryCloseShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Apply directional suit sounds -->
      <StatusEffect target="Character" disabledeltatime="true" comparison="and">
        <Conditional HasStatusTag="sonarprotection" />
        <Conditional serversidelua="lteq 0" />
        <Conditional InWater="true" />
        <Conditional ishuman="true" />
        <Affliction identifier="sonarPingSuitVeryCloseShuttleDirectional" strength="1" />
      </StatusEffect>
      <!-- Remove affliction. -->
      <StatusEffect target="Character" disabledeltatime="true">
        <ReduceAffliction identifier="sonarsoundsshuttledirectional" amount="1000" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- ↓↓↓ DIRECTIONAL SOUNDS ↓↓↓ -->
  <!-- Directional Air pings. -->
  <Affliction identifier="sonarPingAirCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirCloseShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarPingAirCloseShuttle2_Directional.ogg" volume="1.0" />
        <Affliction identifier="sonarTailAirCloseShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingAirMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirMediumShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarPingAirMediumShuttle2_Directional.ogg" volume="1.0" />
        <Affliction identifier="sonarTailAirMediumShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingAirFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingAirFarShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarPingAirFarShuttle2_Directional.ogg" volume="1.0" />
        <Affliction identifier="sonarTailAirFarShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingAirFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Directional Water pings. -->
  <Affliction identifier="sonarPingWaterVeryCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle1_Directional.ogg" volume="0.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle2_Directional.ogg" volume="0.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle3_Directional.ogg" volume="0.9" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterVeryCloseShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterVeryCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterMediumShuttle3_Directional.ogg" volume="0.8" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterCloseShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle3_Directional.ogg" volume="0.8" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterMediumShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingWaterFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle1_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle2_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingWaterFarShuttle3_Directional.ogg" volume="0.7" dontmuffle="true" />
        <Affliction identifier="sonarTailWaterFarShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingWaterFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Directional Suit pings. -->
  <Affliction identifier="sonarPingSuitVeryCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle1_Directional.ogg" volume="1.2" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle2_Directional.ogg" volume="1.2" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle3_Directional.ogg" volume="1.2" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitVeryCloseShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitVeryCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle1_Directional.ogg" volume="1.1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle2_Directional.ogg" volume="1.1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitMediumShuttle3_Directional.ogg" volume="1.1" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitCloseShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle3_Directional.ogg" volume="0.8" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitMediumShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarPingSuitFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle1_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle2_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarPingSuitFarShuttle3_Directional.ogg" volume="0.7" dontmuffle="true" />
        <Affliction identifier="sonarTailSuitFarShuttleDirectional" amount="1" />
      </StatusEffect>
      <StatusEffect target="Character" delay="0.1" disabledeltatime="true">
        <ReduceAffliction identifier="sonarPingSuitFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Directional Air tails. -->
  <Affliction identifier="sonarTailAirCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirCloseShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarTailAirCloseShuttle2_Directional.ogg" volume="1.0" />
        <ReduceAffliction identifier="sonarTailAirCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailAirMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirMediumShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarTailAirMediumShuttle2_Directional.ogg" volume="1.0" />
        <ReduceAffliction identifier="sonarTailAirMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailAirFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailAirFarShuttle1_Directional.ogg" volume="1.0" />
        <sound file="%ModDir%/Sounds/sonarTailAirFarShuttle2_Directional.ogg" volume="1.0" />
        <ReduceAffliction identifier="sonarTailAirFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Directional Water tails. -->
  <Affliction identifier="sonarTailWaterVeryCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle1_Directional.ogg" volume="0.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle2_Directional.ogg" volume="0.9" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle3_Directional.ogg" volume="0.9" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterVeryCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterMediumShuttle3_Directional.ogg" volume="0.8" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailWaterFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle1_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailWaterFarShuttle2_Directional.ogg" volume="0.7" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailWaterFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <!-- Directional Suit tails. -->
  <Affliction identifier="sonarTailSuitVeryCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle1_Directional.ogg" volume="1.2" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle2_Directional.ogg" volume="1.2" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle3_Directional.ogg" volume="1.2" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitVeryCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitCloseShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle1_Directional.ogg" volume="1.1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle2_Directional.ogg" volume="1.1" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitMediumShuttle3_Directional.ogg" volume="1.1" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitCloseShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitMediumShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle1_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle2_Directional.ogg" volume="0.8" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle3_Directional.ogg" volume="0.8" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitMediumShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
  <Affliction identifier="sonarTailSuitFarShuttleDirectional" maxstrength="1" showiconthreshold="1000">
    <Effect minstrength="0" maxstrength="1">
      <StatusEffect target="Character" delay="1.98" disabledeltatime="true" stackable="false">
        <Conditional IsLocalPlayer="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle1_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle2_Directional.ogg" volume="0.7" dontmuffle="true" />
        <sound file="%ModDir%/Sounds/sonarTailSuitFarShuttle3_Directional.ogg" volume="0.7" dontmuffle="true" />
        <ReduceAffliction identifier="sonarTailSuitFarShuttleDirectional" amount="10" />
      </StatusEffect>
    </Effect>
  </Affliction>
</Afflictions>