Rear Railgun Controller/Additional Railgun Loaders

Tested code for new Railgun items
 
* "Rear Railgun Controller" - Rearward facing Railgun controller

* "Railgun Single Loader" - Vertical loader with 1 shell capacity
* "Forward Railgun Loader" - Forward facing loader with 1 shell capacity
* "Rear Railgun Loader" - Rearward facing loader with 1 shell capacity

Gives sub makers more variety and different ways to arm subs. Can also be used to make a challenging balance with the weapons that requires more teamwork to operate. Also useful for simulating torpedo's tubes

Sprite example:
https://imgur.com/muAIF9P

All items tested and implemented.
This commit is contained in:
ClasticM
2018-05-18 19:58:09 -05:00
committed by GitHub
parent 95fc1cc025
commit 9da4deaed5

View File

@@ -47,6 +47,31 @@
<limbposition limb="RightHand" position="43,-85"/>
</Controller>
<ConnectionPanel selectkey="Action" 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="Rear Railgun Controller"
category="Machine"
type="Controller"
linkable="true"
disableitemusagewhenselected="true"
>
<Sprite texture ="railgunetc2.png" depth="0.8" sourcerect="188,0,57,96"/>
<Controller UserPos="35, -50.0" direction ="Left" canbeselected = "true">
<limbposition limb="Head" position="-5,-62"/>
<limbposition limb="Torso" position="-5,-108"/>
<limbposition limb="LeftHand" position="43,-85"/>
<limbposition limb="RightHand" position="43,-85"/>
</Controller>
<ConnectionPanel selectkey="Action" canbeselected = "true" msg="Rewire [Screwdriver]">
<requireditem name="Screwdriver,Wire" type="Equipped"/>
<input name="power_in"/>
@@ -69,6 +94,51 @@
<Containable name="Ancient Weapon"/>
</ItemContainer>
</Item>
<Item
name="Railgun Single Loader"
category="Machine"
linkable="true"
>
<Sprite texture ="railgunetc2.png" depth="0.8" sourcerect="131,2,46,128"/>
<ItemContainer hideitems="false" drawinventory="true" capacity="1" slotsperrow="1" itempos="23,-76" iteminterval="0,0" itemrotation="90" canbeselected = "true">
<Containable name="Railgun Shell"/>
<Containable name="Nuclear Shell"/>
<Containable name="Ancient Weapon"/>
</ItemContainer>
</Item>
<Item
name="Forward Railgun Loader"
category="Machine"
linkable="true"
>
<Sprite texture ="railgunetc2.png" depth="0.8" sourcerect="1,2,128,46"/>
<ItemContainer hideitems="false" drawinventory="true" capacity="1" slotsperrow="1" itempos="49.5,-22.7" iteminterval="0,0" itemrotation="0" canbeselected = "true">
<Containable name="Railgun Shell"/>
<Containable name="Nuclear Shell"/>
<Containable name="Ancient Weapon"/>
</ItemContainer>
</Item>
<Item
name="Rear Railgun Loader"
category="Machine"
linkable="true"
>
<Sprite texture ="railgunetc2.png" depth="0.8" sourcerect="1,50,128,46"/>
<ItemContainer hideitems="false" drawinventory="true" capacity="1" slotsperrow="1" itempos="76,-22.7" iteminterval="0,0" itemrotation="180" canbeselected = "true">
<Containable name="Railgun Shell"/>
<Containable name="Nuclear Shell"/>
<Containable name="Ancient Weapon"/>
</ItemContainer>
</Item>
<Item
name="Railgun Shell"