WIP: End distance EXP scaling

This commit is contained in:
Antonio Martinez 2025-08-06 16:38:54 -04:00
parent c2bab86d70
commit 77ee717952

View file

@ -819,7 +819,13 @@ fixed_t K_BotRubberband(const player_t *player)
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)
{
// At the end of tracks, start slowing down.