Railgun HUD (shows supercapacitor charge & how many shells there are left)

This commit is contained in:
Joonas Rikkonen
2017-11-27 19:34:57 +02:00
parent f4f58622e1
commit 51fe7df481
10 changed files with 189 additions and 32 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -7,15 +7,20 @@
linkable="true"
>
<Sprite texture ="railgunbase.png" depth = "0.01"/>
<Sprite texture="railgunbase.png" depth = "0.01"/>
<Turret barrelsprite="railgunbarrel.png" canbeselected = "true" linkable="true" origin="0.5, 0.85" barrelpos="128, 128"
rotationlimits="180,360"
powerconsumption="20000.0">
powerconsumption="20000.0"
showchargeindicator="true"
showprojectileindicator="true"
hudtint="0.4,0.6,0.7,0.05">
<StatusEffect type="OnUse" target="This">
<sound file="Content/Items/Weapons/railgun.ogg" range="5000"/>
<Explosion range="1000.0" structuredamage="0" force="0.01" camerashake="10.0"/>
</StatusEffect>
<Crosshair texture="crosshair.png"/>
<DisabledCrosshair texture="disabledCrosshair.png"/>
</Turret>
<ConnectionPanel selectkey="Action" canbeselected = "true" msg="Rewire [Screwdriver]">