Help - Search - Members - Calendar
Full Version: HUD Message
RCBot Forums > RCBot > Source Code
TroopeR600
How do u get a message on screen, just like when you start the game.
Like this: welcome (player name)
use the command "rcbot addbot" to add a bot etc. etc.

What i want is when you use the command "rcbot Waypoint on" (so you can see the waypoints) there comes a message on screen like above.

Thx tongue.gif
Cheeseh
well you could make your own tooltip i.e. UTIL_BotToolTip() in util.cpp,

add a new string that you want to say such as "Bots waypoints are on!!" to the end of the tooltips string array, and a a new identifier to the eToolTip enumerated type in bot_const.h such as BOT_TOOLTIP_WAYPOINT_ON at the end.

or you could do it yourself by using HudText class, i.e.

HudText hudmessage;

hudmessage.SayMessage("waypoints are on",player_edict_here);

using the tooltips is better because it doesn't interrupt any current hud messages shown to the user that the bot has executed so they get might get shown a bit later but at least it wont muck up the screen messages on the hud.
TroopeR600
Ok, thx for your help
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2020 Invision Power Services, Inc.