Added cvar zoom_sensitivity (Default 1).
This commit is contained in:
parent
943587e685
commit
f32f23d14d
6 changed files with 8 additions and 1 deletions
|
@ -38,6 +38,7 @@ var int autocvar_cl_smoothstairs = TRUE;
|
||||||
var int autocvar_v_lefthanded = FALSE;
|
var int autocvar_v_lefthanded = FALSE;
|
||||||
var string autocvar_cl_logofile = "lambda";
|
var string autocvar_cl_logofile = "lambda";
|
||||||
var vector autocvar_cl_logocolor = '255 0 0';
|
var vector autocvar_cl_logocolor = '255 0 0';
|
||||||
|
var float autocvar_zoom_sensitivity = 1.0f;
|
||||||
|
|
||||||
// Particle stuff
|
// Particle stuff
|
||||||
var float PARTICLE_SPARK;
|
var float PARTICLE_SPARK;
|
||||||
|
|
|
@ -176,7 +176,13 @@ void CSQC_UpdateView(float w, float h, float focus)
|
||||||
}
|
}
|
||||||
|
|
||||||
setproperty(VF_AFOV, cvar("fov") * pl.viewzoom);
|
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;
|
pl.viewzoom = oldzoom;
|
||||||
|
|
||||||
View_Stairsmooth();
|
View_Stairsmooth();
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue