when looking back camera momentum should inherit the mom of the player

makes using shoes or any boost stuff less jarring when looking back
This commit is contained in:
Alug committed 2024-08-31 18:45:58 +02:00
1 parent e2ac9708cb
commit ba331caff6
1 file changed
+9
+9
View File
@@ -3888,6 +3888,15 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
{
thiscam->momx = x - thiscam->x;
thiscam->momy = y - thiscam->y;
// when looking back, camera's momentum
// should inherit the momentum of the player
if (lookback && lookbackdelay[num])
{
thiscam->momx += mo->momx;
thiscam->momy += mo->momy;
}
thiscam->momz = FixedMul(z - thiscam->z, camspeed/2);
}