Increase bubble scam radius, refactor

This commit is contained in:
Antonio Martinez 2025-06-21 01:10:01 -04:00
parent 3eba9d86a7
commit a8ea3f2266
3 changed files with 4 additions and 2 deletions

View file

@ -10083,7 +10083,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
}
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 basespeed = K_GetKartSpeed(player, false, false);

View file

@ -91,6 +91,8 @@ Make sure this matches the actual number of states
#define MAXTOPACCEL (12*FRACUNIT)
#define TOPACCELREGEN (FRACUNIT/16)
#define BUBBLESCAM (4)
// Handling boosts and sliptide conditions got weird.
// 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?)

View file

@ -120,7 +120,7 @@ struct Visual : Mobj
renderflags &= ~(RF_TRANSMASK|RF_DONTDRAW);
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;
if (transfactor < 10)