<Ragdoll type="Defensebot" Texture="Content/Characters/Defensebot/DefenseBot.png" Color="255,255,255,255" SpritesheetOrientation="0" LimbScale="0.4" JointScale="0.4" TextureScale="1" ColliderHeightFromFloor="230" ImpactTolerance="50" CanEnterSubmarine="True" CanWalk="True" Draggable="True" MainLimb="Torso">
  <collider Name="Main Collider" Radius="0" Height="130" Width="130" />
  <limb UseTextureOffsetForBlinking="False" BlinkTextureOffsetIn="0.5,0.5" BlinkTextureOffsetOut="0.5,0.5" Name="Torso (0)" ID="0" Type="Torso" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="120.59998" Width="138.59999" Density="10" IgnoreCollisions="False" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="0,0,154,134" Origin="0.5015216,0.5" Depth="0.5" Texture="" IgnoreTint="False" Color="255,255,255,255"  deadcolor="120,120,120,255" DeadColorTime="0" />
  </limb>
  <limb UseTextureOffsetForBlinking="False" BlinkTextureOffsetIn="0.5,0.5" BlinkTextureOffsetOut="0.5,0.5" Name="PropellerLeft" ID="1" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="12" Width="80" Density="10" IgnoreCollisions="False" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="42,133,42,13" Origin="0.5,0.5" Depth="0.4" Texture="" IgnoreTint="False" Color="255,255,255,255" DeadColor="255,255,255,255" DeadColorTime="0" />
    <decorativesprite SourceRect="0,133,42,13" Origin="0.5,0.5" Depth="0.6" Texture="Content/Characters/Defensebot/DefenseBot.png" IgnoreTint="False" DeadColor="255,255,255,255" DeadColorTime="0" Offset="20,0" RandomOffset="0,0" OffsetAnim="Sine" OffsetAnimSpeed="600" RotationSpeed="0" Rotation="360" RandomRotation="0,0" Scale="1" RandomScale="0,0" RotationAnim="None" RandomGroupID="0" Color="255,255,255,255">
      <IsActiveConditional IsDead="False" />
    </decorativesprite>
  </limb>
  <limb UseTextureOffsetForBlinking="False" BlinkTextureOffsetIn="0.5,0.5" BlinkTextureOffsetOut="0.5,0.5" Name="PropellerRight" ID="2" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="12" Width="80" Density="10" IgnoreCollisions="False" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="42,133,42,13" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,255" DeadColor="255,255,255,255" DeadColorTime="0" />
    <decorativesprite SourceRect="0,133,42,13" Origin="0.5,0.5" Depth="0.6" Texture="Content/Characters/Defensebot/DefenseBot.png" IgnoreTint="False" DeadColor="255,255,255,255" DeadColorTime="0" Offset="20,0" RandomOffset="0,0" OffsetAnim="Sine" OffsetAnimSpeed="600" RotationSpeed="0" Rotation="360" RandomRotation="0,0" Scale="1" RandomScale="0,0" RotationAnim="None" RandomGroupID="0" Color="255,255,255,255">
      <IsActiveConditional IsDead="False" />
    </decorativesprite>
  </limb>
  <limb UseTextureOffsetForBlinking="False" BlinkTextureOffsetIn="0.5,0.5" BlinkTextureOffsetOut="0.5,0.5" Name="Turret" ID="3" Type="Head" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="180" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="116.09999" Width="40" Density="5" IgnoreCollisions="False" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="1" BlinkDurationOut="1" BlinkHoldTime="1" BlinkRotationIn="60" BlinkRotationOut="-60" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="EaseIn" BlinkTransitionOut="EaseIn" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="165,0,55,130" Origin="0.5,0.5017685" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,255" DeadColor="255,255,255,255" DeadColorTime="0" />
  </limb>
  <limb Name="BarrelEnd" ID="4" Type="None" Notes="" Scale="1" Flip="True" MirrorVertically="False" MirrorHorizontally="False" Hide="True" SpriteOrientation="180" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="10" Width="10" Density="0.1" IgnoreCollisions="True" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="230,8,10,10" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,255" DeadColor="255,255,255,255" DeadColorTime="0" />
    <attack SwayAmount="0" SwayFrequency="5" StructureSoundType="StructureBlunt" Context="Any" TargetType="Character" TargetLimbType="None" HitDetectionType="Distance" AfterAttack="IdleUntilCanAttack" AfterAttackDelay="0" Reverse="False" SnapRopeOnNewAttack="True" Retreat="False" Range="2000" DamageRange="2000" MinRange="0" Duration="0.03" CoolDown="0.1" SecondaryCoolDown="0" CoolDownRandomFactor="0" FullSpeedAfterAttack="True" StructureDamage="0" EmitStructureDamageParticles="True" ItemDamage="0" Penetration="0" LevelWallDamage="0" Ranged="True" AvoidFriendlyFire="True" RequiredAngle="360" RequiredAngleToShoot="2" AimRotationTorque="50" RotationLimbIndex="3" Stun="0" OnlyHumans="False" ApplyForceOnLimbs="" Force="0" RootForceWorldStart="0,0" RootForceWorldMiddle="0,0" RootForceWorldEnd="0,0" RootTransitionEasing="Linear" Torque="0" ApplyForcesOnlyOnce="False" TargetImpulse="0" TargetImpulseWorld="0,0" TargetForce="0" TargetForceWorld="0,0" SubmarineImpactMultiplier="1" SeverLimbsProbability="0" Priority="0" Blink="False">
      <StatusEffect type="OnFailure" target="This" forceplaysounds="true">
        <RequiredItem item="defensebotammo" type="Picked" ExcludeBroken="true" />
        <SpawnItem identifier="defensebotround" spawnposition="This" count="1" aimspread="0" rotationtype="Limb" rotation="-90" />
        <ParticleEmitter particle="muzzleflash" particleamount="1" velocitymin="0" velocitymax="0" CopyEntityAngle="True" CopyEntityDir="False" />
        <Sound file="Content/Items/Weapons/SMGsingleShot1.ogg" type="OnUse" range="3000" selectionmode="Random" />
        <Sound file="Content/Items/Weapons/SMGsingleShot2.ogg" type="OnUse" range="3000" />
        <Sound file="Content/Items/Weapons/SMGsingleShot3.ogg" type="OnUse" range="3000" />
        <Sound file="Content/Items/Weapons/SMGsingleShot4.ogg" type="OnUse" range="3000" />
        <Sound file="Content/Items/Weapons/SMGsingleShot5.ogg" type="OnUse" range="3000" />
        <Sound file="Content/Items/Weapons/SMGsingleShot6.ogg" type="OnUse" range="3000" />
        <Explosion range="150.0" force="0" shockwave="false" smoke="false" flames="false" sparks="false" underwaterbubble="false" camerashake="0" flash="true" />
      </StatusEffect>
      <!-- -0.5 -> 200 shots per magazine-->
      <StatusEffect type="OnFailure" targettype="Contained" Condition="-0.5" targets="defensebotammo" />
      <!-- Drop the empty magazine -->
      <!--
      <StatusEffect type="OnFailure" targettype="Contained" targetitems="defensebotammo">
        <Conditional condition="lte 0" />
        <DropItem />
      </StatusEffect>
      -->
      <!-- Play a warning sound and escape when out of ammo -->
      <StatusEffect type="OnFailure" targettype="This">
        <RequiredItem item="defensebotammo" type="Picked" RequireEmpty="true" />
        <Sound File="Content/Characters/Defensebot/DEFENCEBOT_interact2.ogg" Range="500" loop="false"/>
        <AITrigger state="Escape" duration="5" allowtobeoverridden="false" allowtooverride="true" />
      </StatusEffect>
    </attack>
  </limb>
  <limb Name="EscapeIndicator" ID="5" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="18" Width="25.2" Density="0.1" IgnoreCollisions="True" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="0,149,28,20" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,0" DeadColor="255,255,255,255" DeadColorTime="0" />
    <lightsource castshadows="false" Color="255,255,255,100" Range="15" Scale="1" Offset="0,0" Rotation="0" Flicker="0" FlickerSpeed="0" PulseFrequency="0" PulseAmount="0" BlinkFrequency="1">
      <sprite texture="Content/Characters/Defensebot/DefenseBot.png" sourcerect="0,149,28,20" origin="0.5,0.5" size="1,1" alpha="1.0" />
      <lighttexture Texture="Content/Lights/pointlight_falloff.png" Origin="0.5,0.5" Size="1,1" />
      <Conditional AIState="Escape" />
    </lightsource>
  </limb>
  <limb Name="IdleIndicator" ID="6" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="18" Width="25.2" Density="0.1" IgnoreCollisions="True" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="0,149,28,20" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,0" DeadColor="255,255,255,255" DeadColorTime="0" />
    <lightsource castshadows="false" Color="255,255,255,100" Range="15" Scale="1" Offset="0,0" Rotation="0" Flicker="0.4" FlickerSpeed="100" PulseFrequency="0" PulseAmount="0" BlinkFrequency="0" comparison="or">
      <sprite texture="Content/Characters/Defensebot/DefenseBot.png" sourcerect="0,149,28,20" origin="0.5,0.5" size="1,1" alpha="1.0" />
      <lighttexture Texture="Content/Lights/pointlight_falloff.png" Origin="0.5,0.5" Size="1,1" />
      <Conditional AIState="Idle" />
    </lightsource>
  </limb>
  <limb Name="AttackIndicator" ID="7" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="18" Width="25.2" Density="0.1" IgnoreCollisions="True" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="0,149,28,20" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,0" DeadColor="255,255,255,255" DeadColorTime="0" />
    <lightsource castshadows="false" Color="255,0,0,255" Range="15" Scale="1" Offset="0,0" Rotation="0" Flicker="0" FlickerSpeed="0" PulseFrequency="0" PulseAmount="0" BlinkFrequency="5" comparison="or">
      <sprite texture="Content/Characters/Defensebot/DefenseBot.png" sourcerect="0,149,28,20" origin="0.5,0.5" size="1,1" alpha="1.0" />
      <lighttexture Texture="Content/Lights/pointlight_falloff.png" Origin="0.5,0.5" Size="1,1" />
      <Conditional AIState="Aggressive" />
      <Conditional AIState="Attack" />
    </lightsource>
  </limb>
  <limb Name="ProtectIndicator" ID="8" Type="None" Notes="" Scale="1" Flip="False" MirrorVertically="False" MirrorHorizontally="False" Hide="False" SpriteOrientation="NaN" InheritLimbDepth="None" SteerForce="0" Radius="0" Height="18" Width="25.2" Density="0.1" IgnoreCollisions="True" AngularDamping="7" AttackPriority="1" PullPos="0,0" StepOffset="0,0" RefJoint="-1" MouthPos="0,0" ConstantTorque="0" ConstantAngle="0" AttackForceMultiplier="1" MinSeveranceDamage="1" CanBeSeveredAlive="True" SeveredFadeOutTime="10" ApplyTailAngle="False" SineFrequencyMultiplier="1" SineAmplitudeMultiplier="1" BlinkFrequency="0" BlinkDurationIn="0.2" BlinkDurationOut="0.5" BlinkHoldTime="0" BlinkRotationIn="0" BlinkRotationOut="45" BlinkForce="50" OnlyBlinkInWater="False" BlinkTransitionIn="Linear" BlinkTransitionOut="Linear" HealthIndex="0" Friction="0.3" Restitution="0.05">
    <sprite SourceRect="0,149,28,20" Origin="0.5,0.5" Depth="0" Texture="" IgnoreTint="False" Color="255,255,255,0" DeadColor="255,255,255,255" DeadColorTime="0" />
    <lightsource castshadows="false" Color="0,255,0,100" Range="15" Scale="1" Offset="0,0" Rotation="0" Flicker="0.4" FlickerSpeed="100" PulseFrequency="0" PulseAmount="0" BlinkFrequency="0" comparison="or">
      <sprite texture="Content/Characters/Defensebot/DefenseBot.png" sourcerect="0,149,28,20" origin="0.5,0.5" size="1,1" alpha="1.0" />
      <lighttexture Texture="Content/Lights/pointlight_falloff.png" Origin="0.5,0.5" Size="1,1" />
      <Conditional AIState="Protect" />
    </lightsource>
  </limb>
  <joint Name="Joint 0 - 1" Limb1="0" Limb2="1" Limb1Anchor="-48.6114,58.955128" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="0.25" Scale="1" WeldJoint="False" ClockWiseRotation="False" />
  <joint Name="Joint 0 - 2" Limb1="0" Limb2="2" Limb1Anchor="47.55433,59.16373" Limb2Anchor="0,0" CanBeSevered="True" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="0.25" Scale="1" WeldJoint="False" ClockWiseRotation="False" />
  <joint Name="Joint 0 - 3" Limb1="0" Limb2="3" Limb1Anchor="-0.82164353,-55.57961" Limb2Anchor="-0.8491167,33.868114" CanBeSevered="True" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="False" UpperLimit="90" LowerLimit="-90" Stiffness="1" Scale="1" WeldJoint="False" ClockWiseRotation="False" />
  <joint Name="BarrelEnd" Limb1="3" Limb2="4" Limb1Anchor="0,-65" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="100" Scale="1" WeldJoint="True" ClockWiseRotation="False" />
  <joint Name="EscapeIndicator" Limb1="0" Limb2="5" Limb1Anchor="-2.6294203,36.501225" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="100" Scale="1" WeldJoint="True" ClockWiseRotation="False" />
  <joint Name="IdleIndicator" Limb1="0" Limb2="6" Limb1Anchor="-2.6294203,36.501225" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="100" Scale="1" WeldJoint="True" ClockWiseRotation="False" />
  <joint Name="AttackIndicator" Limb1="0" Limb2="7" Limb1Anchor="-2.6294203,36.501225" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="100" Scale="1" WeldJoint="True" ClockWiseRotation="False" />
  <joint Name="ProtectIndicator" Limb1="0" Limb2="8" Limb1Anchor="-2.6294203,36.501225" Limb2Anchor="0,0" CanBeSevered="False" SeveranceProbabilityModifier="0" BreakSound="gore" LimitEnabled="True" UpperLimit="0" LowerLimit="0" Stiffness="100" Scale="1" WeldJoint="True" ClockWiseRotation="False" />
</Ragdoll>