View Single Post
Correct walk speed?
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Correct walk speed? - 05-04-2004

I have noticed that simply deviding the current movespeed by 2 does NOT give you the actual walk speed used by CS. I can even hear my bots walk while they move slower , and they say in debug console that they are 'walking'.

Currently i have this:
Code:
  // walk only when NOT holding duck (is same as walking, combination makes bot super slow)
  if (f_walk_time > gpGlobals->time && !(pEdict->v.button & IN_DUCK))
	f_move_speed = f_max_speed / 2.0;
This makes bots walk slower, true, but it does not make them walk as slow as they should! DId anyone already fixed this? Or perhaps i am using 'out-dated' info?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote