mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-24 21:01:09 +00:00
Merge pull request #42 from tyleryoung88/main
This commit is contained in:
commit
b77b49e4b8
1 changed files with 6 additions and 2 deletions
|
@ -695,6 +695,7 @@ extern float cl_forwardspeed;
|
||||||
extern float cl_sidespeed;
|
extern float cl_sidespeed;
|
||||||
extern cvar_t in_aimassist;
|
extern cvar_t in_aimassist;
|
||||||
qboolean croshhairmoving;
|
qboolean croshhairmoving;
|
||||||
|
extern qboolean paused_hack;
|
||||||
|
|
||||||
float client_sprinting;
|
float client_sprinting;
|
||||||
|
|
||||||
|
@ -773,8 +774,11 @@ void IN_JoyMove (usercmd_t *cmd)
|
||||||
speed = speed * (sensitivity.value / 11.0);
|
speed = speed * (sensitivity.value / 11.0);
|
||||||
|
|
||||||
//shpuld end
|
//shpuld end
|
||||||
cl.viewangles[YAW] -= lookEased.x * speed * joy_sensitivity_yaw.value * host_frametime;
|
if(paused_hack != true)
|
||||||
cl.viewangles[PITCH] += lookEased.y * speed * joy_sensitivity_pitch.value * (joy_invert.value ? -1.0 : 1.0) * host_frametime;
|
{
|
||||||
|
cl.viewangles[YAW] -= lookEased.x * speed * joy_sensitivity_yaw.value * host_frametime;
|
||||||
|
cl.viewangles[PITCH] += lookEased.y * speed * joy_sensitivity_pitch.value * (joy_invert.value ? -1.0 : 1.0) * host_frametime;
|
||||||
|
}
|
||||||
|
|
||||||
if (lookEased.x != 0 || lookEased.y != 0)
|
if (lookEased.x != 0 || lookEased.y != 0)
|
||||||
V_StopPitchDrift();
|
V_StopPitchDrift();
|
||||||
|
|
Loading…
Reference in a new issue