.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Walking on Corpses...
Old
  (#1)
Cpt_Andrew
Guest
 
Status:
Posts: n/a
Default Walking on Corpses... - 01-03-2004

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.
  
Reply With Quote
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com