View Single Post
Re: BotAim 2 announced. Best aiming ever.
Old
  (#58)
ghost of evilspy
Moderator
 
ghost of evilspy's Avatar
 
Status: Offline
Posts: 140
Join Date: Mar 2005
Location: Finland
Default Re: BotAim 2 announced. Best aiming ever. - 17-12-2005

Quote:
Originally Posted by Pierre-Marie Baty
Well, it SHOULD. pfnRunPlayerMove() should be called every frame, no matter what the bot is doing.
I don't believe so. Real clients don't get called CmdStart->PreThink->PM_Move->PostThink->CmdEnd sequence on every frame. Instead msec value is given. HPB_bot already calculates correct msec value and passes it to pfnRunPlayerMove() so why whould pfnRunPlayerMove() have to be run on every server frame when real clients are not.

They don't get stuck because real players don't get either.

Think about this: Speedhacks modify client timers to speed up so that client send longer msec values than it should have thus causing players to move faster on server too. If CmdStart->PreThink->PM_Move->PostThink->CmdEnd were called on every server frame then msec value would have no meaning thus causing such hacks not work.

(pfnRunPlayerMove() makes engine call CmdStart->PreThink->PM_Move->PostThink->CmdEnd on bot entity)

-edit- oh yeah.. I think only exception to this is listenserver client. It seems to be called on every server frame.

Last edited by ghost of evilspy; 17-12-2005 at 20:14..
  
Reply With Quote