.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Detecting fall damage in a safe way? (http://forums.bots-united.com/showthread.php?t=338)

A$$A$$IN 21-01-2004 02:18

Re: Detecting fall damage in a safe way?
 
One quick question, if you base damage estimate solely on fall speed, then won't the bot fear jumping long distances into water, like the bridge in de_aztec? Falling into water doesn't hurt like falling on to a solid surface. Or am I just being a pain in the butt?

Pierre-Marie Baty 21-01-2004 03:08

Re: Detecting fall damage in a safe way?
 
WHOA, I stand corrected. Indeed. Here's a bug. A lovely bug man !!

Well I suppose we'll need to add another check
Code:

// pseudocode
IF ((the bot WAS falling fast enough to get some damage)
        AND (the bot JUST received damage from worldspawn))
  THEN it's a dangerous fall

Thanks a lot !!! :D

A$$A$$IN 21-01-2004 06:30

Re: Detecting fall damage in a safe way?
 
In real life, I am a programmer of database applications using Visual Basic and Microsoft Access. But I suck at C/C++, so I will leave the actual coding to the experts. But this bot stuff is interesting to me from an algorithmic perspective.

botmeister 21-01-2004 09:26

Re: Detecting fall damage in a safe way?
 
Quote:

Originally Posted by A$$A$$IN
In real life, I am a programmer of database applications using Visual Basic and Microsoft Access. But I suck at C/C++, so I will leave the actual coding to the experts. But this bot stuff is interesting to me from an algorithmic perspective.

Welcome to Bots United fellow database programmer! :D

I've also been doing database programming using MS Access and SQL databases. If you dig into C++ while playing around with something that's fun to do (like bot programming), you'll learn fast.

btw, I thought this was real life o_O ?

A$$A$$IN 21-01-2004 22:56

Re: Detecting fall damage in a safe way?
 
If this was real life, wouldn't you be building Terminators? :)

Pierre-Marie Baty 22-01-2004 04:20

Re: Detecting fall damage in a safe way?
 
Sarah... Connor ?



:D

Fiber_Optic 22-01-2004 11:36

Re: Detecting fall damage in a safe way?
 
- No, try the next door...
- Sarah Connor?
- yes?
- (pmmm) (pmmm)


(lol, french reference... sry.. PMB should understand)


All times are GMT +2. The time now is 01:08.

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