Valve: Fix playermodel pitch/bone controller

This commit is contained in:
Marco Cawthorne 2020-04-01 12:51:46 +02:00
parent 5dde0fb486
commit a6b301755e
2 changed files with 4 additions and 2 deletions

View file

@ -59,7 +59,8 @@ void player::draw(void)
}
this.subblendfrac =
this.subblend2frac = this.pitch;
this.subblend2frac = (this.pitch / 90);
Animation_PlayerUpdate();
/*makevectors([0, this.angles[1], 0]);

View file

@ -84,7 +84,7 @@ Game_PlayerPostThink(player pl)
if (pl.old_origin[2] != pl.origin[2])
pl.SendFlags |= PLAYER_ORIGIN_Z;
if (pl.old_angles[0] != pl.angles[0])
if (pl.old_angles[0] != pl.v_angle[0])
pl.SendFlags |= PLAYER_ANGLES_X;
if (pl.old_angles[1] != pl.angles[1])
@ -141,6 +141,7 @@ Game_PlayerPostThink(player pl)
pl.old_modelindex = pl.modelindex;
pl.old_origin = pl.origin;
pl.old_angles = pl.angles;
pl.old_angles[0] = pl.v_angle[0];
pl.old_velocity = pl.velocity;
pl.old_flags = pl.flags;
pl.old_activeweapon = pl.activeweapon;