.:: 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
*BUGBUGBUG* affects all HL bots!!!
Old
  (#1)
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 *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

...and possibly even the official CS bots too!!

Noticed that today.

When you want to make your bot strafe, basically all you do is raising the "strafe_speed" parameter of RunPlayerMove() to the bot's max speed, right ?

Well have you noticed the effect ? The bots pass from a 0 velocity to full strafe speed in a fraction second ! Try to make your bots strafe left then right in a loop, to see, and try to do the same as a human player : human players can't strafe that fast !!!

Anyone to confirm this behaviour by looking in the engine source code (hint hint, Mike) ?

What to do ? How to fix that ?



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
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#2)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

Can't really test with a human since a human can't exactly press the two strafe keys at different times in 0.017 seconds
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#3)
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: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

No, what I mean is, try strafing two steps on your left, then immediately strafe two steps on the right ; you'll notice that while your player was strafing on the left it will slow down until standing still and then progressively begin strafing on the right, increasing its speed. Bots don't do that, they begin strafing full speed as soon as they are asked to. This is unfair. Try it.



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
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#4)
Fiber_Optic
Guest
 
Status:
Posts: n/a
Default Re: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

I've already noticed that on all bots I aready tested.
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#5)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

Are you limiting the sidemove speed to something less than or equal to cl_sidespeed?

Is this in Counter-Strike only or did you try other MODs (Half-Life deathmatch, TFC, etc.)?

I assume you are using valid msec values in pfnRunPlayerMove(), but make sure they are correct otherwise you get weird movement results.

botman
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#6)
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: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

My strafe speed is the same float value that is passed in pfnSetClientMaxSpeed(), which is normally used for setting the client's FORWARD speed... and I believe all bot authors do that too

It affects every MOD for which the strafe speed increases gradually (i.e, when you press on the button, you don't begin to move instantly full speed). I think HLDM is one of the rare that are not concerned (because of no graduation).

Are client variables such as cl_sidespeed available on dedicated servers too ? If so, considering no bot author out there use this CVAR to my knowledge, no wonder our bots strafe the way they do !!!



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
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#7)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: *BUGBUGBUG* affects all HL bots!!! - 16-01-2004

My observations of bot movement agree with what PBM is saying. Bots tend to zig-zag from side to side much faster than a human can which makes them tough targets to hit, and very difficult to defeat at close range (if there's no skill penalty).


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#8)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: *BUGBUGBUG* affects all HL bots!!! - 18-01-2004

yes, i have noticed this too. We should probably somehow simulate this as HL does with real players?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#9)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: *BUGBUGBUG* affects all HL bots!!! - 18-01-2004

and perhaps include it an the skill / personality system, since that reflects different type of users
  
Reply With Quote
Re: *BUGBUGBUG* affects all HL bots!!!
Old
  (#10)
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: *BUGBUGBUG* affects all HL bots!!! - 18-01-2004

What I find curious is that the engine DOES filter the forward speed when you pass it in RunPlayerMove() ; if you change your bot's forward speed from 0 to its max speed, the bot's speed will raise PROGRESSIVELY. And it does not when it's the side speed. This is really weird. Do we need to emulate this ourselves or is there something we aren't doing right ?

[edit] and it is NOT the cl_sidespeed CVAR : this one is at 380, which is WAY too much already for a decent strafe speed



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 19-01-2004 at 00:02..
  
Reply With Quote
Reply


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

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