mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
CLIENT: Set setsensitivityscaler to 0 while paused
This is to stop the controller stick from being able to turn the camera while paused.
This commit is contained in:
parent
98dfb45702
commit
fa41ea19b1
1 changed files with 5 additions and 1 deletions
|
@ -663,7 +663,11 @@ noref void(float width, float height, float menushown) CSQC_UpdateView =
|
|||
setviewprop(VF_DRAWENGINESBAR, 0);
|
||||
setviewprop(VF_DRAWCROSSHAIR, 0);
|
||||
|
||||
if (in_menu == MENU_PAUSE)
|
||||
setsensitivityscaler(0);
|
||||
else
|
||||
setsensitivityscaler((1 + SCALE_CONSTANT * getstatf(STAT_VIEWZOOM)) / (1 + SCALE_CONSTANT));
|
||||
|
||||
setviewprop(VF_AFOV, autocvar(fov,90)*getstatf(STAT_VIEWZOOM));
|
||||
|
||||
cvar_set("r_viewmodel_fov", ftos(cvar("r_viewmodel_default_fov")*getstatf(STAT_VIEWZOOM)));
|
||||
|
|
Loading…
Reference in a new issue