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

i have this code:
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))  
  {
   // From "KickBot"
   //	return (float) (((int)flMaxSpeed)/2 + ((int)flMaxSpeed)/50);
   //OLD: f_move_speed = f_max_speed / 2.0; // this is not correct
   
   pEdict->v.button &= (~IN_RUN);
   f_move_speed = (float) (((int)f_max_speed)/2 + ((int)f_max_speed)/50);
  }
The walk speed is slower, i don't know if its correct, but i assume that KickBots speed calculation is better then the simple "devide by 2" thingy. yet, i still hear faster footsteps by bots. Its like the animation is not set right?


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