Changing Player Name Colors
by Cyberkada · in Torque Game Engine · 08/22/2006 (5:26 pm) · 2 replies
I want to change the color of the player name above the player entity to represent a team color, and also lists the team name. Any ideas?
About the author
#2
09/21/2007 (5:21 pm)
I heavily modified GuiShapeNameHud based in several resources here, primarily the faction resource and Dreamers GuiCrosshair resource. The updated version displays player name, empire (team) name, either in faction color or enemy status (neutral, friendly, allied), distance and color-changing damage and can be turned off. I will post an updated version.
Associate Orion Elenzil
Real Life Plus
modify GuiShapeNameHud::drawName() to accept a color value,
which you can set according to the player's team.
edit: that's where you could display the team name, too.
note, things'll work better if you've got team color & name implemented as variables in the engine.