Author Topic: Critical Subsystem HUD Gauge  (Read 448 times)

0 Members and 1 Guest are viewing this topic.

Critical Subsystem HUD Gauge
Have you ever built a mission that's complicated, and asks the player to destroy a bunch of subsystems, but playtesters get hung up trying to find them?
Ever wished you could let them easily target the next subsystem? Wished they had a good list of what was left to do?

Well, now your frustration is over!
I've built a lua script that lets players easily target critical subsystems (as defined in FRED).

The idea for this came from reading the Blue Planet forum somewhere, but I don't think their script was ever released, so here I am releasing!



You can find the code on github here: https://github.com/tcrayford/fso-critical-subsystem

There's a detailed README and getting started guide there.

The player can press (by default) the "d" key to select the next critical subsystem.

From FRED, you call `lua-add-critical-subsystem` to add a subsystem the the gauge (which will make it display).

If a subsystem on the list is destroyed, and the player is targeting it, then the next target selected will be the next critical subsystem on the list (if there is one).

This script requires a relatively recent FSO build, it uses the `On Subsystem Destroyed` hook, which was added in May 2019 by Goober5000 (thankyou!).

Thanks to Axem for chatting to me about the features in this script, and the Blue Planet team for the idea.

 

Offline Novachen

  • 29
  • The one and only capella supernova
    • Twitter
Re: Critical Subsystem HUD Gauge
Well, looks good to use it together with the Subsystem Hotkey script, i am using to mark mission critical subsystems without to use the actual hot key functionality.
« Last Edit: September 28, 2019, 08:48:48 am by Novachen »
Female FreeSpace 2 pilot since 1999.
Global moderator in the German FreeSpace Galaxy Forum.

Responsible for the german translation project FreiRaum - FreeSpace auf Deutsch.
Also responsible for the Nova Upgrade Project, which upgrades and fix older campaigns to make them play- and solveable again with current builds and MediaVPs.

Release List:
German Translations:
Awakenings, Between the Ashes 1, Deneb III, FreeSpace 2 (in development), FreeSpace Port, Silent Threat: Reborn & The Destiny of Peace

Nova Upgrades:
A Walk in the Sun, Into the Halls of Valhalla, Luyten Civil War, Renegade Resurgence, Revenge: Final Conflict (in development), Rogues!, Shadow Genesis (de-facto), Storm Front Saga, The Deuterium Connection, Venice Mirror & What If: Another Great War

 

Offline Darius

  • 211
Re: Critical Subsystem HUD Gauge
Thank you! Anything to make targeting easier gets a thumbs up from me  :yes:

The readme doesn't mention keybinds, is there a way to change the default bind? I'm using a wasd control scheme currently.

 
Re: Critical Subsystem HUD Gauge
Darius: I've updated the README, but you can edit this line

Code: [Select]
self.Key = "D"

to any other key.

 
Re: Critical Subsystem HUD Gauge
Nice work you did there! :)

  

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Critical Subsystem HUD Gauge
Yeah, this was gonna be a big feature in the Act 4 BP bomber gameplay.