Open Klaranth opened 2 years ago
I have checked Pandorabox's mod set and it does not seem to include any mods for custom HUDs for modded stats, just the default MTG hunger and health hudbars.
I'm not actually sure what the armour bar indicates, it just seems to go up when you have more armour in good condition. Since there is no real hard cap on the armour in 3d_armor, that may be hard to represent. I feel like it makes sense on pandorabox to remind you if you're wearing armour since there is combat with monsters (that is why we have the armour right?)
Wuzzy's hudbar
s (link) can allow us to add custom hudbars, and the compatible mod hbarmor
(link) will add a hudbar for armour from e.g. 3d_armor
. By default these mods render as a continuous bar but with hudbars_bar_type
one can configure them to be more like the built-in hud bars.
Alternatively a suitable mod could be written that draws just the armour and uses a custom algorithm if Wuzzy's armour bar algorithm isn't pleasing. For example, one that draws one bit of armour for every armour level, minus wear and tear?
Fuzzy condition on hud (good, broken, ruined) without stopping for closer inspection (inventory)?
There is a very quick way to see if/what one is wearing: change camera to third person view. Also there are chat warnings when things get critical. imo a hud for six armour slots is overkill especially for small screens.
So the hbarmor algorithm is to select up to 4 pieces of armor, get their wear state, and draw 0-100% wear state as a bar. If the icons mode is used instead of the continuous bar, this rounds to the nearest 10% such that are are 1-10 icons visible (or 10 icons visible, shaded differently in another config). It also adds a globalstep that draws a hud.
Pandorabox probably wants a different solution than that, or the ability to turn it on/off per-player with a chat command at least.
Drawing HUDs is exactly the kind of thing CSMs+modchannels would be nice to experiment with, though at this stage that means asking people to install CSMs themselves and that's kind of sketchy. Unless the CSM API can already know about the 3D Armor inventory slots?
Blockhead an armour hudbar