That simply returns true if the selected unit has a secondary fire ability (eg. commander - Uber Cannon), so it can show the Alternate Fire Icon in the command list.
Fixed for v.61250. Feels kind of like a hack, may reduce performance (just a tiny tiny bit?) Line 12 in rCommanderHP.js was added, for those who want to have a look.
Thanks for finding that, and for making the code cleaner too For the css though, it a bit neater to just add the file to modinfo.json, so it's loaded at the start and not inline. Also added in the icon for the tank commander. I'll switch this over to using the blueprint info framework to get the build pictures and actual HP stats (currently hard coded) once the issues with Macs are sorted out - don't want to make this unusable for those people yet. Just testing, then will upload to PAMM. Edit: uploaded to PAMM.
Ah, I didn't think of that! Nice Will there be any advantage to using the blueprint framework for HP stats?
I was referring to if the build pic or HP values change, it would automatically update with the new values. Also, shushhhhhh don't give away my secrets
I'll try to figure out how to make this mod "look pretty" and fit in with the new Gamma UI soon (Monday, probably), but I can't guarantee I'll get the commander pic / update to Blueprint Info Framework working. So maybe someone else could work on getting a picture of my "fat raptor" commander I've been choosing into the little square box? Edit: Nobody move, I'm making progress Edit: Couldn't figure out the Blueprint Info Framework stuff, so here's a nice-looking version with a fixed (as in constant) commander image. For a quick fix, anyone using this could replace "'<img src="img/build_bar/units/imperial_delta.png"/>' +" in rCommanderHP.js with an image location of their choice. Is it worth putting this on PAMM? It works a lot better than the current version, at least.