View Single Post
Re: send debug to HUD text?
Old
  (#7)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: send debug to HUD text? - 24-01-2004

Hmm I just made something neat
I made a few classes so you can display text like the way you can do with cout. For example:
Code:
rcout << "Max speed: " << bots[NearestBotInd].f_max_speed << "\n";
To display the text in the right-down corner on your screen.

You can use it by adding(and adapting) the files in your project, then declare
something like this in a file like dll.cpp:
Code:
CBaseOutput cout;
CLeftOutput lcout;
CRightOutput rcout;
CMiddleOutput mcout;
and include bot_io in in a file which is 'included' much like util.h
Attached Thumbnails
Click image for larger version

Name:	debugtext2.jpg
Views:	405
Size:	90.5 KB
ID:	48  
Attached Files
File Type: cpp bot_io.cpp (1.4 KB, 419 views)
File Type: h bot_io.h (2.0 KB, 399 views)
  
Reply With Quote