old_mouse_y = mouse_y;
}
- mouse_x *= sensitivity.value;
- mouse_y *= sensitivity.value;
+ // LordHavoc: viewzoom affects mouse sensitivity for sniping
+ mouse_x *= sensitivity.value * cl.viewzoom;
+ mouse_y *= sensitivity.value * cl.viewzoom;
if (in_strafe.state & 1)
cmd->sidemove += m_side.value * mouse_x;
V_StopPitchDrift ();
if (/*freelook && */!(in_strafe.state & 1))
- {
cl.viewangles[PITCH] += m_pitch.value * mouse_y;
- cl.viewangles[PITCH] = bound (-90, cl.viewangles[PITCH], 90);
- }
else
{
if ((in_strafe.state & 1) && noclip_anglehack)
void IN_Move (usercmd_t *cmd)
{
IN_MouseMove(cmd);
+ cl.viewangles[PITCH] = bound (in_pitch_min.value, cl.viewangles[PITCH], in_pitch_max.value);
}