mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
WIP: End distance EXP scaling
This commit is contained in:
parent
c2bab86d70
commit
77ee717952
1 changed files with 9 additions and 3 deletions
|
|
@ -819,7 +819,13 @@ fixed_t K_BotRubberband(const player_t *player)
|
||||||
scaled_dist = FixedDiv(scaled_dist, mapobjectscale);
|
scaled_dist = FixedDiv(scaled_dist, mapobjectscale);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr UINT32 END_DIST = 2048 * 14;
|
UINT32 END_DIST = 2048 * 14;
|
||||||
|
|
||||||
|
if (K_EffectiveGradingFactor(player) <= FRACUNIT)
|
||||||
|
{
|
||||||
|
END_DIST = Easing_Linear((K_EffectiveGradingFactor(player) - MINGRADINGFACTOR) * 2, END_DIST * 2, END_DIST);
|
||||||
|
}
|
||||||
|
|
||||||
if (scaled_dist < END_DIST)
|
if (scaled_dist < END_DIST)
|
||||||
{
|
{
|
||||||
// At the end of tracks, start slowing down.
|
// At the end of tracks, start slowing down.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue