View Single Post
Re: Walking on Corpses...
Old
  (#2)
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: Walking on Corpses... - 02-03-2004

The HPB_bot keeps pressing the IN_ATTACK key (fire key) when it's dead in order to respawn as soon as possible. You might want to set up a timer in the BotThink() function to let this happen only after 3 seconds of death or so.

Or perhaps (especially if there is some sort of spectator mode during this 3 seconds delay) the bot believes it's alive while it's spectating someone else and attempts to take control of that other player, wasting a lot of resources. If so, you might need to adapt the IsAlive() function for your bots to know exactly when they're alive and when not.



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