Bring back strong rubberbands now that they can properly predict

This commit is contained in:
Sally Cochenour 2020-04-26 20:36:57 -04:00
parent 6b3e7c8e16
commit 6846d7c3a1
2 changed files with 4 additions and 8 deletions

View file

@ -169,7 +169,7 @@ fixed_t K_BotRubberband(player_t *player)
if (wanteddist < player->distancetofinish)
{
// Catch up to 1st!
rubberband = FRACUNIT + ((3*player->botvars.difficulty/2) * (player->distancetofinish - wanteddist));
rubberband = FRACUNIT + ((2*player->botvars.difficulty) * (player->distancetofinish - wanteddist));
}
}
@ -177,9 +177,9 @@ fixed_t K_BotRubberband(player_t *player)
{
rubberband = 2*FRACUNIT;
}
else if (rubberband < FRACUNIT)
else if (rubberband < 7*FRACUNIT/8)
{
rubberband = FRACUNIT;
rubberband = 7*FRACUNIT/8;
}
return rubberband;

View file

@ -2718,11 +2718,7 @@ fixed_t K_GetKartSpeed(player_t *player, boolean doboostpower)
{
fixed_t rubberband = K_BotRubberband(player);
if (rubberband > 3*FRACUNIT/2)
{
rubberband = 3*FRACUNIT/2;
}
else if (rubberband < FRACUNIT)
if (rubberband < FRACUNIT)
{
rubberband = FRACUNIT;
}