local player movement interpolation

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2166 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-06-09 20:36:22 +00:00
parent 590650e2de
commit 15c5aa8f67
10 changed files with 91 additions and 34 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ void CBot::Think()
if(lastmillis-m_pMyEnt->lastaction<1200)
{
m_pMyEnt->move = 0;
moveplayer(m_pMyEnt, 1, false);
moveplayer(m_pMyEnt, 1, true);
}
else if (!m_arena && lastmillis-m_pMyEnt->lastaction>5000)
Spawn();
@@ -145,7 +145,7 @@ void CBot::Think()
m_iStuckCheckDelay = max(m_iStuckCheckDelay, lastmillis+100.0f);
// Move the bot
moveplayer(m_pMyEnt, 1, false);
moveplayer(m_pMyEnt, 1, true);
// Update bot info on all clients
SendBotInfo();