mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Ring Power added
Top Left weighted, gets 20% speed force from rings
This commit is contained in:
parent
4eb4f896ac
commit
25f8b1deb1
1 changed files with 2 additions and 1 deletions
|
|
@ -3686,8 +3686,9 @@ static void K_GetKartBoostPower(player_t *player)
|
||||||
// This one's a little special: we add extra top speed per tic of ringboost stored up, to allow for Ring Box to really rocket away.
|
// This one's a little special: we add extra top speed per tic of ringboost stored up, to allow for Ring Box to really rocket away.
|
||||||
// (We compensate when decrementing ringboost to avoid runaway exponential scaling hell.)
|
// (We compensate when decrementing ringboost to avoid runaway exponential scaling hell.)
|
||||||
fixed_t rb = FixedDiv(player->ringboost * FRACUNIT, max(FRACUNIT, K_RingDurationBoost(player)));
|
fixed_t rb = FixedDiv(player->ringboost * FRACUNIT, max(FRACUNIT, K_RingDurationBoost(player)));
|
||||||
|
fixed_t rp = ((9 - player->kartspeed) + (9 - player->kartweight)) * ((FRACUNIT/5)/16);
|
||||||
ADDBOOST(
|
ADDBOOST(
|
||||||
ringboost_base + FixedMul(FRACUNIT / 1750, rb),
|
ringboost_base + FixedMul(FRACUNIT / 1750, rb) + rp,
|
||||||
4*FRACUNIT,
|
4*FRACUNIT,
|
||||||
Easing_InCubic(min(FRACUNIT, rb / (TICRATE*12)), 0, 2*HANDLESCALING/5)
|
Easing_InCubic(min(FRACUNIT, rb / (TICRATE*12)), 0, 2*HANDLESCALING/5)
|
||||||
); // + 20% + ???% top speed, + 400% acceleration, +???% handling
|
); // + 20% + ???% top speed, + 400% acceleration, +???% handling
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue