mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-28 17:26:16 +00:00
Slow down bots tethering to other bots
This commit is contained in:
parent
63b55c0abd
commit
96d78eeb0f
1 changed files with 6 additions and 3 deletions
|
|
@ -1607,13 +1607,16 @@ static boolean K_TryDraft(player_t *player, mobj_t *dest, fixed_t minDist, fixed
|
|||
// How much this increments every tic biases toward acceleration! (min speed gets 1.5% per tic, max speed gets 0.5% per tic)
|
||||
if (player->draftpower < FRACUNIT)
|
||||
{
|
||||
fixed_t add = (FRACUNIT/200) + ((9 - player->kartspeed) * ((3*FRACUNIT)/1600));;
|
||||
fixed_t add = (FRACUNIT/200) + ((9 - player->kartspeed) * ((3*FRACUNIT)/1600));
|
||||
player->draftpower += add;
|
||||
|
||||
if (player->bot && (player->botvars.rival || cv_levelskull.value))
|
||||
if (player->bot)
|
||||
{
|
||||
// Double speed for the rival!
|
||||
player->draftpower += add;
|
||||
if (player->botvars.rival || cv_levelskull.value)
|
||||
player->draftpower += add;
|
||||
else if (dest->player->bot) // Reduce bot gluts.
|
||||
player->draftpower -= 3*add/4;
|
||||
}
|
||||
|
||||
if (gametyperules & GTR_CLOSERPLAYERS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue