Merge branch 'speed-assist-middleground' into 'master'

Speed Assist Middleground

See merge request kart-krew-dev/ring-racers-internal!2847
This commit is contained in:
Oni VelocitOni 2025-09-15 00:53:07 +00:00
commit f61e98c1a8

View file

@ -10249,9 +10249,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
average = firstRaw;
}
UINT32 REALLY_FAR = average + 9000; // This far back, get max gain
UINT32 TOO_CLOSE = average + 6000; // Start gaining here, lose if closer
UINT32 WAY_TOO_CLOSE = average + 5000; // Lose at max rate here
UINT32 REALLY_FAR = average + 9500; // This far back, get max gain
UINT32 TOO_CLOSE = average + 6500; // Start gaining here, lose if closer
UINT32 WAY_TOO_CLOSE = average + 5500; // Lose at max rate here
fixed_t MAX_GAIN_PER_SEC = FRACUNIT/20; // % assist to gain per sec when REALLY_FAR
fixed_t MAX_LOSS_PER_SEC = FRACUNIT/5; // % assist to lose per sec when WAY_TOO_CLOSE