<Items>
  <Item
    name="Railgun"
    focusonselected="true"
    offsetonselected="500"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railgunbase.png"/>

    <Turret barrelsprite="railgunbarrel.png" canbeselected = "true" linkable="true" origin="0.5, 0.85" barrelpos="117, 57" 
            rotationlimits="180,360"
            powerconsumption="500.0">
      <Sound file="railgun.ogg" type="OnUse"/>
    </Turret>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver,Wire" type="Equipped"/>
      <input name="power_in"/>
      <input name="position_in"/>
      <input name="trigger_in"/>
    </ConnectionPanel>
  </Item>

  <Item
    name="Railgun Controller"
    type="Controller"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railguncontroller.png" depth="0.8"/>
    
    <Controller userpos="-1" direction ="Right" canbeselected = "true">
      <limbposition limb="Head" position="0,-124"/>
      <limbposition limb="LeftHand" position="38,-125"/>
      <limbposition limb="RightHand" position="38,-125"/>
    </Controller>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver,Wire" type="Equipped"/>
      <input name="power_in"/>
      <output name="position_out"/>
      <output name="trigger_out"/>
    </ConnectionPanel>
  </Item>

  <Item
    name="Railgun Loader"
    linkable="true"
    pickdistance="150">

    <Sprite texture ="railgunloader.png" depth =" 0.8"/>

    <ItemContainer hideitems="false" drawinventory="true" capacity="5" itempos="54,-61" iteminterval="40,0" itemrotation="90" canbeselected = "true">
      <Containable name="Railgun Shell"/>
    </ItemContainer>
      
  </Item>
  
  <Item
    name="Railgun Shell"
    pickdistance="200">

    <Sprite texture ="railgunshell.png" depth ="0.5"/>

    <Body width="87" height="18"/>

    <Holdable slots="BothHands" holdpos="0,-50" handle1="-10,0" handle2="10,0" aimable="false"/>
    
    <Projectile launchimpulse="80.0">
      <Attack damage="100" bleedingdamage="10" structuredamage="200" damagetype="Blunt"/>
    </Projectile>

    <ItemContainer hideitems="true" capacity="1" canbeselected = "true">
      <Containable name="smallitem"/>
    </ItemContainer>    
  </Item>
</Items>

