Make rolling quake optional

This commit is contained in:
James R committed 2020-09-27 17:21:40 -07:00
1 parent b1d2db56f8
commit 319cef25da
3 files changed
+7 -1

No files matched your search

+1
View File
@@ -138,6 +138,7 @@ extern consvar_t cv_cam4_speed, cv_cam4_rotate, cv_cam4_rotspeed;
extern consvar_t cv_slopeview;
extern consvar_t cv_quaketilt;
extern consvar_t cv_actionmovie;
extern fixed_t t_cam_dist, t_cam_height, t_cam_rotate;
extern fixed_t t_cam2_dist, t_cam2_height, t_cam2_rotate;
+1
View File
@@ -7118,6 +7118,7 @@ static CV_PossibleValue_t slopeview_cons_t[] =
};
consvar_t cv_slopeview = {"slopeview", "Off", CV_SAVE, slopeview_cons_t, 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_actionmovie = {"actionmovie", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
fixed_t t_cam_dist = -42;
fixed_t t_cam_height = -42;
+5 -1
View File
@@ -666,11 +666,14 @@ void R_CheckViewMorph(void)
float fisheyemap[MAXVIDWIDTH/2 + 1];
#endif
angle_t rollangle = players[displayplayers[0]].viewrollangle + quake.roll;
angle_t rollangle = players[displayplayers[0]].viewrollangle;
#ifdef WOUGHMP_WOUGHMP
fixed_t fisheye = cv_cam2_turnmultiplier.value; // temporary test value
#endif
if (cv_actionmovie.value)
rollangle += quake.roll;
rollangle >>= ANGLETOFINESHIFT;
rollangle = ((rollangle+2) & ~3) & FINEMASK; // Limit the distinct number of angles to reduce recalcs from angles changing a lot.
@@ -1845,6 +1848,7 @@ void R_RegisterEngineStuff(void)
CV_RegisterVar(&cv_slopeview);
CV_RegisterVar(&cv_quaketilt);
CV_RegisterVar(&cv_actionmovie);
CV_RegisterVar(&cv_showhud);
CV_RegisterVar(&cv_translucenthud);