View Single Post
msec and slow bots
Old
  (#1)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default msec and slow bots - 05-07-2004

when I went searching around the web for HL stuff I found somewhere saying the msec value to pass to pfnRunPlayerMove() should be "gpGlobals->frametime * 1000"..
I started logging my gpGlobals->frametime and found that mine was almost always 0.010000
so I decided to see how TheFatal calculated it and I found my value would almost always be 9, but if I did it the other way it would almost always be 10..
So I decided to do it the other way and see what happens..
The bots seemed to get a sudden boost in speed..
I remembered someone asking why he saw the bots running slower with a knife out than he did when he had his knife out..
I tried it and doing "gpGlobals->frametime * 1000" made bots run at the same speed I did..
I tried changing the 450.0 / msecnum; to 500.0 / msecnum; and it worked just like "gpGlobals->frametime * 1000".
Why do we use TheFatal's method when we can just put "gpGlobals->frametime * 1000" there?
  
Reply With Quote