mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'tumbltweaks' into 'master'
Tumbltweaks See merge request KartKrew/Kart!448
This commit is contained in:
commit
5d17081d14
3 changed files with 9 additions and 6 deletions
|
|
@ -375,7 +375,7 @@ typedef struct player_s
|
||||||
UINT8 wipeoutslow; // Timer before you slowdown when getting wiped out
|
UINT8 wipeoutslow; // Timer before you slowdown when getting wiped out
|
||||||
UINT8 justbumped; // Prevent players from endlessly bumping into each other
|
UINT8 justbumped; // Prevent players from endlessly bumping into each other
|
||||||
UINT8 tumbleBounces;
|
UINT8 tumbleBounces;
|
||||||
UINT16 tumbleHeight;
|
UINT16 tumbleHeight; // In *mobjscaled* fracunits, or mfu, not raw fu
|
||||||
|
|
||||||
SINT8 drift; // (-5 to 5) - Drifting Left or Right, plus a bigger counter = sharper turn
|
SINT8 drift; // (-5 to 5) - Drifting Left or Right, plus a bigger counter = sharper turn
|
||||||
fixed_t driftcharge; // Charge your drift so you can release a burst of speed
|
fixed_t driftcharge; // Charge your drift so you can release a burst of speed
|
||||||
|
|
|
||||||
|
|
@ -3215,14 +3215,14 @@ void K_TumblePlayer(player_t *player, mobj_t *inflictor, mobj_t *source)
|
||||||
|
|
||||||
static boolean K_LastTumbleBounceCondition(player_t *player)
|
static boolean K_LastTumbleBounceCondition(player_t *player)
|
||||||
{
|
{
|
||||||
return (player->tumbleBounces > TUMBLEBOUNCES && player->tumbleHeight < 40);
|
return (player->tumbleBounces > TUMBLEBOUNCES && player->tumbleHeight < 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void K_HandleTumbleBounce(player_t *player)
|
static void K_HandleTumbleBounce(player_t *player)
|
||||||
{
|
{
|
||||||
fixed_t gravityadjust;
|
fixed_t gravityadjust;
|
||||||
player->tumbleBounces++;
|
player->tumbleBounces++;
|
||||||
player->tumbleHeight = (player->tumbleHeight * 4) / 5;
|
player->tumbleHeight = (player->tumbleHeight * ((player->tumbleHeight > 100) ? 3 : 4)) / 5;
|
||||||
player->pflags &= ~PF_TUMBLESOUND;
|
player->pflags &= ~PF_TUMBLESOUND;
|
||||||
|
|
||||||
if (player->tumbleHeight < 10)
|
if (player->tumbleHeight < 10)
|
||||||
|
|
|
||||||
|
|
@ -155,9 +155,12 @@ void K_DoIngameRespawn(player_t *player)
|
||||||
// If player was tumbling, set variables so that they don't tumble like crazy after they're done respawning
|
// If player was tumbling, set variables so that they don't tumble like crazy after they're done respawning
|
||||||
if (player->tumbleBounces > 0)
|
if (player->tumbleBounces > 0)
|
||||||
{
|
{
|
||||||
player->tumbleBounces = TUMBLEBOUNCES-1; // Max # of bounces-1 (so you still tumble once)
|
player->tumbleBounces = 0; // MAXBOUNCES-1;
|
||||||
player->pflags &= ~PF_TUMBLELASTBOUNCE; // Still force them to bounce at least once for the funny
|
player->pflags &= ~PF_TUMBLELASTBOUNCE;
|
||||||
players->tumbleHeight = 20; // force tumble height
|
//players->tumbleHeight = 20;
|
||||||
|
players->mo->rollangle = 0;
|
||||||
|
player->spinouttype = KSPIN_WIPEOUT;
|
||||||
|
player->spinouttimer = player->wipeoutslow = (3*TICRATE/2)+2;
|
||||||
}
|
}
|
||||||
|
|
||||||
P_ResetPlayer(player);
|
P_ResetPlayer(player);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue