Added cvar zoom_sensitivity (Default 1).

This commit is contained in:
Marco Cawthorne 2019-03-31 20:52:22 +02:00
parent 943587e685
commit f32f23d14d
6 changed files with 8 additions and 1 deletions

View file

@ -38,6 +38,7 @@ var int autocvar_cl_smoothstairs = TRUE;
var int autocvar_v_lefthanded = FALSE;
var string autocvar_cl_logofile = "lambda";
var vector autocvar_cl_logocolor = '255 0 0';
var float autocvar_zoom_sensitivity = 1.0f;
// Particle stuff
var float PARTICLE_SPARK;

View file

@ -176,7 +176,13 @@ void CSQC_UpdateView(float w, float h, float focus)
}
setproperty(VF_AFOV, cvar("fov") * pl.viewzoom);
setsensitivityscaler(pl.viewzoom);
if (autocvar_zoom_sensitivity && pl.viewzoom < 1.0f) {
setsensitivityscaler(pl.viewzoom * autocvar_zoom_sensitivity);
} else {
setsensitivityscaler(pl.viewzoom);
}
pl.viewzoom = oldzoom;
View_Stairsmooth();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.