mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-24 11:52:11 +00:00
Tweaked boost cam, again
This commit is contained in:
parent
be3ed17e19
commit
7760c7030e
2 changed files with 3 additions and 3 deletions
|
@ -3261,13 +3261,13 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam]
|
||||
&& player->kartstuff[k_destboostcam] != 0)
|
||||
{
|
||||
player->kartstuff[k_boostcam] += FRACUNIT/5;
|
||||
player->kartstuff[k_boostcam] += FRACUNIT/(TICRATE/4);
|
||||
if (player->kartstuff[k_boostcam] >= player->kartstuff[k_destboostcam])
|
||||
player->kartstuff[k_destboostcam] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
player->kartstuff[k_boostcam] -= FRACUNIT/5;
|
||||
player->kartstuff[k_boostcam] -= FRACUNIT/TICRATE;
|
||||
if (player->kartstuff[k_boostcam] < player->kartstuff[k_destboostcam])
|
||||
player->kartstuff[k_boostcam] = player->kartstuff[k_destboostcam] = 0;
|
||||
}
|
||||
|
|
|
@ -8376,7 +8376,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
|
||||
if (player->kartstuff[k_boostcam])
|
||||
{
|
||||
dist -= FixedMul(dist/2, player->kartstuff[k_boostcam]);
|
||||
dist -= FixedMul(3*dist/4, player->kartstuff[k_boostcam]);
|
||||
height -= FixedMul(height, player->kartstuff[k_boostcam]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue