roll update

- split into strafe roll (maxroll) and damage roll (maxrolleffect)
- locally recompute remote players roll (can be removed from pos pkt)
- fix maxrollremote

DOCREF maxroll maxrolleffect maxrollremote
This commit is contained in:
ac-stef
2017-04-29 18:23:23 +02:00
parent deb73081e8
commit 1b596e059a
6 changed files with 40 additions and 41 deletions
+2 -2
View File
@@ -373,7 +373,7 @@ void deathstate(playerent *pl)
pl->spectatemode = SM_DEATHCAM;
pl->respawnoffset = pl->lastpain = lastmillis;
pl->move = pl->strafe = 0;
pl->pitch = pl->roll = 0;
pl->pitch = pl->roll = pl->movroll = pl->effroll = 0;
pl->attacking = false;
pl->weaponsel->onownerdies();
@@ -661,7 +661,7 @@ void gotoplayerstart(playerent *d, entity *e)
d->o.z = e->z;
d->yaw = float(e->attr1) / ENTSCALE10;
d->pitch = 0;
d->roll = 0;
d->roll = d->movroll = d->effroll = 0;
}
void findplayerstart(playerent *d, bool mapcenter, int arenaspawn)