Removed a bounce from tumble

This commit is contained in:
Sally Coolatta 2021-02-02 01:29:44 -05:00
parent 9257c373ff
commit f57651e51f
3 changed files with 5 additions and 3 deletions

View file

@ -454,6 +454,8 @@ typedef enum
#define TRICKMOMZRAMP (30)
#define TRICKLAG (9)
#define TUMBLEBOUNCES 3
//}
// player_t struct for all respawn variables

View file

@ -2546,7 +2546,7 @@ void K_TumblePlayer(player_t *player, mobj_t *inflictor, mobj_t *source)
static boolean K_LastTumbleBounceCondition(player_t *player)
{
return (player->tumbleBounces > 4 && player->tumbleHeight < 40);
return (player->tumbleBounces > TUMBLEBOUNCES && player->tumbleHeight < 40);
}
static void K_HandleTumbleBounce(player_t *player)

View file

@ -122,8 +122,8 @@ 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->tumbleBounces > 0)
{
player->tumbleBounces = 3; // Max # of bounces-1 (so you still tumble once)
player->tumbleLastBounce = 0; // Still force them to bounce at least once for the funny
player->tumbleBounces = TUMBLEBOUNCES-1; // Max # of bounces-1 (so you still tumble once)
player->tumbleLastBounce = false; // Still force them to bounce at least once for the funny
players->tumbleHeight = 20; // force tumble height
}