Merge branch 'tighter-rubberband' into 'master'

Bot difficulty tweaks, again

See merge request KartKrew/Kart!1988
This commit is contained in:
AJ Martinez 2024-03-03 04:52:23 +00:00
commit 09d2644241

View file

@ -577,17 +577,17 @@ fixed_t K_BotRubberband(const player_t *player)
const fixed_t difficultyEase = ((player->botvars.difficulty - 1) * FRACUNIT) / (MAXBOTDIFFICULTY - 1);
// Lv. 1: x0.65 avg
// Lv. MAX: x1.1 avg
// Lv. MAX: x1.05 avg
const fixed_t rubberBase = Easing_OutSine(
difficultyEase,
FRACUNIT * 65 / 100,
FRACUNIT * 11 / 10
FRACUNIT * 105 / 100
);
// +/- x0.25
// +/- x0.35
const fixed_t rubberStretchiness = FixedMul(
FixedDiv(
FRACUNIT / 4,
35 * FRACUNIT / 100,
K_GetKartGameSpeedScalar(gamespeed)
),
K_BotMapModifier()