.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   FIX: incorrect timer_pickup value (http://forums.bots-united.com/showthread.php?t=1562)

sPlOrYgOn 01-05-2004 06:26

FIX: incorrect timer_pickup value
 
Fixed the bot not getting the timer_pickup value in podbot.cfg
in dll.cpp in StartFrame where it reads podbot.cfg:
Code:

          else if (FStrEq (cmd, CONSOLE_CMD_TIMEPICKUP))
            {
              g_fTimeSoundUpdate = atof (arg1);  // changing the sound even tho it's pickup is bad
              if (g_fTimePickupUpdate < 0.1)
                  g_fTimePickupUpdate = 0.1;

              UTIL_ServerPrint ("Pickup Update Timer set to %f secs\n", g_fTimePickupUpdate);
              break;
            }

should be:
Code:

          else if (FStrEq (cmd, CONSOLE_CMD_TIMEPICKUP))
            {
              g_fTimePickupUpdate = atof (arg1);  // this is what changed SoUlFaThEr
              if (g_fTimePickupUpdate < 0.1)
                  g_fTimePickupUpdate = 0.1;

              UTIL_ServerPrint ("Pickup Update Timer set to %f secs\n", g_fTimePickupUpdate);
              break;
            }


Huntkillaz 01-05-2004 06:41

Re: FIX: incorrect timer_pickup value
 
nice... keep it up mate :D
soon u can be our alternative to pmb :P

Austin 01-05-2004 08:44

Re: FIX: incorrect timer_pickup value
 
Nice, work sPlOrYgOn vbmenu_register("postmenu_13694", true); , keep it up!

MusicMan 01-05-2004 09:41

Re: FIX: incorrect timer_pickup value
 
would you be so kind and comment the lines you have changed to make it more readable. Thanks;)

SoUlFaThEr 01-05-2004 15:54

Re: FIX: incorrect timer_pickup value
 
i dont see a difference in the 2 pieces of code you placed......

sPlOrYgOn 01-05-2004 16:38

Re: FIX: incorrect timer_pickup value
 
look closer :D

i'll edit the post and tell you what changed.

Hot-Doc 01-05-2004 19:20

Re: FIX: incorrect timer_pickup value
 
The second line has changed - has been really quite hard to recognize, this way is much better now.

Except the fact that hopefully nothing has changed SoUlFaThEr so that he's still the same good guy he used to be... ;)

I know, bad joke, just ignore me for now

>BKA< T Wrecks 01-05-2004 20:41

Re: FIX: incorrect timer_pickup value
 
Hehehe, not that bad, actually... but I sure hope SoUlFaThEr's source code won't be published and analyzed here... guess we'd better keep him as he is; he seems to work quite well. :D :D :D

Btw, could somebody explain to me poor coding analphabet in what way the timer pickup affects me when I'm playing CS, or what the timer pickup actually is ? Excuse my ignorance...

sPlOrYgOn 01-05-2004 20:46

Re: FIX: incorrect timer_pickup value
 
I think it's the time a bot takes to "think" and react to pickup a gun.
like *thinking* should i pick up that ak or keep this m4...
just to simulate real people..

>BKA< T Wrecks 01-05-2004 21:07

Re: FIX: incorrect timer_pickup value
 
Ah. Thanks for the explanation!

(Btw: If bots were acting as human as me, they'd have an unfailing talent for picking up empty guns seconds before a well-armed enemy comes running around the next corner... :| )


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

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