[REL] Commander Health Display v2.7.4 [61250]

Discussion in 'Mod Discussions' started by Raevn, August 14, 2013.

  1. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Continues to work in 57449.
  2. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    I made a version 2.4, that looks nice. The green bar goes red when your commander goes below 90% HP, then turns back to green when he's fully healed up. The display also vanishes when you are spectating (dead).[​IMG]
    Would be nice if my rewrite could replace the "official" version in some way.

    Doesn't seem possible, but I'm no expert. When I tested with multiple commanders, it displayed the HP of my ally *shrug*.

    Attached Files:

  3. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Nice now it only needs to select the commander when you click on it.
    LavaSnake likes this.
  4. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    I'm going to be away for a week, but when I get back I want to (or at least try to):
    • Add commander select on click.
    • Add simple configuration options to files (not in-game), including hide commander health panel when he's not damaged, and relocation of the panel.
    • Sort out what happens when you have multiple commanders.
    • Display a commander icon that matches your in game commander (model.players().commander sort of thing possible?.. No game fies on me to check right now, and if its not, then plz Uber ;) )
    • FLASHING. Something to make it even more obvious when your commander's in trouble.
    cwarner7264, zaphodx and LavaSnake like this.
  5. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Sweet! Thanks for updating this! It's one of my all-time favorite mods.
  6. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Select commander
    api.select.commander, function () { api.camera.track(true); }
    Raevn likes this.
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Awesome work, burntcustard!
  8. mishtakashi

    mishtakashi Active Member

    Messages:
    369
    Likes Received:
    217
    Loving the look of this version of the health bar. UI is getting better all the time. I've just one point to suggest: having the health bar appear in the center of the screen covers over the mex counter mod - could it perhaps be re positioned in the top right as it was before?

    Edit: just saw burnt custard's to do list includes relocation of the health bar, my bad.
    Last edited: December 2, 2013
  9. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Nearly! data-bind="click: function() { api.select.commander(); api.camera.track(true); }"
    This isn't the neatest code ever...

    Been making a bit of progress. Done the tracking (with a bit of help from Baconiffic) and getting the position of the health bar in the middle or top right depending on what .css is mentioned in the mods .ini file.
    cwarner7264 and mishtakashi like this.
  10. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Is there an interest from other people in having it only appear when the commander is in trouble?

    Code:
    '<div id="commander_info" data-bind="visible: (showResources && model.alertModel.commanderUnderAttack())">'
  11. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    This is already used to show the "Warning" text, however the implementation of this function is very rudimentary - your commander is considered "under attack" if it's heath goes below 90%, and then no longer considered "under attack" if it is then repaired back to > 99% health.
  12. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Yeah, I'll just keep it for myself then. I like this mod, but I'm really only interested in it when I'm not at full health. I think the other benefit of doing it this way is that it would take advantage of any updates they make to the commanderUnderAttack() function.
    cwarner7264 likes this.
  13. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    New version. Strike-throughed out points have been implemented. Also some bug fixes :)
    • Add commander select AND TRACK on click.
    • Add simple configuration options to files (not in-game), including hide commander health panel when he's not damaged, and relocation of the panel.
    • Sort out what happens when you have multiple commanders.
    • Display a commander icon that matches your in game commander (model.players().commander sort of thing possible?.. No game fies on me to check right now, and if its not, then plz Uber ;) )
    • FLASHING. Something to make it even more obvious when your commander's in trouble.

    Attached Files:

    Raevn, kongkillha, LavaSnake and 4 others like this.
  14. mishtakashi

    mishtakashi Active Member

    Messages:
    369
    Likes Received:
    217
    Love the ease of use with this, job well done :)
  15. keterei

    keterei Active Member

    Messages:
    258
    Likes Received:
    93
  16. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Just pushed v2.5 to PAMM :) Thanks burntcustard!
  17. Gerfand

    Gerfand Active Member

    Messages:
    575
    Likes Received:
    147
    Can we have multiple commaders tracker for team games... one for every commander
  18. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Still don't think it can be done :(
  19. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Got it :)

    commander.PNG
  20. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Is it sad that I'm excited to watch several different people all chipping away at the same mod, piece by piece, and seeing it assemble in front of us?
    Methlodis and Raevn like this.

Share This Page