mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make spindash strength curve exponential instead of linear
Heavily encourages full charge instead of tapping
This commit is contained in:
parent
af7adf76c4
commit
fea9cd2ad0
1 changed files with 3 additions and 2 deletions
|
|
@ -2131,11 +2131,12 @@ static void K_GetKartBoostPower(player_t *player)
|
|||
if (player->kartstuff[k_spindashboost]) // Spindash boost
|
||||
{
|
||||
const fixed_t MAXCHARGESPEED = K_GetSpindashChargeSpeed(player);
|
||||
const fixed_t exponent = FixedMul(player->kartstuff[k_spindashspeed], player->kartstuff[k_spindashspeed]);
|
||||
|
||||
// character & charge dependent
|
||||
ADDBOOST(
|
||||
FixedMul(MAXCHARGESPEED, player->kartstuff[k_spindashspeed]), // + 0 to K_GetSpindashChargeSpeed()% top speed
|
||||
(40*player->kartstuff[k_spindashspeed]), // + 0% to 4000% acceleration
|
||||
FixedMul(MAXCHARGESPEED, exponent), // + 0 to K_GetSpindashChargeSpeed()% top speed
|
||||
(40 * exponent), // + 0% to 4000% acceleration
|
||||
0 // + 0% handling
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue