Merge branch 'botslow-wtf' into 'master'

Normalize bot softened rubberband gain

See merge request kart-krew-dev/ring-racers-internal!2856
This commit is contained in:
Eidolon 2025-09-16 21:39:28 -05:00
commit 843e6e2c42
2 changed files with 16 additions and 1 deletions

View file

@ -7456,6 +7456,7 @@ static void K_DrawBotDebugger(void)
V_DrawSmallString(8, 76, 0, va("Prediction error: %.2fdeg", FIXED_TO_FLOAT(FixedDiv(bot->botvars.predictionError, ANG1)))); V_DrawSmallString(8, 76, 0, va("Prediction error: %.2fdeg", FIXED_TO_FLOAT(FixedDiv(bot->botvars.predictionError, ANG1))));
V_DrawSmallString(8, 80, 0, va("Recent deflection: %.2fdeg", FIXED_TO_FLOAT(FixedDiv(bot->botvars.recentDeflection, ANG1)))); V_DrawSmallString(8, 80, 0, va("Recent deflection: %.2fdeg", FIXED_TO_FLOAT(FixedDiv(bot->botvars.recentDeflection, ANG1))));
V_DrawSmallString(8, 84, 0, va("Bumpslow: %d", bot->botvars.bumpslow));
} }
static void K_DrawGPRankDebugger(void) static void K_DrawGPRankDebugger(void)

View file

@ -10501,8 +10501,22 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
if (player->trickboost) if (player->trickboost)
player->trickboost--; player->trickboost--;
if (K_PlayerUsesBotMovement(players) && player->botvars.bumpslow && player->incontrol) /*
if (K_PlayerUsesBotMovement(player) && player->botvars.bumpslow && player->incontrol)
player->botvars.bumpslow--; player->botvars.bumpslow--;
*/
// WHOOPS! 2.4 bots were tuned around a bugged version of bumpslow that NEVER decayed
// if the player in slot 0 was a human. People seem to like this tuning, but the dampened
// rubberbanding only started applying after a bot wallbonked or got hit, which is
// probably why people report weird runaways.
//
// I'd like to retune this later, but for now, just set bumpslow on every bot, as if they all
// contact a wall instantly—consistently giving them the softer rubberband advancement.
// What the fuck making games is hard.
if (K_PlayerUsesBotMovement(player))
player->botvars.bumpslow = TICRATE*2;
if (player->flamedash) if (player->flamedash)
{ {