Speed Assist tweaks

This commit is contained in:
Antonio Martinez 2025-08-22 04:05:08 -04:00 committed by AJ Martinez
parent 265c8d969e
commit dcaa3873a1

View file

@ -3964,7 +3964,7 @@ static fixed_t K_GetKartSpeedAssist(const player_t *player)
if (player->loneliness < 0)
return FRACUNIT;
fixed_t MAX_SPEED_ASSIST = FRACUNIT/3;
fixed_t MAX_SPEED_ASSIST = FRACUNIT/4;
return FRACUNIT + FixedMul(player->loneliness, MAX_SPEED_ASSIST);
}
@ -10026,7 +10026,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
UINT32 WAY_TOO_CLOSE = average; // Lose at max rate here
fixed_t MAX_GAIN_PER_SEC = FRACUNIT/40; // % assist to gain per sec when REALLY_FAR
fixed_t MAX_LOSS_PER_SEC = FRACUNIT/20; // % assist to lose per sec when WAY_TOO_CLOSE
fixed_t MAX_LOSS_PER_SEC = FRACUNIT/5; // % assist to lose per sec when WAY_TOO_CLOSE
UINT32 gaingap = REALLY_FAR - TOO_CLOSE;
UINT32 lossgap = TOO_CLOSE - WAY_TOO_CLOSE;