View Single Post
Re: HPB_bot4.0 DOES work for steam
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: HPB_bot4.0 DOES work for steam - 20-01-2004

It's my fault

I didn't know that the sentry guns and the dispensers also had the FL_MONSTER flag...

To fix this, add these two lines in BotFindEnemy() in the bot_combat.cpp file: (lines starting with "context" are here to show you where to commit the changes)
Code:
(context)  if (!IsAlive (pMonster))
(context)	 continue; // discard dead or dying monsters
 
		   if (strncmp ("building_", STRING (pMonster->v.classname), 9) == 0)
			  continue; // TFC: skip sentry guns and dispensers
 
(context)  vecEnd = pMonster->v.origin + pMonster->v.view_ofs;
(context)
Here's included an updated HPB_bot dll... someone gotta compile it for Linux also
Attached Files
File Type: zip HPB_bot_mm.zip (88.3 KB, 515 views)



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote