mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Z pos smoothing
This commit is contained in:
parent
95d9725ade
commit
f7f70e5f10
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)
|
||||
{
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue