In Game HP Bars
by Robert Fritzen · in Torque Game Engine Advanced · 04/09/2011 (2:42 pm) · 4 replies
Where in the source is the code for the HP bars for objects you "look" at, I would like to remove them from my game.
About the author
Illinois Grad. Retired T3D Developer / Pack Dev.
#2
The bars still appear.
04/09/2011 (3:52 pm)
You sure? my playGui removed the GuiShapeNameHud a while back for debugging purposes (I'm trying to finish something I asked a while back: http://www.garagegames.com/community/forums/viewthread/124786).The bars still appear.
#3
I think you'll find what you want inside of source/T3D/fps/guiCrossHairHud.cpp. At the end of onRender() it does some raycasting masked for ShapeBase objects and calls drawDamage() to display a health bar.
04/09/2011 (4:16 pm)
Ooops, I misspoke. Sorry about that. The GuiShapeNameHud shows names, duh :DI think you'll find what you want inside of source/T3D/fps/guiCrossHairHud.cpp. At the end of onRender() it does some raycasting masked for ShapeBase objects and calls drawDamage() to display a health bar.
#4
04/09/2011 (4:26 pm)
Aha, there it is, thanks!
Associate Michael Hall
Distracted...
Easy removal would be to look at your playGui.gui and remove the GuiShapeNameHud GUI Control found there.