IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HUD Message, need help again...
TroopeR600
post Apr 26 2005, 12:26 PM
Post #1


Member
**

Group: Members
Posts: 11
Joined: 18-April 05
Member No.: 541



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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Apr 26 2005, 10:32 PM
Post #2


Admin
*****

Group: Admin
Posts: 3,018
Joined: 11-September 03
From: uk
Member No.: 1



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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
TroopeR600
post Apr 28 2005, 12:19 PM
Post #3


Member
**

Group: Members
Posts: 11
Joined: 18-April 05
Member No.: 541



Ok, thx for your help
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 13th December 2019 - 09:40 AM