Bailcharge at full rate when airborne or in pain

This commit is contained in:
Ashnal 2025-07-23 20:53:23 -04:00
parent 1578c2ff07
commit 6acd475aca

View file

@ -14125,7 +14125,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
{
// Set up bail charge, provided we have something to bail with (any rings or item resource).
boolean grounded = P_IsObjectOnGround(player->mo);
onground && player->tumbleBounces == 0 ? player->bailcharge += 2 : player->bailcharge++; // charge twice as fast on the ground
// onground && player->tumbleBounces == 0 ? player->bailcharge += 2 : player->bailcharge++; // charge twice as fast on the ground
player->bailcharge += 2;
if ((P_PlayerInPain(player) && player->bailcharge == 1) || (grounded && P_PlayerInPain(player) && player->bailcharge == 2)) // this is brittle ..
{
mobj_t *bail = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z + player->mo->height/2, MT_BAILCHARGE);