mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Increase bubble scam radius, refactor
This commit is contained in:
parent
3eba9d86a7
commit
a8ea3f2266
3 changed files with 4 additions and 2 deletions
|
|
@ -10083,7 +10083,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fixed_t scam = K_PlayerScamPercentage(player, 2);
|
fixed_t scam = K_PlayerScamPercentage(player, BUBBLESCAM);
|
||||||
fixed_t speed = R_PointToDist2(0, 0, player->mo->momx, player->mo->momy);
|
fixed_t speed = R_PointToDist2(0, 0, player->mo->momx, player->mo->momy);
|
||||||
fixed_t basespeed = K_GetKartSpeed(player, false, false);
|
fixed_t basespeed = K_GetKartSpeed(player, false, false);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,8 @@ Make sure this matches the actual number of states
|
||||||
#define MAXTOPACCEL (12*FRACUNIT)
|
#define MAXTOPACCEL (12*FRACUNIT)
|
||||||
#define TOPACCELREGEN (FRACUNIT/16)
|
#define TOPACCELREGEN (FRACUNIT/16)
|
||||||
|
|
||||||
|
#define BUBBLESCAM (4)
|
||||||
|
|
||||||
// Handling boosts and sliptide conditions got weird.
|
// Handling boosts and sliptide conditions got weird.
|
||||||
// You must be under a handling boost of at least SLIPTIDEHANDLING to sliptide.
|
// You must be under a handling boost of at least SLIPTIDEHANDLING to sliptide.
|
||||||
// HANDLESCALING is used to adjust all handling boosts simultaneously (weight factors in the future?)
|
// HANDLESCALING is used to adjust all handling boosts simultaneously (weight factors in the future?)
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ struct Visual : Mobj
|
||||||
renderflags &= ~(RF_TRANSMASK|RF_DONTDRAW);
|
renderflags &= ~(RF_TRANSMASK|RF_DONTDRAW);
|
||||||
renderflags |= RF_ADD;
|
renderflags |= RF_ADD;
|
||||||
|
|
||||||
fixed_t transpercent = K_PlayerScamPercentage(bubble()->follow()->player, 2);
|
fixed_t transpercent = K_PlayerScamPercentage(bubble()->follow()->player, BUBBLESCAM);
|
||||||
UINT8 transfactor = (transpercent * NUMTRANSMAPS) / FRACUNIT;
|
UINT8 transfactor = (transpercent * NUMTRANSMAPS) / FRACUNIT;
|
||||||
|
|
||||||
if (transfactor < 10)
|
if (transfactor < 10)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue