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-23 15:44:51 +02:00
1 parent b7347fd371
commit 3809f06ae8
1 file changed
+9
+9
View File
@@ -3875,6 +3875,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);
}