mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +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)
|
// 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)
|
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;
|
player->draftpower += add;
|
||||||
|
|
||||||
if (player->bot && (player->botvars.rival || cv_levelskull.value))
|
if (player->bot)
|
||||||
{
|
{
|
||||||
// Double speed for the rival!
|
// 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)
|
if (gametyperules & GTR_CLOSERPLAYERS)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue