<?xml version="1.0" encoding="utf-8"?>
<override>
  <Character speciesname="Humanhusk" displayname="" husk="True" humanoid="True" hasinfo="True" nonhuskedspecies="human" usehuskappendage="False" needsair="False" genders="true" canspeak="True" blooddecal="blackblood" group="husk" needswater="False" noise="100" visibility="100" bleedparticleair="blackblood" bleedparticlewater="blackwaterblood" eatingspeed="10" pathfinderpriority="1" hideinsonar="False" speciestranslationoverride="" sonardisruption="0" caninteract="True" usebosshealthbar="False" bleedparticlemultiplier="1" caneat="False" usepathfinding="True" hideinthermalgoggles="False" distantsonarrange="0" disabledistance="25000" soundinterval="10" despawncontainer="despawncontainer">
    <ragdolls folder="default" />
    <animations folder="default" />
    <huskappendage affliction="huskinfection" path="%ModDir:Improved Husks%/Characters/Humanhusk/Modappendage.xml" />
    <huskappendage affliction="husksymbiosis" path="Content/Characters/Humanhusk/Huskappendagesymbiosis.xml" />
    <huskappendage affliction="naturalmeleeweapon" path="Content/Characters/Humanhusk/Mudraptorbeak.xml" onlyfromafflictions="true" />
    <huskappendage affliction="naturalrangedweapon" path="Content/Characters/Humanhusk/Spinelingspine.xml" onlyfromafflictions="true" />
    <huskappendage affliction="huskinfectionaffinity" path="%ModDir:Improved Husks%/Characters/Humanhusk/Modappendage.xml" onlyfromafflictions="true" />
    <bloodemitter particle="blackblood" particleamount="5" anglemin="0" anglemax="0" scalemin="1" scalemax="1" velocitymin="0" velocitymax="0" emitinterval="0" particlespersecond="0" highqualitycollisiondetection="False" copyentityangle="False" />
    <bloodemitter particle="blackwaterblood" particleamount="1" anglemin="0" anglemax="0" scalemin="1" scalemax="1" velocitymin="0" velocitymax="0" emitinterval="0" particlespersecond="0" highqualitycollisiondetection="False" copyentityangle="False" />
    <gibemitter particle="blackgib" particleamount="10" velocitymin="50" velocitymax="500" anglemin="0" anglemax="360" scalemin="1" scalemax="1" emitinterval="0" particlespersecond="0" highqualitycollisiondetection="False" copyentityangle="False" />
    <gibemitter particle="blackgib" particleamount="10" velocitymin="50" velocitymax="500" anglemin="0" anglemax="360" scalemin="1" scalemax="1" emitinterval="0" particlespersecond="0" highqualitycollisiondetection="False" copyentityangle="False" />
    <health usehealthwindow="True" vitality="70" crushdepth="Infinity" doesbleed="True" bleedingreduction="10" burnreduction="0" constanthealthregeneration="1" healthregenerationwheneating="0" stunimmunity="False">
      <MedUISilhouette texture="Content/UI/Health/MedUI_Silhouette.png" columns="8" rows="2" sourcerect="0,0,1008,748" />
      <MedUIExtra texture="Content/UI/Health/MedUIExtra.png" columns="4" rows="4" sourcerect="0,0,1024,1024" />
      <Limb name="Head">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="1,0,126,374" highlightarea="41,0,45,54" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="1,515,126,374" />
        <VitalityMultiplier type="damage" multiplier="2.0" />
      </Limb>
      <Limb name="Torso">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="631,0,126,374" highlightarea="29,56,70,134" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="631,515,126,374" />
      </Limb>
      <Limb name="LeftArm">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="379,0,126,374" highlightarea="1,69,27,140" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="379,515,126,374" />
        <VitalityMultiplier type="damage" multiplier="0.5" />
      </Limb>
      <Limb name="RightArm">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="127,0,126,374" highlightarea="100,69,27,140" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="127,515,126,374" />
        <VitalityMultiplier type="damage" multiplier="0.5" />
      </Limb>
      <Limb name="LeftLeg">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="505,0,126,374" highlightarea="3,180,57,194" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="505,515,126,374" />
        <VitalityMultiplier type="damage" multiplier="0.5" />
      </Limb>
      <Limb name="RightLeg">
        <Sprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="253,0,126,374" highlightarea="68,180,57,194" />
        <Highlightsprite texture="Content/UI/Health/MedUIAtlas.png" sourcerect="253,515,126,374" />
        <VitalityMultiplier type="damage" multiplier="0.5" />
      </Limb>
    </health>
    <name firstname="Content/Characters/Human/firstnames_[GENDER].txt" lastname="Content/Characters/Human/lastnames.txt" />
    <ai combatstrength="60" sight="1" hearing="2" aggressiveboarding="True" attackwhenprovoked="True" aggressiongreed="5" aggressionhurt="150" canopendoors="True" targetouterwalls="False" fleehealththreshold="0" avoidgunfire="True" avoidtime="3" minfleetime="20" enforceaggressivebehaviorformissions="True" randomattack="False" avoidabyss="False" stayinabyss="False" startaggression="0" maxaggression="100" aggressioncumulation="0" keepdoorsclosed="False" patrolflooded="False" patroldry="False" walltargetingmethod="Target">
      <target tag="decoy" state="Attack" priority="500" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="provocative" state="Attack" priority="100" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="weapon" state="Attack" priority="100" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="crawler" state="Attack" priority="100" reactdistance="0" ignoreincapacitated="True" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="human" state="Attack" priority="80" reactdistance="0" ignoreincapacitated="True" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="weaker" state="Attack" priority="80" reactdistance="0" ignoreincapacitated="True" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="stronger" state="Escape" priority="80" reactdistance="0" ignoreincapacitated="True" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="nasonov" state="Attack" priority="70" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="sonar" state="Attack" priority="30" reactdistance="0" ignoreinside="True" attackdistance="0" timer="0" ignorecontained="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="room" state="Attack" priority="10" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreinside="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
      <target tag="turret" state="Attack" priority="1" ignoreinside="True" reactdistance="0" attackdistance="0" timer="0" ignorecontained="False" ignoreoutside="False" ignoreifnotinsamesub="False" ignoreincapacitated="False" damagethreshold="0" attackpattern="Straight" sweepdistance="0" sweepstrength="10" sweepspeed="1" circlestartdistance="5000" circlerotationspeed="1" circlestrikedistancemultiplier="5" circlemaxrandomoffset="0" threshold="0" thresholdmin="-1" thresholdmax="-1" offset="0,0" />
    </ai>
    <inventory arrowslot="9" slots="Card, Headset, Head, InnerClothes, OuterClothes, LeftHand, RightHand, Bag, Any, Any, Any, Any, Any, Any, Any, Any, Any, Any" accessiblewhenalive="False" accessiblebyowner="True" commonness="1" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/idle1.ogg" state="Idle" range="1000" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/idle2.ogg" state="Idle" range="1000" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/idle3.ogg" state="Idle" range="1000" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/attack1.ogg" state="Attack" range="1500" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/attack2.ogg" state="Attack" range="1500" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/pain.ogg" state="Damage" range="1000" volume="1" gender="None" />
    <sound file="%ModDir:Improved Husks%/Characters/Humanhusk/death.ogg" state="Die" range="1000" volume="2.5000002" gender="None" />
    <!-- If it is wearing a diving suit, it will "break" the suits' helmet and transform into a "humanhuskdiver" through the "helmetbreaking" affliction. -->
    <StatusEffect type="Always" target="This" targetlimb="Head" checkconditionalalways="true" stackable="false" comparison="and" disabledeltatime="true" duration="2">
      <Conditional PressureProtection="gte 100.0" targetself="true" />
      <Conditional isdead="false" />
      <Requireditem item="deepdiving" type="picked" allowvariants="false" />
      <Affliction identifier="helmetbreaking" strength="75" probability="1" />
    </StatusEffect>
    <!-- If it is left alone for quite some time it will turn into an old husk. -->
    <StatusEffect type="Always" target="This" comparison="and">
      <Conditional isdead="false" />
      <Conditional huskmutation="lte 0" />
      <Affliction identifier="huskrotting" strength="0.2" probability="1" />
    </StatusEffect>
    <StatusEffect type="InWater" target="This" comparison="and">
      <Conditional isdead="false" />
      <Conditional healthpercentage="lte 10" />
      <Conditional huskmutation="lte 0" />
      <Conditional isunconscious="true" />
      <Affliction identifier="huskrotting" strength="0.2" probability="1" />
      <!-- Turn into old husk even faster if beaten up and thrown out of the submarine (or otherwise left in the water) but not killed. -->
    </StatusEffect>
    <StatusEffect type="OnSpawn" target="This" targetlimb="Head" stackable="false">
      <SpawnItem identifier="humanhuskinfectionsound" spawnposition="This" count="1" />
    </StatusEffect>
  </Character>
</override>