mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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
|
if (player->kartstuff[k_spindashboost]) // Spindash boost
|
||||||
{
|
{
|
||||||
const fixed_t MAXCHARGESPEED = K_GetSpindashChargeSpeed(player);
|
const fixed_t MAXCHARGESPEED = K_GetSpindashChargeSpeed(player);
|
||||||
|
const fixed_t exponent = FixedMul(player->kartstuff[k_spindashspeed], player->kartstuff[k_spindashspeed]);
|
||||||
|
|
||||||
// character & charge dependent
|
// character & charge dependent
|
||||||
ADDBOOST(
|
ADDBOOST(
|
||||||
FixedMul(MAXCHARGESPEED, player->kartstuff[k_spindashspeed]), // + 0 to K_GetSpindashChargeSpeed()% top speed
|
FixedMul(MAXCHARGESPEED, exponent), // + 0 to K_GetSpindashChargeSpeed()% top speed
|
||||||
(40*player->kartstuff[k_spindashspeed]), // + 0% to 4000% acceleration
|
(40 * exponent), // + 0% to 4000% acceleration
|
||||||
0 // + 0% handling
|
0 // + 0% handling
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue