mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-04 15:12:58 +00:00
Don't vibrate clutch scores all the time
This commit is contained in:
parent
79e4af5b8e
commit
05936d8b76
1 changed files with 7 additions and 1 deletions
|
|
@ -3295,7 +3295,13 @@ static void K_drawKartDuelScores(void)
|
||||||
|
|
||||||
INT32 scoredelta = stplyr->duelscore - foe->duelscore;
|
INT32 scoredelta = stplyr->duelscore - foe->duelscore;
|
||||||
INT32 clutchscore = DUELWINNINGSCORE - 1; // we want the bar to be full when NEXT checkpoint wins...
|
INT32 clutchscore = DUELWINNINGSCORE - 1; // we want the bar to be full when NEXT checkpoint wins...
|
||||||
INT32 savemargin = 3 + ((leveltime/2)%2); // ...minus a little bit.
|
INT32 savemargin = 3; // ...minus a little bit.
|
||||||
|
|
||||||
|
if (leveltime/(TICRATE/2) % 2)
|
||||||
|
savemargin += ((leveltime/2)%2);
|
||||||
|
|
||||||
|
if (clutchscore == 0)
|
||||||
|
clutchscore = 1; // Fuck it, just don't crash
|
||||||
|
|
||||||
INT32 targetyouheight = barheight*abs(clutchscore+scoredelta)/clutchscore;
|
INT32 targetyouheight = barheight*abs(clutchscore+scoredelta)/clutchscore;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue