mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Removed a bounce from tumble
This commit is contained in:
parent
9257c373ff
commit
f57651e51f
3 changed files with 5 additions and 3 deletions
|
|
@ -454,6 +454,8 @@ typedef enum
|
|||
#define TRICKMOMZRAMP (30)
|
||||
#define TRICKLAG (9)
|
||||
|
||||
#define TUMBLEBOUNCES 3
|
||||
|
||||
//}
|
||||
|
||||
// player_t struct for all respawn variables
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue