mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Bailcharge at full rate when airborne or in pain
This commit is contained in:
parent
1578c2ff07
commit
6acd475aca
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue