From fd16ece77caa70c03ddce5d547838d28d90b99e3 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Tue, 4 Sep 2018 02:51:00 -0400 Subject: [PATCH] Z pos smoothing --- src/p_user.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 37af2637..99c43bd8 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -8622,20 +8622,15 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall } else if (leveltime < starttime) { - thiscam->momx = FixedMul(x - thiscam->x, FRACUNIT/4); - thiscam->momy = FixedMul(y - thiscam->y, FRACUNIT/4); - thiscam->momz = FixedMul(z - thiscam->z, FRACUNIT/4); + thiscam->momx = FixedMul(x - thiscam->x, camspeed); + thiscam->momy = FixedMul(y - thiscam->y, camspeed); + thiscam->momz = FixedMul(z - thiscam->z, camspeed); } else { thiscam->momx = x-thiscam->x; thiscam->momy = y-thiscam->y; -#if 0 - if (player->kartstuff[k_pogospring]) // SRB2Kart: don't follow while bouncing, experimental - thiscam->momz = 0; - else -#endif - thiscam->momz = z-thiscam->z; + thiscam->momz = FixedMul(z - thiscam->z, camspeed/2); } // compute aming to look the viewed point