mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-21 13:01:18 +00:00
Fix animation
This commit is contained in:
parent
6acd475aca
commit
03bc701f74
1 changed files with 2 additions and 1 deletions
|
|
@ -14127,7 +14127,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
boolean grounded = P_IsObjectOnGround(player->mo);
|
||||
// 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 ..
|
||||
// if ((P_PlayerInPain(player) && player->bailcharge == 1) || (grounded && P_PlayerInPain(player) && player->bailcharge == 2)) // this is brittle ..
|
||||
if (player->bailcharge == 2)
|
||||
{
|
||||
mobj_t *bail = P_SpawnMobj(player->mo->x, player->mo->y, player->mo->z + player->mo->height/2, MT_BAILCHARGE);
|
||||
S_StartSound(bail, sfx_gshb9); // I tried to use info.c, but you can't play sounds on mobjspawn via A_PlaySound
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue