movement smoothing (other players less jerky with high PJ)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1579 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-01-21 15:07:28 +00:00
parent ec272d47d9
commit c79256a222
3 changed files with 55 additions and 5 deletions
+6 -1
View File
@@ -344,9 +344,14 @@ struct playerent : dynent, playerstate
poshist history; // Previous stored locations of this player
vec deltapos, newpos;
float deltayaw, deltapitch, newyaw, newpitch;
int smoothmillis;
playerent() : clientnum(-1), plag(0), ping(0), lifesequence(0), frags(0), flagscore(0), lastpain(0), clientrole(CR_DEFAULT),
skin(0), nextskin(0), spectating(SM_NONE), followplayercn(0),
weaponsel(NULL), nextweaponsel(NULL), primweap(NULL), nextprimweap(NULL), lastattackweapon(NULL)
weaponsel(NULL), nextweaponsel(NULL), primweap(NULL), nextprimweap(NULL), lastattackweapon(NULL),
smoothmillis(-1)
{
type = ENT_PLAYER;
name[0] = team[0] = 0;