Rumble rumble

This commit is contained in:
James R committed 2020-09-27 17:21:40 -07:00
1 parent 3b5057067c
commit 39ecdd1591
3 files changed
+10 -2

No files matched your search

+1
View File
@@ -190,6 +190,7 @@ extern struct quake
{
// camera offsets and duration
fixed_t x,y,z;
angle_t roll;
UINT16 time;
// location, radius, and intensity...
+8 -1
View File
@@ -744,10 +744,17 @@ void P_Ticker(boolean run)
quake.x = M_RandomRange(-ir,ir);
quake.y = M_RandomRange(-ir,ir);
quake.z = M_RandomRange(-ir,ir);
ir >>= 2;
ir = M_RandomRange(-ir,ir);
if (ir < 0)
ir = ANGLE_MAX - FixedAngle(-ir);
else
ir = FixedAngle(ir);
quake.roll = ir;
--quake.time;
}
else
quake.x = quake.y = quake.z = 0;
quake.x = quake.y = quake.z = quake.roll = 0;
if (metalplayback)
G_ReadMetalTic(metalplayback);
+1 -1
View File
@@ -666,7 +666,7 @@ void R_CheckViewMorph(void)
float fisheyemap[MAXVIDWIDTH/2 + 1];
#endif
angle_t rollangle = players[displayplayers[0]].viewrollangle;
angle_t rollangle = players[displayplayers[0]].viewrollangle + quake.roll;
#ifdef WOUGHMP_WOUGHMP
fixed_t fisheye = cv_cam2_turnmultiplier.value; // temporary test value
#endif