Client: Get rid of .pitch reference

Shared: Tweak player animations a bit.
This commit is contained in:
Marco Cawthorne 2022-02-01 09:45:43 -08:00
parent 92f0844156
commit 8edb6984cf
Signed by: eukara
GPG key ID: C196CD8BA993248A
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@ Player_Flashlight(base_player pl)
if (pl.entnum != player_localentnum) {
src = pl.origin + pl.view_ofs;
ang = [pl.pitch, pl.angles[1], pl.angles[2]];
ang = pl.v_angle;
} else {
src = pSeat->m_vecPredictedOrigin + [0,0,-8];
ang = view_angles;

View file

@ -105,6 +105,7 @@ Animation_PlayerUpdate(player pl)
/* Correct the legs */
pl.angles[1] = pl.v_angle[1] - fCorrect;
pl.angles[0] = pl.angles[2] = 0;
pl.subblendfrac =
pl.subblend2frac = pl.v_angle[0] / 90;