Revert Revert Use all your momentum to push back the camera
This reverts commit 696d9a0d4e.
This commit is contained in:
parent
0d7e9fc691
commit
55d47c7cf8
1 changed files with 14 additions and 2 deletions
16
src/p_user.c
16
src/p_user.c
|
|
@ -3020,6 +3020,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
UINT8 timeover;
|
||||
mobj_t *mo;
|
||||
fixed_t f1, f2;
|
||||
fixed_t speed;
|
||||
#ifndef NOCLIPCAM
|
||||
boolean cameranoclip;
|
||||
subsector_t *newsubsec;
|
||||
|
|
@ -3294,8 +3295,19 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
// sets ideal cam pos
|
||||
dist = camdist;
|
||||
|
||||
if (player->speed > K_GetKartSpeed(player, false, true))
|
||||
dist += 4*(player->speed - K_GetKartSpeed(player, false, true));
|
||||
/* player->speed subtracts conveyors, janks up the camera */
|
||||
if (player->loop.radius)
|
||||
{
|
||||
speed = player->speed;
|
||||
}
|
||||
else
|
||||
{
|
||||
speed = R_PointToDist2(0, 0, player->mo->momx, player->mo->momy);
|
||||
}
|
||||
|
||||
|
||||
if (speed > K_GetKartSpeed(player, false, true))
|
||||
dist += 4*(speed - K_GetKartSpeed(player, false, true));
|
||||
dist += abs(thiscam->momz)/4;
|
||||
|
||||
if (player->karthud[khud_boostcam])
|
||||
|
|
|
|||
Loading…
Reference in a new issue