Game Development Community

(Aiming at) players/vehicles health bar code - can't find it

by Marcus L · in Torque 3D Professional · 05/17/2010 (3:39 pm) · 2 replies

I am trying to find the code in the engine that renders the aimed player/vehicle health bar. And, yes, I have tried to find it. I could probably find it after one day or so, but i think it might be more convenient to ask the people who know.

Thanks
Marcus L.

#1
05/17/2010 (7:38 pm)
T3D/gui/guiCrossHairHud.cpp
Near the end of onRender.

If you were thinking of unlinking this from showing only when you're looking exactly at an object, I might suggest that it could fit nicely into guiShapeNameHud.cpp.
#2
05/17/2010 (11:06 pm)
Thanks Henry, for some reason I didn't think it would be located at the crosshair code. And, nah, I'm thinking to use it as a starting point on my "change crosshair depending on what your aiming at" (enemy = red, ally = green).