mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Bots: Modify friction changes with gamespeed
This commit is contained in:
parent
fdda4df9ae
commit
7ddfddb3a8
1 changed files with 4 additions and 1 deletions
|
|
@ -10270,7 +10270,10 @@ static void K_AirFailsafe(player_t *player)
|
||||||
//
|
//
|
||||||
fixed_t K_PlayerBaseFriction(player_t *player, fixed_t original)
|
fixed_t K_PlayerBaseFriction(player_t *player, fixed_t original)
|
||||||
{
|
{
|
||||||
const fixed_t factor = FixedDiv(FRACUNIT - original, FRACUNIT - ORIG_FRICTION);
|
const fixed_t factor = FixedMul(
|
||||||
|
FixedDiv(FRACUNIT - original, FRACUNIT - ORIG_FRICTION),
|
||||||
|
K_GetKartGameSpeedScalar(gamespeed)
|
||||||
|
);
|
||||||
fixed_t frict = original;
|
fixed_t frict = original;
|
||||||
|
|
||||||
if (K_PodiumSequence() == true)
|
if (K_PodiumSequence() == true)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue