Fix nq's idle swaying to match qw's.

In nq, the gun would sway strangly relative to the player's view, but in
qw, the gun is fixed. Now it is in both.
This commit is contained in:
Bill Currie 2012-05-31 19:40:56 +09:00
parent a49c123d84
commit 42256021fc

View file

@ -504,16 +504,6 @@ CalcGunAngle (void)
cl.viewent.angles[YAW] = r_data->refdef->viewangles[YAW] + yaw;
cl.viewent.angles[PITCH] = -(r_data->refdef->viewangles[PITCH] + pitch);
cl.viewent.angles[ROLL] -=
v_idlescale->value * sin (cl.time * v_iroll_cycle->value) *
v_iroll_level->value;
cl.viewent.angles[PITCH] -=
v_idlescale->value * sin (cl.time * v_ipitch_cycle->value) *
v_ipitch_level->value;
cl.viewent.angles[YAW] -=
v_idlescale->value * sin (cl.time * v_iyaw_cycle->value) *
v_iyaw_level->value;
}
static void
@ -554,6 +544,13 @@ V_AddIdle (void)
sin (cl.time * v_ipitch_cycle->value) * v_ipitch_level->value;
r_data->refdef->viewangles[YAW] += v_idlescale->value *
sin (cl.time * v_iyaw_cycle->value) * v_iyaw_level->value;
cl.viewent.angles[ROLL] -= v_idlescale->value *
sin (cl.time * v_iroll_cycle->value) * v_iroll_level->value;
cl.viewent.angles[PITCH] -= v_idlescale->value *
sin (cl.time * v_ipitch_cycle->value) * v_ipitch_level->value;
cl.viewent.angles[YAW] -= v_idlescale->value *
sin (cl.time * v_iyaw_cycle->value) * v_iyaw_level->value;
}
/*