Page 1 of 1

Displaying Bars

PostPosted: Wed Nov 21, 07 10:29 pm
by Batchy
I was just wondering how would one display bars above a players head.

For example a HUD maybe?

Im just interested as i may use it in a mutator im attempting to make ;)

PostPosted: Wed Nov 21, 07 10:50 pm
by Survive.
Like health bars or names?

PostPosted: Wed Nov 21, 07 11:08 pm
by Batchy
Yes Health Bars. I already have the glow around the body, but i feel i should encapsulate it.

PostPosted: Thu Nov 22, 07 2:53 pm
by Allan
Are you using a HUD overlay window to make this? (IE: like AugmentationDisplayWindow)

If you are, have a look at the code for ADS in AugmentationDisplayWindow, it has something for drawing a line and a text box that moves with the rockets/projectiles that go your way.
Or you could just draw the health of the player currently in the targeting reticle. It'd be easier. as you could have a static bar, but it would only be that person.

PostPosted: Thu Nov 22, 07 2:55 pm
by Alex
I'd take a look at ADS and vision. Vision shows all players, perhaps you can use the bit of code that processes all players in combination with text showing of ADS or whatever.

PostPosted: Thu Nov 22, 07 3:18 pm
by Batchy
Ahh yeah i forgot about the augs cheers ;)