diff --git a/src/p_local.h b/src/p_local.h index d4ea16a51..33e085a09 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -137,6 +137,8 @@ extern consvar_t cv_cam4_dist, cv_cam4_still, cv_cam4_height; extern consvar_t cv_cam4_speed, cv_cam4_rotate, cv_cam4_rotspeed; extern consvar_t cv_tilting; +extern consvar_t cv_quaketilt; +extern consvar_t cv_tiltsmoothing; extern consvar_t cv_actionmovie; extern consvar_t cv_windowquake; diff --git a/src/p_user.c b/src/p_user.c index c222fed7f..e10c88cfd 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -7109,6 +7109,8 @@ consvar_t cv_cam4_rotate = {"cam4_rotate", "0", CV_CALL|CV_NOINIT, CV_CamRotate, consvar_t cv_cam4_rotspeed = {"cam4_rotspeed", "10", CV_SAVE, rotation_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_tilting = {"tilting", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_quaketilt = {"quaketilt", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; +consvar_t cv_tiltsmoothing = {"tiltsmoothing", "32", CV_SAVE, CV_Natural, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_actionmovie = {"actionmovie", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; consvar_t cv_windowquake = {"windowquake", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL}; @@ -8301,9 +8303,12 @@ DoABarrelRoll (player_t *player) slope = 0; } - slope -= Quaketilt(player); + if (cv_quaketilt.value) + { + slope -= Quaketilt(player); + } - delta = (INT32)( slope - player->tilt )/ 32; + delta = (INT32)( slope - player->tilt )/ cv_tiltsmoothing.value; if (delta) player->tilt += delta; diff --git a/src/r_main.c b/src/r_main.c index eee1be27f..43ad0a546 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -1844,6 +1844,8 @@ void R_RegisterEngineStuff(void) CV_RegisterVar(&cv_cam4_rotspeed); CV_RegisterVar(&cv_tilting); + CV_RegisterVar(&cv_quaketilt); + CV_RegisterVar(&cv_tiltsmoothing); CV_RegisterVar(&cv_actionmovie); CV_RegisterVar(&cv_windowquake);