mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Require 25% minimum handleboost to sliptide, change sliptide zip to 24%
This commit is contained in:
parent
15a0eb6c48
commit
2fb6bc5f46
1 changed files with 7 additions and 3 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -3045,12 +3045,15 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
boostpower = (4*boostpower)/5;
|
||||
|
||||
// Note: Handling will ONLY stack when sliptiding!
|
||||
// > (NB 2023-03-06: This was previously unintentionally applied while drifting as well.)
|
||||
// > (This only affected drifts where you were under the effect of multiple handling boosts.)
|
||||
// > (Revisit if Growvinciblity or sneaker-panels + power items feel too heavy while drifting!)
|
||||
// When you're not, it just uses the best instead of adding together, like the old behavior.
|
||||
#define ADDBOOST(s,a,h) { \
|
||||
numboosts++; \
|
||||
speedboost += FixedDiv(s, FRACUNIT + (metabolism * (numboosts-1))); \
|
||||
accelboost += FixedDiv(a, FRACUNIT + (metabolism * (numboosts-1))); \
|
||||
if (player->aizdriftstrat) \
|
||||
if (K_Sliptiding(player)) \
|
||||
handleboost += FixedDiv((3*h)/2, FRACUNIT + (metabolism * (numboosts-1))/4); \
|
||||
else \
|
||||
handleboost = max(h, handleboost); \
|
||||
|
|
@ -3087,7 +3090,8 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
|
||||
if (player->sliptideZipBoost)
|
||||
{
|
||||
ADDBOOST(FRACUNIT, 4*FRACUNIT, sliptidehandling/2); // + 100% top speed, + 400% acceleration, +25% handling
|
||||
// NB: This is intentionally under the 25% threshold required to initiate a sliptide
|
||||
ADDBOOST(FRACUNIT, 4*FRACUNIT, 2*sliptidehandling/5); // + 100% top speed, + 400% acceleration, +20% handling
|
||||
}
|
||||
|
||||
if (player->spindashboost) // Spindash boost
|
||||
|
|
@ -9296,7 +9300,7 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
player->pflags &= ~PF_DRIFTEND;
|
||||
}
|
||||
|
||||
if ((player->handleboost == 0)
|
||||
if ((player->handleboost < FRACUNIT/4)
|
||||
|| (!player->steering)
|
||||
|| (!player->aizdriftstrat)
|
||||
|| (player->steering > 0) != (player->aizdriftstrat > 0))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue