mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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
|
||||
{
|
||||
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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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?)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue