mouselook fix
This commit is contained in:
parent
0c72afd20c
commit
df001b1b03
1 changed files with 6 additions and 5 deletions
|
@ -1249,11 +1249,12 @@ void IN_Move (usercmd_t *cmd)
|
|||
V_StopPitchDrift ();
|
||||
|
||||
if ( ((in_mlook.state & 1) ^ ((int)m_look->value & 1)) && !(in_strafe.state & 1)) { // 2001-12-16 M_LOOK cvar by Heffo/Maddes
|
||||
cl.viewangles[PITCH] += m_pitch->value * mouse_y;
|
||||
if (cl.viewangles[PITCH] > 80)
|
||||
cl.viewangles[PITCH] = 80;
|
||||
if (cl.viewangles[PITCH] < -70)
|
||||
cl.viewangles[PITCH] = -70;
|
||||
tangles[PITCH] += m_pitch->value * mouse_y;
|
||||
if (!deathcam_yesiamdead){
|
||||
if (tangles[PITCH] > 80)
|
||||
tangles[PITCH] = 80;
|
||||
if (tangles[PITCH] < -70)
|
||||
tangles[PITCH] = -70;}
|
||||
} else {
|
||||
if ((in_strafe.state & 1) && noclip_anglehack)
|
||||
cmd->upmove -= m_forward->value * mouse_y;
|
||||
|
|
Loading…
Reference in a new issue