mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Merge branch 'tighter-rubberband' into 'master'
Bot difficulty tweaks, again See merge request KartKrew/Kart!1988
This commit is contained in:
commit
09d2644241
1 changed files with 4 additions and 4 deletions
|
|
@ -577,17 +577,17 @@ fixed_t K_BotRubberband(const player_t *player)
|
||||||
const fixed_t difficultyEase = ((player->botvars.difficulty - 1) * FRACUNIT) / (MAXBOTDIFFICULTY - 1);
|
const fixed_t difficultyEase = ((player->botvars.difficulty - 1) * FRACUNIT) / (MAXBOTDIFFICULTY - 1);
|
||||||
|
|
||||||
// Lv. 1: x0.65 avg
|
// Lv. 1: x0.65 avg
|
||||||
// Lv. MAX: x1.1 avg
|
// Lv. MAX: x1.05 avg
|
||||||
const fixed_t rubberBase = Easing_OutSine(
|
const fixed_t rubberBase = Easing_OutSine(
|
||||||
difficultyEase,
|
difficultyEase,
|
||||||
FRACUNIT * 65 / 100,
|
FRACUNIT * 65 / 100,
|
||||||
FRACUNIT * 11 / 10
|
FRACUNIT * 105 / 100
|
||||||
);
|
);
|
||||||
|
|
||||||
// +/- x0.25
|
// +/- x0.35
|
||||||
const fixed_t rubberStretchiness = FixedMul(
|
const fixed_t rubberStretchiness = FixedMul(
|
||||||
FixedDiv(
|
FixedDiv(
|
||||||
FRACUNIT / 4,
|
35 * FRACUNIT / 100,
|
||||||
K_GetKartGameSpeedScalar(gamespeed)
|
K_GetKartGameSpeedScalar(gamespeed)
|
||||||
),
|
),
|
||||||
K_BotMapModifier()
|
K_BotMapModifier()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue