From 09c701af9fc3e2f9edce6fc628995109f47c2034 Mon Sep 17 00:00:00 2001 From: Kiri Date: Sat, 26 Aug 2023 15:36:26 -0700 Subject: [PATCH] More cleanup. --- TODO.md | 29 ----------------------------- GLDEFS.txt => gldefs.txt | 0 zscript.zs | 7 +++++++ 3 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 TODO.md rename GLDEFS.txt => gldefs.txt (100%) diff --git a/TODO.md b/TODO.md deleted file mode 100644 index ac5150d..0000000 --- a/TODO.md +++ /dev/null @@ -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 - - diff --git a/GLDEFS.txt b/gldefs.txt similarity index 100% rename from GLDEFS.txt rename to gldefs.txt diff --git a/zscript.zs b/zscript.zs index ceda82e..c4f90e3 100644 --- a/zscript.zs +++ b/zscript.zs @@ -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;