mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
4x tether leniency in Battle
This commit is contained in:
parent
efaff6eb6f
commit
c61afb5405
1 changed files with 6 additions and 4 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -1775,17 +1775,19 @@ static void K_UpdateDraft(player_t *player)
|
||||||
draftdistance = FixedMul(draftdistance, K_GetKartGameSpeedScalar(gamespeed));
|
draftdistance = FixedMul(draftdistance, K_GetKartGameSpeedScalar(gamespeed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// On the contrary, the leniency period biases toward high weight.
|
||||||
|
// (See also: the leniency variable in K_SpawnDraftDust)
|
||||||
|
leniency = (3*TICRATE)/4 + ((player->kartweight-1) * (TICRATE/4));
|
||||||
|
|
||||||
minDist = 640 * player->mo->scale;
|
minDist = 640 * player->mo->scale;
|
||||||
|
|
||||||
if (gametype == GT_BATTLE)
|
if (gametype == GT_BATTLE)
|
||||||
{
|
{
|
||||||
// TODO: gametyperules
|
// TODO: gametyperules
|
||||||
minDist /= 4;
|
minDist /= 4;
|
||||||
|
leniency *= 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// On the contrary, the leniency period biases toward high weight.
|
|
||||||
// (See also: the leniency variable in K_SpawnDraftDust)
|
|
||||||
leniency = (3*TICRATE)/4 + ((player->kartweight-1) * (TICRATE/4));
|
|
||||||
|
|
||||||
// Not enough speed to draft.
|
// Not enough speed to draft.
|
||||||
if (player->speed >= 20*player->mo->scale)
|
if (player->speed >= 20*player->mo->scale)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue