Page 1 of 5
healthbars widget (v7) *Jan. 4 08*
Posted: 06 Aug 2007, 05:13
by jK
It has larger bars, is more eyecandy and has additional bars for:
- emp
- capture
- resurection
- STOCKPILE
- buildprogress
- shield
- morph
- weapon reload.

version 7:
*updated to spring 76b1 (MUCH faster now)
*added shield and morph bar
*removed bugfix for billboard bug (fixed in 76b1)
version 6.1:
*fixed overlay (wasn't displayed at all)
version 6.0:
*hide full health bars now
*
added an overlay for stunned units
version 5.16:
*fixes
version 5.1:
*massive speedup (upto 40%!)
version 5:
*add reload bar
*hide health of units in progress, if their health corresponds to their build progress
version 4.x:
*fixed the height difference with the rank widget (not 100% solved)
*I found the bug in trepans billboard matrix, so i don't need the vertex shader anymore
*add a new secret bar (i am sure you will like it

)
*reduced the wreckage healthbars
*fixed stockpile texture
*add transparency
*add F9 toggle

(version 7)
Posted: 06 Aug 2007, 07:13
by AF
Its absolutely amazing, best widget sinc ssliced bread!
Posted: 06 Aug 2007, 08:52
by bwansy
This is one of the great yet trivial-to-make things that everyone had overlooked. Good job.
However, it doesn't display the build status of stockpile weapons and experience bar of each unit. The experience bar is not important, but stockpile weapon bar would be really helpful.
Posted: 06 Aug 2007, 19:32
by Acidd_UK
Me likey bouncy, me likey bouncy!
Posted: 06 Aug 2007, 19:43
by Neddie
What is the overhead of this widget?
Posted: 06 Aug 2007, 19:47
by imbaczek
this is the definition of 'pure win'.
Posted: 06 Aug 2007, 19:52
by Peet
This widget wins multiple internets.
neddiedrow wrote:What is the overhead of this widget?
I did a quick test, there was no change in FPS or cpu usage with >100 units, changing between normal bars and the widget's.
Posted: 06 Aug 2007, 20:03
by MelTraX
This is really cool..
It doesn't quite align with the rank icons yet though.. Trepans ETA, your Healthbars and quatums rank icons should have the same position calculation.. Right now the health bars move relative to the rank icons.. I don't know which positioning is better though..
edit: And maybe you can do some magic that all those bars hovering above a factory aren't on top of each other.. It has always been kinda hard to tell which bar belongs to the factory and which one to the unit being built..
Posted: 07 Aug 2007, 10:11
by jK
the different level is cause the i use depthtest (like the default healthbars), so i need it to prevent unit interaction with it. btw i plan to integrate the to rank widget into the healthbars (to use a vertex shaders instead of the gl.Billboard).
and i have an idea to solve the issue with the factories but it don't really know how to use gl.PolygonOffset

it thought it would be nice if the healthbars of the factories are much deeper, but there they interact with the model, so i would need PolygonOffset.
Posted: 07 Aug 2007, 11:33
by Crampman
Could it be possible to disable the healthbar of the unit being built, and add a 'build-progress-bar' to the factory ?
Posted: 07 Aug 2007, 11:51
by jK
it is not that easy cause you can't differ (easily) between units/buildings which are build by a unit or a factory.
And btw, i want to be able to see the units health during building (i.e. somebody bombs your in progress krog etc.).
Posted: 07 Aug 2007, 11:54
by AF
If I were to create the ETA AI in lua I would use this widget as a basis rather than an empty one.
Posted: 07 Aug 2007, 17:15
by 1v0ry_k1ng
would it be possible to repositon the healthbar so it does not clash with the experience cheveron widgt?
I love this widget, only complaint is that the bars are a little too big so when you have lots of units your view is mostly lots of bars
Posted: 07 Aug 2007, 17:33
by AF
actually I like it as it is.
However 2 suggestions:
Make the text in the bars less transparent
Make the whole bar+text more tansparent and smaller, but as the mouse comes nearer or the camera target or theyre selected, they get more opaque and bigger
Posted: 07 Aug 2007, 20:00
by jK
1v0ry_k1ng wrote:I love this widget, only complaint is that the bars are a little too big so when you have lots of units your view is mostly lots of bars
you can change the size easily in the widget file. there is a var at the top of unit_healthbars.lua: barWidth
Posted: 07 Aug 2007, 20:36
by 1v0ry_k1ng
cheers jK
Posted: 08 Aug 2007, 04:15
by REVENGE
Moar Win.
Posted: 09 Aug 2007, 01:35
by Acidd_UK
I think there's a bug in this, where sometimes, it displayes the healtherbar after the unti is dead - it the healthbar stay on the unit's wreck .I thought maybe this was something to do with rezzing or reclaiming, but I saw a pair of 'metal dust' wrecks, that were identical graphics and amount of m in them, but one of them had a healthbar!
Posted: 09 Aug 2007, 04:32
by jK
this was a problem with <v4.03
now it should filter such bars out. if it still does in v4.1, please tell me :)
and btw hp!=metal of wreckage

(sorry about all those small updates in v4, i was a bit careless

)
Posted: 17 Aug 2007, 22:52
by MelTraX
What do you think about showing only the build bar while building as long as it is the same amount as the health?