![]() |
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. |
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.