mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
+10% speed buff for rivals
This commit is contained in:
parent
136bb1d252
commit
241fb0db6c
1 changed files with 6 additions and 0 deletions
|
|
@ -2001,6 +2001,12 @@ fixed_t K_GetKartSpeed(player_t *player, boolean doboostpower)
|
|||
{
|
||||
// Give top speed a buff for bots, since it's a fairly weak stat without drifting
|
||||
fixed_t speedmul = ((kartspeed-1) * FRACUNIT / 8) / 10; // +10% for speed 9
|
||||
|
||||
if (player->botvars.rival == true)
|
||||
{
|
||||
speedmul += FRACUNIT/10; // +10% for rival
|
||||
}
|
||||
|
||||
finalspeed = FixedMul(finalspeed, FRACUNIT + speedmul);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue