View Single Post
Re: Correct walk speed?
Old
  (#7)
KickBot
Member
 
Status: Offline
Posts: 17
Join Date: Apr 2004
Default Re: Correct walk speed? - 06-04-2004

Well the safest way would be to record all speeds for the player in a big table to have a relation [equipment] -> {speeds}, because in CS speed depends on your equipment, so you'll have to measure every combination possible...

Stefan IIRC you also have to set the proper buttons pushed or released like a player would do (IN_RUN etc...). Just hang a minute I'll see if I can resurect my bot and check the sound thing under CS 1.5...
Edit: Ok. The bots are walking and don't make walking sound and are playing the proper animation. At least with the starting equipment. Maybe my trick doesn't work for all kind of equipment or the version of CS you are running, dunno. In addition I have the following code to make sure the right walk buttons are pressed, just before sending the orders to the engine:
Code:
if (m_IdealSpeed == BODYSPEED_WALK)	 m_ActButtons &= (~IN_RUN);
else if (m_IdealSpeed == BODYSPEED_RUN) m_ActButtons |= IN_RUN;
If this still doesn't work then I can't help you more since I can't test equipment with my unfinished cs 1.5 bot sorry

Last edited by KickBot; 06-04-2004 at 14:24..
  
Reply With Quote