.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Walking on Corpses... (http://forums.bots-united.com/showthread.php?t=946)

Cpt_Andrew 01-03-2004 16:02

Walking on Corpses...
 
Hi,

I am running the HPB bot with my own mod, and have hit a slight problem. In my mod there is a 3 second delay between being killed and being allowed to respawn. If you walk over a dead bot before it has respawned the game slows down. Alot. I am currently scratching my head over this, and wondered if anyone had any ideas.

Any thoughts appreciated, :)

Andrew.

Pierre-Marie Baty 02-03-2004 01:01

Re: Walking on Corpses...
 
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.


All times are GMT +2. The time now is 16:09.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.