mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +00:00
Z pos smoothing
This commit is contained in:
parent
12bbb04fb9
commit
fd16ece77c
1 changed files with 4 additions and 9 deletions
13
src/p_user.c
13
src/p_user.c
|
@ -8622,20 +8622,15 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
}
|
}
|
||||||
else if (leveltime < starttime)
|
else if (leveltime < starttime)
|
||||||
{
|
{
|
||||||
thiscam->momx = FixedMul(x - thiscam->x, FRACUNIT/4);
|
thiscam->momx = FixedMul(x - thiscam->x, camspeed);
|
||||||
thiscam->momy = FixedMul(y - thiscam->y, FRACUNIT/4);
|
thiscam->momy = FixedMul(y - thiscam->y, camspeed);
|
||||||
thiscam->momz = FixedMul(z - thiscam->z, FRACUNIT/4);
|
thiscam->momz = FixedMul(z - thiscam->z, camspeed);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
thiscam->momx = x-thiscam->x;
|
thiscam->momx = x-thiscam->x;
|
||||||
thiscam->momy = y-thiscam->y;
|
thiscam->momy = y-thiscam->y;
|
||||||
#if 0
|
thiscam->momz = FixedMul(z - thiscam->z, camspeed/2);
|
||||||
if (player->kartstuff[k_pogospring]) // SRB2Kart: don't follow while bouncing, experimental
|
|
||||||
thiscam->momz = 0;
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
thiscam->momz = z-thiscam->z;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// compute aming to look the viewed point
|
// compute aming to look the viewed point
|
||||||
|
|
Loading…
Reference in a new issue