More cleanup.

This commit is contained in:
Kiri 2023-08-26 15:36:26 -07:00
parent e57fcd5767
commit 09c701af9f
3 changed files with 7 additions and 29 deletions

29
TODO.md
View File

@ -1,29 +0,0 @@
# TODO
n Deployed sprites for every angle (wall)
n - Showing charge level
n Deployed sprites for every angle (ceiling)
n - Showing charge level
x flat sprite? Advantages: One direction, can probably be used on ceiling and wall.
x - Showing charge level
x Sparks
x Debris when destroyed
x Show remaining batteries as ammo
x Switching to mag manager goes to batteries screen
x Empty batteries disappear
x Add (or make sure) loadout code in loadout editor
x Help screen
x Pickup sprites for every angle
n - Spool of wire, a tool, and some electical tape
x Set bulk
x 1st-person sprites
n Wire cutters and electrical tape
- Pickup sound
- Fault detection sound
- ready animation

View File

@ -425,6 +425,13 @@ class JumperCablesUsable : HDWeapon
player.getpsprite(355).frame = frame_left;
player.getpsprite(356).frame = frame_right;
// Play a sound if we just discovered a broken line.
if(invoker.lastIndicatorStatus != player.getpsprite(PSP_WEAPON).frame) {
if(invoker.lastIndicatorStatus != 1 && player.getpsprite(PSP_WEAPON).frame == 1) {
A_StartSound("herp/beep", CHAN_WEAPON);
}
}
// Set indicator status fo the HUD.
invoker.lastIndicatorStatus = player.getpsprite(PSP_WEAPON).frame;