Rumble rumble

This commit is contained in:
James R 2020-01-26 15:57:28 -08:00
parent eef273c42b
commit c82ac33c0c
3 changed files with 10 additions and 2 deletions

View file

@ -304,6 +304,7 @@ extern struct quake
{
// camera offsets and duration
fixed_t x,y,z;
angle_t roll;
UINT16 time;
// location, radius, and intensity...

View file

@ -632,10 +632,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);

View file

@ -639,7 +639,7 @@ void R_CheckViewMorph(int s)
float fisheyemap[MAXVIDWIDTH/2 + 1];
#endif
angle_t rollangle = players[displayplayers[s]].viewrollangle;
angle_t rollangle = players[displayplayers[s]].viewrollangle + quake.roll;
#ifdef WOUGHMP_WOUGHMP
fixed_t fisheye = cv_cam2_turnmultiplier.value; // temporary test value
#endif