send foot position over network instead of eye position for better eyeheight handling

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3004 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-14 05:35:47 +00:00
parent f213f43684
commit 1ed4cbdcfc
5 changed files with 24 additions and 13 deletions
+2
View File
@@ -233,12 +233,14 @@ VARP(smoothdist, 0, 8, 16);
void predictplayer(playerent *d, bool move)
{
d->o = d->newpos;
d->o.z += d->eyeheight;
d->yaw = d->newyaw;
d->pitch = d->newpitch;
if(move)
{
moveplayer(d, 1, false);
d->newpos = d->o;
d->newpos.z -= d->eyeheight;
}
float k = 1.0f - float(lastmillis - d->smoothmillis)/smoothmove;
if(k>0)