Merge pull request #80 from Peter0x44/stop_stick_lookaround

This commit is contained in:
cypress 2024-06-24 09:11:52 -07:00 committed by GitHub
commit 7c071e95d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -663,7 +663,11 @@ noref void(float width, float height, float menushown) CSQC_UpdateView =
setviewprop(VF_DRAWENGINESBAR, 0); setviewprop(VF_DRAWENGINESBAR, 0);
setviewprop(VF_DRAWCROSSHAIR, 0); setviewprop(VF_DRAWCROSSHAIR, 0);
if (in_menu == MENU_PAUSE)
setsensitivityscaler(0);
else
setsensitivityscaler((1 + SCALE_CONSTANT * getstatf(STAT_VIEWZOOM)) / (1 + SCALE_CONSTANT)); setsensitivityscaler((1 + SCALE_CONSTANT * getstatf(STAT_VIEWZOOM)) / (1 + SCALE_CONSTANT));
setviewprop(VF_AFOV, autocvar(fov,90)*getstatf(STAT_VIEWZOOM)); setviewprop(VF_AFOV, autocvar(fov,90)*getstatf(STAT_VIEWZOOM));
cvar_set("r_viewmodel_fov", ftos(cvar("r_viewmodel_default_fov")*getstatf(STAT_VIEWZOOM))); cvar_set("r_viewmodel_fov", ftos(cvar("r_viewmodel_default_fov")*getstatf(STAT_VIEWZOOM)));